path: root/arch/nios2
diff options
authorMel Gorman <>2021-06-30 18:53:56 -0700
committerLinus Torvalds <>2021-07-01 11:06:03 -0700
commit351de44fde5afc3b0b23294ebf404e78065c2745 (patch)
tree0030ed8eef5ed9c7107185b6317d40728383196a /arch/nios2
parentffd8f251f1a61e592aa3146d2c3cfb6a992e80f2 (diff)
mm/swap: make NODE_DATA an inline function on CONFIG_FLATMEM
make W=1 generates the following warning in mm/workingset.c for allnoconfig mm/workingset.c: In function `unpack_shadow': mm/workingset.c:201:15: warning: variable `nid' set but not used [-Wunused-but-set-variable] int memcgid, nid; ^~~ On FLATMEM, NODE_DATA returns a global pglist_data without dereferencing nid. Make the helper an inline function to suppress the warning, add type checking and to apply any side-effects in the parameter list. Link: Signed-off-by: Mel Gorman <> Reviewed-by: Yang Shi <> Acked-by: Vlastimil Babka <> Cc: Dan Streetman <> Cc: David Hildenbrand <> Cc: Michal Hocko <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'arch/nios2')
0 files changed, 0 insertions, 0 deletions