Hi,
On Sat, 27 Mar 2021 at 14:59, YueHaibing wrote:
>
> while CONFIG_NO_HZ_COMMON is not enabled, gcc warn this:
>
> kernel/sched/fair.c:8398:13: warning: ‘update_nohz_stats’ defined but not
> used [-Wunused-function]
> static bool update_nohz_stats(struct rq *rq)
> ^~~
while CONFIG_NO_HZ_COMMON is not enabled, gcc warn this:
kernel/sched/fair.c:8398:13: warning: ‘update_nohz_stats’ defined but not used
[-Wunused-function]
static bool update_nohz_stats(struct rq *rq)
^
Move update_nohz_stats() to #ifdef block fix this.
Signed-off-
2 matches
Mail list logo