linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>,
	Stephen Rothwell <sfr@canb.auug.org.au>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	Chris Zankel <chris@zankel.net>,
	Max Filippov <jcmvbkbc@gmail.com>,
	linux-xtensa@linux-xtensa.org,
	Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Subject: [PATCH] mm: fix build failure with xtensa
Date: Tue, 10 Nov 2020 22:01:51 +0000	[thread overview]
Message-ID: <20201110220151.20911-1-sudipm.mukherjee@gmail.com> (raw)

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.

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
---

Build failed with next-20201110.
Build log at https://travis-ci.org/github/sudipm-mukherjee/linux-next/jobs/742793855#L13375

 mm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/Kconfig b/mm/Kconfig
index e8587f6bf29a..5b9426ba5e6a 100644
--- 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
-- 
2.11.0


             reply	other threads:[~2020-11-10 22:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-10 22:01 Sudip Mukherjee [this message]
2020-11-10 22:08 ` [PATCH] mm: fix build failure with xtensa Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201110220151.20911-1-sudipm.mukherjee@gmail.com \
    --to=sudipm.mukherjee@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=chris@zankel.net \
    --cc=jcmvbkbc@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-xtensa@linux-xtensa.org \
    --cc=sfr@canb.auug.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).