[PATCH] mm: fix PHYSMEM_END build error on m68k

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



0Day build system reported build error on m68k architecture for missing
the definition of MAX_PHYSMEM_BITS when defining PHYSMEM_END.  Fixed it
via making PHYSMEM_END definition depends on MAX_PHYSMEM_BITS definition
conditionally.

Signed-off-by: "Huang, Ying" <ying.huang@xxxxxxxxx>
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Closes: https://lore.kernel.org/oe-kbuild-all/202409100913.RxkfrKU6-lkp@xxxxxxxxx/
---
 include/linux/mm.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/linux/mm.h b/include/linux/mm.h
index 147073601716..62bb7e7e0a17 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -98,7 +98,11 @@ extern int mmap_rnd_compat_bits __read_mostly;
 #endif
 
 #ifndef PHYSMEM_END
-# define PHYSMEM_END	((1ULL << MAX_PHYSMEM_BITS) - 1)
+# ifdef MAX_PHYSMEM_BITS
+#  define PHYSMEM_END		((1ULL << MAX_PHYSMEM_BITS) - 1)
+# else
+#  define PHYSMEM_END		(-1ULL)
+# endif
 #endif
 
 #include <asm/page.h>
-- 
2.39.2





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux