From: kernel test robot <lkp@intel.com>
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 [thread overview]
Message-ID: <202111261018.aOOCPg6W-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 10181 bytes --]
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=1 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/f2dcf2626a25681f88500c1d050d2db3e82b5c17
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=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
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 'sched_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=implicit-function-declaration]
7088 | per_cpu(sd_llc_id, cpu) = cpumask_first(cpu_coregroup_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) = cpumask_first(cpu_coregroup_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 *srcp)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
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(cpu), 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(cpu), 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(cpu), 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 'sched_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 'sched_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 'sched_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 'sched_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 'sched_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 = cpu_legacy_files,
| ^~~~~~~~~~~~~~~~
kernel/sched/alt_core.c:7647:27: note: (near initialization for 'cpu_cgrp_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' defined but not used [-Wunused-const-variable=]
126 | static const unsigned int arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
| ^~~~~~~~~~~~~~~~~
arch/arc/include/asm/perf_event.h:91:27: warning: 'arc_pmu_ev_hw_map' defined but not used [-Wunused-const-variable=]
91 | static const char * const arc_pmu_ev_hw_map[] = {
| ^~~~~~~~~~~~~~~~~
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
reply other threads:[~2021-11-26 3:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202111261018.aOOCPg6W-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.