Skip to content

Commit 9f6ae44

Browse files
pmundttorvalds
authored andcommitted
mm/page_alloc.c: silence build_all_zonelists() section mismatch
The memory hotplug case involves calling to build_all_zonelists() which in turns calls in to setup_zone_pageset(). The latter is marked __meminit while build_all_zonelists() itself has no particular annotation. build_all_zonelists() is only handed a non-NULL pointer in the case of memory hotplug through an existing __meminit path, so the setup_zone_pageset() reference is always safe. The options as such are either to flag build_all_zonelists() as __ref (as per __build_all_zonelists()), or to simply discard the __meminit annotation from setup_zone_pageset(). Signed-off-by: Paul Mundt <[email protected]> Acked-by: Mel Gorman <[email protected]> Cc: KAMEZAWA Hiroyuki <[email protected]> Acked-by: Randy Dunlap <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent c340b1d commit 9f6ae44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/page_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3176,7 +3176,7 @@ static __init_refok int __build_all_zonelists(void *data)
31763176
* Called with zonelists_mutex held always
31773177
* unless system_state == SYSTEM_BOOTING.
31783178
*/
3179-
void build_all_zonelists(void *data)
3179+
void __ref build_all_zonelists(void *data)
31803180
{
31813181
set_zonelist_order();
31823182

0 commit comments

Comments
 (0)