diff options
author | Arnd Bergmann <[email protected]> | 2023-05-22 21:50:21 +0200 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2023-05-30 22:46:26 +0200 |
commit | 7aa55f2a5902646a19db89dab9961867724b27b8 (patch) | |
tree | 168e7aa96cf836259c6c1c5986f5d4eb995bf241 /lib/mpi/mpi-sub-ui.c | |
parent | f7df852ad6dbb84644e75df7402d9a34f39f31bd (diff) |
sched/fair: Move unused stub functions to header
These four functions have a normal definition for CONFIG_FAIR_GROUP_SCHED,
and empty one that is only referenced when FAIR_GROUP_SCHED is disabled
but CGROUP_SCHED is still enabled. If both are turned off, the functions
are still defined but the misisng prototype causes a W=1 warning:
kernel/sched/fair.c:12544:6: error: no previous prototype for 'free_fair_sched_group'
kernel/sched/fair.c:12546:5: error: no previous prototype for 'alloc_fair_sched_group'
kernel/sched/fair.c:12553:6: error: no previous prototype for 'online_fair_sched_group'
kernel/sched/fair.c:12555:6: error: no previous prototype for 'unregister_fair_sched_group'
Move the alternatives into the header as static inline functions with
the correct combination of #ifdef checks to avoid the warning without
adding even more complexity.
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Vincent Guittot <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions