linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: fix build failure with xtensa
@ 2020-11-10 22:01 Sudip Mukherjee
  2020-11-10 22:08 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Sudip Mukherjee @ 2020-11-10 22:01 UTC (permalink / raw)
  To: Andrew Morton, Stephen Rothwell
  Cc: linux-kernel, linux-mm, Chris Zankel, Max Filippov, linux-xtensa,
	Sudip Mukherjee

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] mm: fix build failure with xtensa
  2020-11-10 22:01 [PATCH] mm: fix build failure with xtensa Sudip Mukherjee
@ 2020-11-10 22:08 ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2020-11-10 22:08 UTC (permalink / raw)
  To: Sudip Mukherjee
  Cc: Stephen Rothwell, linux-kernel, linux-mm, Chris Zankel,
	Max Filippov, linux-xtensa, ngupta, sergey.senozhatsky.work,
	sjenning, gregkh, arnd, Stefan Agner, Minchan Kim

On Tue, 10 Nov 2020 22:01:51 +0000 Sudip Mukherjee <sudipm.mukherjee@gmail.com> 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-10 22:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-10 22:01 [PATCH] mm: fix build failure with xtensa Sudip Mukherjee
2020-11-10 22:08 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox