diff options
| author | Mel Gorman <[email protected]> | 2021-06-30 18:53:47 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-07-01 11:06:03 -0700 |
| commit | 2bb6a033fb4078f1c528ee575f551064ed738d6f (patch) | |
| tree | 7d05c6d3629df79408a24b009b9fc1df00290582 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 30522175d222c98f7976e34f6daf076e9f8cc723 (diff) | |
mm/swap: make swap_address_space an inline function
make W=1 generates the following warning in page_mapping() for allnoconfig
mm/util.c:700:15: warning: variable `entry' set but not used [-Wunused-but-set-variable]
swp_entry_t entry;
^~~~~
swap_address is a #define on !CONFIG_SWAP configurations. 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/[email protected]
Signed-off-by: Mel Gorman <[email protected]>
Reviewed-by: Yang Shi <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Cc: Dan Streetman <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions