mm: fix section mismatch warning in set_pageblock_order
Subsystems (2)
PATCH 1/1 mm: fix section mismatch warning in set_pageblock_order
While cross-building for PPC I've got
WARNING: mm/built-in.o(.meminit.text+0xeb0): Section mismatch in reference from the function .free_area_init_core.isra.47() to the function .init.text:.set_pageblock_order() The function __meminit .free_area_init_core.isra.47() references a function __init .set_pageblock_order(). If .set_pageblock_order is only used by .free_area_init_core.isra.47 then annotate .set_pageblock_order with a matching annotation.
Annotation for free_area_init_core depends on CONFIG_SPARSEMEM. Use the same annotation (__paginginit) for set_pageblock_order.
Signed-off-by Vladimir Murzin <[email protected]>
--- mm/page_alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
mm/page_alloc.c +2 -2
@@ -4586,7 +4586,7 @@ static inline void setup_usemap(struct pglist_data *pgdat, struct zone *zone,#ifdef CONFIG_HUGETLB_PAGE_SIZE_VARIABLE /* Initialise the number of pages represented by NR_PAGEBLOCK_BITS */ -void __init set_pageblock_order (void ) +void __paginginit set_pageblock_order(void) {unsigned int order;
@@ -4614,7 +4614,7 @@ void __init set_pageblock_order(void)* include/linux/pageblock-flags.h for the values of pageblock_order based on * the kernel config */ -void __init set_pageblock_order (void ) +void __paginginit set_pageblock_order(void) { }
Signature · 7 lines
1.8.1.5 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>