aboutsummaryrefslogtreecommitdiff
path: root/include/linux/overflow.h
diff options
context:
space:
mode:
authorYueHaibing <[email protected]>2021-03-29 22:40:29 +0800
committerIngo Molnar <[email protected]>2021-04-20 10:14:15 +0200
commit3f5ad91488e813026f8c5f46b839e91a83912703 (patch)
tree75f52303b323388dff29bbe273bf45d4552ff69d /include/linux/overflow.h
parentd0d252b8ca7a636640a7dca8606edf7c3bcfe0b8 (diff)
sched/fair: Move update_nohz_stats() to the CONFIG_NO_HZ_COMMON block to simplify the code & fix an unused function warning
When !CONFIG_NO_HZ_COMMON we get this new GCC warning: kernel/sched/fair.c:8398:13: warning: ‘update_nohz_stats’ defined but not used [-Wunused-function] Move update_nohz_stats() to an already existing CONFIG_NO_HZ_COMMON #ifdef block. Beyond fixing the GCC warning, this also simplifies the update_nohz_stats() function. [ mingo: Rewrote the changelog. ] Fixes: 0826530de3cb ("sched/fair: Remove update of blocked load from newidle_balance") Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Vincent Guittot <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions