summaryrefslogtreecommitdiffstats
path: root/block/blk-iolatency.c
diff options
context:
space:
mode:
authorMel Gorman <mgorman@techsingularity.net>2021-07-01 03:53:56 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2021-07-01 20:06:03 +0200
commit351de44fde5afc3b0b23294ebf404e78065c2745 (patch)
tree0030ed8eef5ed9c7107185b6317d40728383196a /block/blk-iolatency.c
parentmm/page_alloc: move prototype for find_suitable_fallback (diff)
downloadlinux-351de44fde5afc3b0b23294ebf404e78065c2745.tar.xz
linux-351de44fde5afc3b0b23294ebf404e78065c2745.zip
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: https://lkml.kernel.org/r/20210520084809.8576-15-mgorman@techsingularity.net Signed-off-by: Mel Gorman <mgorman@techsingularity.net> Reviewed-by: Yang Shi <shy828301@gmail.com> Acked-by: Vlastimil Babka <vbabka@suse.cz> Cc: Dan Streetman <ddstreet@ieee.org> Cc: David Hildenbrand <david@redhat.com> Cc: Michal Hocko <mhocko@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'block/blk-iolatency.c')
0 files changed, 0 insertions, 0 deletions