[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1f6b42e6-b6b5-40e3-92b4-77bd610d3e49@infradead.org>
Date: Sun, 6 Sep 2020 12:33:08 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: LKML <linux-kernel@...r.kernel.org>, Linux MM <linux-mm@...ck.org>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: Michal Nazarewicz <mina86@...a86.com>,
Wen Congyang <wency@...fujitsu.com>,
Michal Simek <monstr@...str.eu>,
Christoph Hellwig <hch@....de>,
Mike Rapoport <rppt@...ux.ibm.com>,
kernel test robot <lkp@...el.com>
Subject: [PATCH] <linux/page-isolation.h>: provide stubs for MEMORY_ISOLATION
not set (for Microblaze)
From: Randy Dunlap <rdunlap@...radead.org>
Fix build errors in Microblaze when CONFIG_MEMORY_ISOLATION is not
set/enabled by adding stubs for 3 missing functions.
Fixes these build errors:
gcc-9.3.0-nolibc/microblaze-linux/bin/microblaze-linux-ld: mm/page_alloc.o: in function `alloc_contig_range':
(.text+0xa0c0): undefined reference to `start_isolate_page_range'
gcc-9.3.0-nolibc/microblaze-linux/bin/microblaze-linux-ld: (.text+0xa2bc): undefined reference to `test_pages_isolated'
gcc-9.3.0-nolibc/microblaze-linux/bin/microblaze-linux-ld: (.text+0xa378): undefined reference to `undo_isolate_page_range'
Fixes: 0815f3d81d76 ("mm: page_isolation: MIGRATE_CMA isolation functions added") # v3.10
Fixes: b023f46813cd ("memory-hotplug: skip HWPoisoned page when offlining pages") # v3.10
Reported-by: kernel test robot <lkp@...el.com>
Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
Cc: Michal Nazarewicz <mina86@...a86.com>
Cc: Wen Congyang <wency@...fujitsu.com>
Cc: Michal Simek <monstr@...str.eu>
Cc: Christoph Hellwig <hch@....de>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Cc: Mike Rapoport <rppt@...ux.ibm.com>
Cc: linux-mm@...ck.org
---
include/linux/page-isolation.h | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
--- linux-next-20200903.orig/include/linux/page-isolation.h
+++ linux-next-20200903/include/linux/page-isolation.h
@@ -28,6 +28,22 @@ static inline bool is_migrate_isolate(in
{
return false;
}
+static inline int test_pages_isolated(unsigned long start_pfn,
+ unsigned long end_pfn, int isol_flags)
+{
+ return 0;
+}
+static inline int
+start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
+ unsigned migratetype, int flags)
+{
+ return 0;
+}
+static inline void
+undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
+ unsigned migratetype)
+{
+}
#endif
#define MEMORY_OFFLINE 0x1
Powered by blists - more mailing lists