From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4269659685192196530==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [zen:5.15/prjc 10/11] kernel/sched/alt_core.c:7508:6: warning: no previous prototype for 'sched_release_group' Date: Fri, 26 Nov 2021 11:00:50 +0800 Message-ID: <202111261018.aOOCPg6W-lkp@intel.com> List-Id: --===============4269659685192196530== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://github.com/zen-kernel/zen-kernel 5.15/prjc head: 957daf0a8cd0c5dabae3ff6adf67d03756dd0257 commit: f2dcf2626a25681f88500c1d050d2db3e82b5c17 [10/11] sched/alt: [Sync] = b027789e Prevent dead task groups from regaining cfs_rq's config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20211126/= 202111261018.aOOCPg6W-lkp(a)intel.com/config) compiler: arceb-elf-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/zen-kernel/zen-kernel/commit/f2dcf2626a25681f8= 8500c1d050d2db3e82b5c17 git remote add zen https://github.com/zen-kernel/zen-kernel git fetch --no-tags zen 5.15/prjc git checkout f2dcf2626a25681f88500c1d050d2db3e82b5c17 # save the config file to linux build tree COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= ARCH=3Darc = If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): 6898 | int sched_cpu_deactivate(unsigned int cpu) | ^~~~~~~~~~~~~~~~~~~~ kernel/sched/alt_core.c:6962:5: warning: no previous prototype for 'sche= d_cpu_starting' [-Wmissing-prototypes] 6962 | int sched_cpu_starting(unsigned int cpu) | ^~~~~~~~~~~~~~~~~~ kernel/sched/alt_core.c: In function 'sched_init_topology_cpumask': kernel/sched/alt_core.c:7088:57: error: implicit declaration of function= 'cpu_coregroup_mask' [-Werror=3Dimplicit-function-declaration] 7088 | per_cpu(sd_llc_id, cpu) =3D cpumask_first(cpu_co= regroup_mask(cpu)); | ^~~~~~~~= ~~~~~~~~~~ kernel/sched/alt_core.c:7088:57: warning: passing argument 1 of 'cpumask= _first' makes pointer from integer without a cast [-Wint-conversion] 7088 | per_cpu(sd_llc_id, cpu) =3D cpumask_first(cpu_co= regroup_mask(cpu)); | ^~~~~~~~= ~~~~~~~~~~~~~~~ | | | int In file included from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/rcupdate.h:29, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from include/linux/kthread.h:6, from include/trace/events/sched.h:8, from kernel/sched/alt_core.c:15: include/linux/cpumask.h:193:64: note: expected 'const struct cpumask *' = but argument is of type 'int' 193 | static inline unsigned int cpumask_first(const struct cpumask *s= rcp) | ~~~~~~~~~~~~~~~~~~~~~~^= ~~~ kernel/sched/alt_core.c:7090:45: warning: passing argument 3 of 'cpumask= _and' makes pointer from integer without a cast [-Wint-conversion] 7090 | TOPOLOGY_CPUMASK(coregroup, cpu_coregroup_mask(c= pu), false); | ^~~~~~~~~~~~~~~~~~~~= ~~~ | | | int kernel/sched/alt_core.c:7065:37: note: in definition of macro 'TOPOLOGY_= CPUMASK' 7065 | if (cpumask_and(topo, topo, mask)) { = \ | ^~~~ In file included from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/rcupdate.h:29, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from include/linux/kthread.h:6, from include/trace/events/sched.h:8, from kernel/sched/alt_core.c:15: include/linux/cpumask.h:403:54: note: expected 'const struct cpumask *' = but argument is of type 'int' 403 | const struct cpumask *src2p) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ kernel/sched/alt_core.c:7090:45: warning: passing argument 2 of 'cpumask= _copy' makes pointer from integer without a cast [-Wint-conversion] 7090 | TOPOLOGY_CPUMASK(coregroup, cpu_coregroup_mask(c= pu), false); | ^~~~~~~~~~~~~~~~~~~~= ~~~ | | | int kernel/sched/alt_core.c:7066:36: note: in definition of macro 'TOPOLOGY_= CPUMASK' 7066 | cpumask_copy(topo, mask); = \ | ^~~~ In file included from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/rcupdate.h:29, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from include/linux/kthread.h:6, from include/trace/events/sched.h:8, from kernel/sched/alt_core.c:15: include/linux/cpumask.h:575:55: note: expected 'const struct cpumask *' = but argument is of type 'int' 575 | const struct cpumask *srcp) | ~~~~~~~~~~~~~~~~~~~~~~^~~~ kernel/sched/alt_core.c:7090:45: warning: passing argument 2 of 'cpumask= _complement' makes pointer from integer without a cast [-Wint-conversion] 7090 | TOPOLOGY_CPUMASK(coregroup, cpu_coregroup_mask(c= pu), false); | ^~~~~~~~~~~~~~~~~~~~= ~~~ | | | int kernel/sched/alt_core.c:7071:42: note: in definition of macro 'TOPOLOGY_= CPUMASK' 7071 | cpumask_complement(topo, mask) | ^~~~ In file included from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/rcupdate.h:29, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from include/linux/kthread.h:6, from include/trace/events/sched.h:8, from kernel/sched/alt_core.c:15: include/linux/cpumask.h:458:61: note: expected 'const struct cpumask *' = but argument is of type 'int' 458 | const struct cpumask *srcp) | ~~~~~~~~~~~~~~~~~~~~~~^~~~ kernel/sched/alt_core.c: In function '___might_sleep': kernel/sched/alt_core.c:7271:23: warning: variable 'preempt_disable_ip' = set but not used [-Wunused-but-set-variable] 7271 | unsigned long preempt_disable_ip; | ^~~~~~~~~~~~~~~~~~ kernel/sched/alt_core.c: At top level: kernel/sched/alt_core.c:7480:20: warning: no previous prototype for 'sch= ed_create_group' [-Wmissing-prototypes] 7480 | struct task_group *sched_create_group(struct task_group *parent) | ^~~~~~~~~~~~~~~~~~ kernel/sched/alt_core.c:7491:6: warning: no previous prototype for 'sche= d_online_group' [-Wmissing-prototypes] 7491 | void sched_online_group(struct task_group *tg, struct task_group= *parent) | ^~~~~~~~~~~~~~~~~~ kernel/sched/alt_core.c:7502:6: warning: no previous prototype for 'sche= d_destroy_group' [-Wmissing-prototypes] 7502 | void sched_destroy_group(struct task_group *tg) | ^~~~~~~~~~~~~~~~~~~ >> kernel/sched/alt_core.c:7508:6: warning: no previous prototype for 'sche= d_release_group' [-Wmissing-prototypes] 7508 | void sched_release_group(struct task_group *tg) | ^~~~~~~~~~~~~~~~~~~ kernel/sched/alt_core.c:7578:5: warning: no previous prototype for 'sche= d_group_set_shares' [-Wmissing-prototypes] 7578 | int sched_group_set_shares(struct task_group *tg, unsigned long = shares) | ^~~~~~~~~~~~~~~~~~~~~~ kernel/sched/alt_core.c:7647:27: warning: initialized field overwritten = [-Woverride-init] 7647 | .legacy_cftypes =3D cpu_legacy_files, | ^~~~~~~~~~~~~~~~ kernel/sched/alt_core.c:7647:27: note: (near initialization for 'cpu_cgr= p_subsys.legacy_cftypes') In file included from include/linux/perf_event.h:25, from include/linux/trace_events.h:10, from include/trace/trace_events.h:21, from include/trace/define_trace.h:102, from include/trace/events/sched.h:738, from kernel/sched/alt_core.c:15: arch/arc/include/asm/perf_event.h:126:27: warning: 'arc_pmu_cache_map' d= efined but not used [-Wunused-const-variable=3D] 126 | static const unsigned int arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C= (RESULT_MAX)] =3D { | ^~~~~~~~~~~~~~~~~ arch/arc/include/asm/perf_event.h:91:27: warning: 'arc_pmu_ev_hw_map' de= fined but not used [-Wunused-const-variable=3D] 91 | static const char * const arc_pmu_ev_hw_map[] =3D { | ^~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/sched_release_group +7508 kernel/sched/alt_core.c 7507 = > 7508 void sched_release_group(struct task_group *tg) 7509 { 7510 } 7511 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============4269659685192196530==--