[mel:sched-altidlecore-v2r8 1/1] kernel/sched/fair.c:6254:28: error: 'SIS_IDLE_UNAVAILABLE' undeclared; did you mean 'SKB_FCLONE_UNAVAILABLE'?

From: kernel test robot
Date: Mon Sep 20 2021 - 13:29:39 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git sched-altidlecore-v2r8
head: b2af1a88245f6cbeb28343e89f3183a77b29d52d
commit: b2af1a88245f6cbeb28343e89f3183a77b29d52d [1/1] alt idle core tracking
config: powerpc-g5_defconfig (attached as .config)
compiler: powerpc64-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/mel/linux.git/commit/?id=b2af1a88245f6cbeb28343e89f3183a77b29d52d
git remote add mel https://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git
git fetch --no-tags mel sched-altidlecore-v2r8
git checkout b2af1a88245f6cbeb28343e89f3183a77b29d52d
# save the attached .config 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

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:5491:6: warning: no previous prototype for 'init_cfs_bandwidth' [-Wmissing-prototypes]
5491 | void init_cfs_bandwidth(struct cfs_bandwidth *cfs_b) {}
| ^~~~~~~~~~~~~~~~~~
kernel/sched/fair.c: In function 'get_idle_core':
>> kernel/sched/fair.c:6254:28: error: 'SIS_IDLE_UNAVAILABLE' undeclared (first use in this function); did you mean 'SKB_FCLONE_UNAVAILABLE'?
6254 | return def ? cpu : SIS_IDLE_UNAVAILABLE;
| ^~~~~~~~~~~~~~~~~~~~
| SKB_FCLONE_UNAVAILABLE
kernel/sched/fair.c:6254:28: note: each undeclared identifier is reported only once for each function it appears in
kernel/sched/fair.c: In function 'select_idle_cpu':
kernel/sched/fair.c:6333:39: error: 'SIS_IDLE_UNAVAILABLE' undeclared (first use in this function); did you mean 'SKB_FCLONE_UNAVAILABLE'?
6333 | set_idle_core(target, SIS_IDLE_UNAVAILABLE);
| ^~~~~~~~~~~~~~~~~~~~
| SKB_FCLONE_UNAVAILABLE
kernel/sched/fair.c: In function 'select_idle_sibling':
kernel/sched/fair.c:6486:34: error: 'SIS_IDLE_UNAVAILABLE' undeclared (first use in this function); did you mean 'SKB_FCLONE_UNAVAILABLE'?
6486 | if (idle_core == SIS_IDLE_UNAVAILABLE &&
| ^~~~~~~~~~~~~~~~~~~~
| SKB_FCLONE_UNAVAILABLE
>> kernel/sched/fair.c:6496:55: error: 'SIS_IDLE_AVAILABLE' undeclared (first use in this function); did you mean 'DL_STATE_AVAILABLE'?
6496 | set_idle_core(target, SIS_IDLE_AVAILABLE);
| ^~~~~~~~~~~~~~~~~~
| DL_STATE_AVAILABLE
kernel/sched/fair.c: At top level:
kernel/sched/fair.c:11622:6: warning: no previous prototype for 'free_fair_sched_group' [-Wmissing-prototypes]
11622 | void free_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11624:5: warning: no previous prototype for 'alloc_fair_sched_group' [-Wmissing-prototypes]
11624 | int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11629:6: warning: no previous prototype for 'online_fair_sched_group' [-Wmissing-prototypes]
11629 | void online_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11631:6: warning: no previous prototype for 'unregister_fair_sched_group' [-Wmissing-prototypes]
11631 | void unregister_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c: In function 'get_idle_core':
kernel/sched/fair.c:6255:1: error: control reaches end of non-void function [-Werror=return-type]
6255 | }
| ^
cc1: some warnings being treated as errors


vim +6254 kernel/sched/fair.c

6251
6252 static inline int get_idle_core(int cpu, bool def)
6253 {
> 6254 return def ? cpu : SIS_IDLE_UNAVAILABLE;
6255 }
6256

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

Attachment: .config.gz
Description: application/gzip