From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6180C388F7 for ; Tue, 10 Nov 2020 22:08:41 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 276C4207D3 for ; Tue, 10 Nov 2020 22:08:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="M568qlMy" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 276C4207D3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 906316B0073; Tue, 10 Nov 2020 17:08:40 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 8B3E66B0074; Tue, 10 Nov 2020 17:08:40 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7F1A76B0075; Tue, 10 Nov 2020 17:08:40 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0205.hostedemail.com [216.40.44.205]) by kanga.kvack.org (Postfix) with ESMTP id 528896B0073 for ; Tue, 10 Nov 2020 17:08:40 -0500 (EST) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 039611EF1 for ; Tue, 10 Nov 2020 22:08:40 +0000 (UTC) X-FDA: 77469898800.27.lunch68_4d0ee49272f8 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin27.hostedemail.com (Postfix) with ESMTP id DCE223D663 for ; Tue, 10 Nov 2020 22:08:39 +0000 (UTC) X-HE-Tag: lunch68_4d0ee49272f8 X-Filterd-Recvd-Size: 2705 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf37.hostedemail.com (Postfix) with ESMTP for ; Tue, 10 Nov 2020 22:08:39 +0000 (UTC) Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B4B7220781; Tue, 10 Nov 2020 22:08:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605046118; bh=wzueAwNKUFgTyXUWlQJsepkAlXdOG+naI+ANaxmxCRE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=M568qlMyReOV/5qEhQduZfhKUTIxTHpSPfVsvUQnpH+NDPeRbQNMPYwH65vJvkFBn vSvi8gg8KELpYBhjtrZ7EPqhNyuIvYqvG+yFvFFNUNianeXLacoojlHkxjHBHV9xQZ dzNrg2CPyGeDqxL7n9lmfn1eV1ObUZyM1Igm0YLI= Date: Tue, 10 Nov 2020 14:08:37 -0800 From: Andrew Morton To: Sudip Mukherjee Cc: Stephen Rothwell , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org, ngupta@vflare.org, sergey.senozhatsky.work@gmail.com, sjenning@linux.vnet.ibm.com, gregkh@linuxfoundation.org, arnd@arndb.de, Stefan Agner , Minchan Kim Subject: Re: [PATCH] mm: fix build failure with xtensa Message-Id: <20201110140837.99b1feabec8754ce5247e2a0@linux-foundation.org> In-Reply-To: <20201110220151.20911-1-sudipm.mukherjee@gmail.com> References: <20201110220151.20911-1-sudipm.mukherjee@gmail.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Bogosity: Ham, tests=bogofilter, spamicity=0.000004, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, 10 Nov 2020 22:01:51 +0000 Sudip Mukherjee wrote: > If CONFIG_ZSMALLOC is enabled with xtensa then the build fails with: > mm/zsmalloc.c:43:10: fatal error: asm/sparsemem.h: No such file or directory > > Disable CONFIG_ZSMALLOC for xtensa as xtensa arch has not defined > sparsemem.h. > > ... > > --- a/mm/Kconfig > +++ b/mm/Kconfig > @@ -698,7 +698,7 @@ config Z3FOLD > > config ZSMALLOC > tristate "Memory allocator for compressed pages" > - depends on MMU > + depends on (MMU && !XTENSA) > help > zsmalloc is a slab-based memory allocator designed to store > compressed RAM pages. zsmalloc uses virtual memory mapping Thanks. I believe that Stefan is working on a more general solution over in https://lkml.kernel.org/r/bdfa44bf1c570b05d6c70898e2bbb0acf234ecdf.1604762181.git.stefan@agner.ch