mm: fix build failure with xtensa
Subsystems (2)
PATCH 1/1 mm: fix build failure with xtensa
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.
---
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(-)
mm/Kconfig +1 -1
@@ -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
Signature · 1 line
2.11.0
Andrew Morton
maintainerQuoted 11 lines · On Tue, 10 Nov 2020 22:01:51 +0000 Sudip Mukherjee…
If
CONFIG_ZSMALLOCis enabled with xtensa then the build fails with:mm/zsmalloc.c:43:10: fatal error:asm/sparsemem.h: No such file or directoryDisable
CONFIG_ZSMALLOCfor xtensa as xtensa arch has not definedsparsemem.h....
mm/Kconfig config Z3FOLD · line 704
Quoted 8 lines
mm/Kconfig +1
-1@@ -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