[peterz-queue:sched/core 29/29] kernel/sched/fair.c:230:9: error: implicit declaration of function 'sched_cfs_bandwidth_sysctl_init'

From: kernel test robot
Date: Wed Feb 09 2022 - 08:26:54 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/core
head: bf8d9ef490e0600b3b30ac2244858ecd327123ab
commit: bf8d9ef490e0600b3b30ac2244858ecd327123ab [29/29] sched: Move cfs_bandwidth_slice sysctls to fair.c
config: powerpc-allnoconfig (https://download.01.org/0day-ci/archive/20220209/202202092104.f0q3gfHV-lkp@xxxxxxxxx/config)
compiler: powerpc-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=bf8d9ef490e0600b3b30ac2244858ecd327123ab
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue sched/core
git checkout bf8d9ef490e0600b3b30ac2244858ecd327123ab
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash kernel/sched/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

kernel/sched/fair.c: In function 'sched_init_granularity':
>> kernel/sched/fair.c:230:9: error: implicit declaration of function 'sched_cfs_bandwidth_sysctl_init' [-Werror=implicit-function-declaration]
230 | sched_cfs_bandwidth_sysctl_init();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c: At top level:
kernel/sched/fair.c:652:5: warning: no previous prototype for 'sched_update_scaling' [-Wmissing-prototypes]
652 | int sched_update_scaling(void)
| ^~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:5469:6: warning: no previous prototype for 'init_cfs_bandwidth' [-Wmissing-prototypes]
5469 | void init_cfs_bandwidth(struct cfs_bandwidth *cfs_b) {}
| ^~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11694:6: warning: no previous prototype for 'free_fair_sched_group' [-Wmissing-prototypes]
11694 | void free_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11696:5: warning: no previous prototype for 'alloc_fair_sched_group' [-Wmissing-prototypes]
11696 | int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11701:6: warning: no previous prototype for 'online_fair_sched_group' [-Wmissing-prototypes]
11701 | void online_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11703:6: warning: no previous prototype for 'unregister_fair_sched_group' [-Wmissing-prototypes]
11703 | void unregister_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors


vim +/sched_cfs_bandwidth_sysctl_init +230 kernel/sched/fair.c

226
227 void __init sched_init_granularity(void)
228 {
229 update_sysctl();
> 230 sched_cfs_bandwidth_sysctl_init();
231 }
232

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx