* [zen:5.14/prjc 199/213] kernel/sched/alt_core.c:6229:6: warning: no previous prototype for function 'idle_task_exit'
@ 2021-09-19 18:18 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-19 18:18 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 10116 bytes --]
tree: https://github.com/zen-kernel/zen-kernel 5.14/prjc
head: 4fafc0599dcf6ced73c595d6a911179b8b0a9e9e
commit: 8e79ff69bdee272975f92e45e8b4ecf0690b636e [199/213] sched/alt: [Sync] 2f064a59a11f sched: Change task_struct::state
config: x86_64-randconfig-a013-20210919 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c8b3d7d6d6de37af68b2f379d0e37304f78e115f)
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/8e79ff69bdee272975f92e45e8b4ecf0690b636e
git remote add zen https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen 5.14/prjc
git checkout 8e79ff69bdee272975f92e45e8b4ecf0690b636e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
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 >>):
kernel/sched/alt_core.c:830:6: warning: no previous prototype for function 'resched_curr' [-Wmissing-prototypes]
void resched_curr(struct rq *rq)
^
kernel/sched/alt_core.c:830:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void resched_curr(struct rq *rq)
^
static
kernel/sched/alt_core.c:853:6: warning: no previous prototype for function 'resched_cpu' [-Wmissing-prototypes]
void resched_cpu(int cpu)
^
kernel/sched/alt_core.c:853:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void resched_cpu(int cpu)
^
static
kernel/sched/alt_core.c:868:6: warning: no previous prototype for function 'select_nohz_load_balancer' [-Wmissing-prototypes]
void select_nohz_load_balancer(int stop_tick) {}
^
kernel/sched/alt_core.c:868:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void select_nohz_load_balancer(int stop_tick) {}
^
static
kernel/sched/alt_core.c:870:6: warning: no previous prototype for function 'set_cpu_sd_state_idle' [-Wmissing-prototypes]
void set_cpu_sd_state_idle(void) {}
^
kernel/sched/alt_core.c:870:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void set_cpu_sd_state_idle(void) {}
^
static
kernel/sched/alt_core.c:1744:6: warning: no previous prototype for function 'sched_set_stop_task' [-Wmissing-prototypes]
void sched_set_stop_task(int cpu, struct task_struct *stop)
^
kernel/sched/alt_core.c:1744:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sched_set_stop_task(int cpu, struct task_struct *stop)
^
static
>> kernel/sched/alt_core.c:6229:6: warning: no previous prototype for function 'idle_task_exit' [-Wmissing-prototypes]
void idle_task_exit(void)
^
kernel/sched/alt_core.c:6229:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void idle_task_exit(void)
^
static
>> kernel/sched/alt_core.c:6439:5: warning: no previous prototype for function 'sched_cpu_activate' [-Wmissing-prototypes]
int sched_cpu_activate(unsigned int cpu)
^
kernel/sched/alt_core.c:6439:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int sched_cpu_activate(unsigned int cpu)
^
static
>> kernel/sched/alt_core.c:6478:5: warning: no previous prototype for function 'sched_cpu_deactivate' [-Wmissing-prototypes]
int sched_cpu_deactivate(unsigned int cpu)
^
kernel/sched/alt_core.c:6478:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int sched_cpu_deactivate(unsigned int cpu)
^
static
>> kernel/sched/alt_core.c:6542:5: warning: no previous prototype for function 'sched_cpu_starting' [-Wmissing-prototypes]
int sched_cpu_starting(unsigned int cpu)
^
kernel/sched/alt_core.c:6542:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int sched_cpu_starting(unsigned int cpu)
^
static
>> kernel/sched/alt_core.c:6562:5: warning: no previous prototype for function 'sched_cpu_wait_empty' [-Wmissing-prototypes]
int sched_cpu_wait_empty(unsigned int cpu)
^
kernel/sched/alt_core.c:6562:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int sched_cpu_wait_empty(unsigned int cpu)
^
static
>> kernel/sched/alt_core.c:6604:5: warning: no previous prototype for function 'sched_cpu_dying' [-Wmissing-prototypes]
int sched_cpu_dying(unsigned int cpu)
^
kernel/sched/alt_core.c:6604:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int sched_cpu_dying(unsigned int cpu)
^
static
kernel/sched/alt_core.c:6851:16: warning: variable 'preempt_disable_ip' set but not used [-Wunused-but-set-variable]
unsigned long preempt_disable_ip;
^
kernel/sched/alt_core.c:7046:20: warning: no previous prototype for function 'sched_create_group' [-Wmissing-prototypes]
struct task_group *sched_create_group(struct task_group *parent)
^
kernel/sched/alt_core.c:7046:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct task_group *sched_create_group(struct task_group *parent)
^
static
kernel/sched/alt_core.c:7057:6: warning: no previous prototype for function 'sched_online_group' [-Wmissing-prototypes]
void sched_online_group(struct task_group *tg, struct task_group *parent)
^
kernel/sched/alt_core.c:7057:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sched_online_group(struct task_group *tg, struct task_group *parent)
^
static
kernel/sched/alt_core.c:7068:6: warning: no previous prototype for function 'sched_destroy_group' [-Wmissing-prototypes]
void sched_destroy_group(struct task_group *tg)
^
kernel/sched/alt_core.c:7068:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sched_destroy_group(struct task_group *tg)
^
static
kernel/sched/alt_core.c:7074:6: warning: no previous prototype for function 'sched_offline_group' [-Wmissing-prototypes]
void sched_offline_group(struct task_group *tg)
^
kernel/sched/alt_core.c:7074:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sched_offline_group(struct task_group *tg)
^
static
kernel/sched/alt_core.c:7144:5: warning: no previous prototype for function 'sched_group_set_shares' [-Wmissing-prototypes]
int sched_group_set_shares(struct task_group *tg, unsigned long shares)
^
kernel/sched/alt_core.c:7144:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int sched_group_set_shares(struct task_group *tg, unsigned long shares)
^
static
kernel/sched/alt_core.c:7213:20: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.legacy_cftypes = cpu_legacy_files,
^~~~~~~~~~~~~~~~
kernel/sched/alt_core.c:7212:20: note: previous initialization is here
.legacy_cftypes = cpu_files,
^~~~~~~~~
kernel/sched/alt_core.c:1100:19: warning: unused function 'hrtick_enabled' [-Wunused-function]
static inline int hrtick_enabled(struct rq *rq)
^
>> kernel/sched/alt_core.c:1725:19: warning: stack frame size (2080) exceeds limit (2048) in function 'select_task_rq' [-Wframe-larger-than]
static inline int select_task_rq(struct task_struct *p)
^
20 warnings generated.
vim +/idle_task_exit +6229 kernel/sched/alt_core.c
f746b5817d3274 Alfred Chen 2019-08-19 6223
f746b5817d3274 Alfred Chen 2019-08-19 6224 #ifdef CONFIG_HOTPLUG_CPU
f746b5817d3274 Alfred Chen 2019-08-19 6225 /*
f746b5817d3274 Alfred Chen 2019-08-19 6226 * Ensures that the idle task is using init_mm right before its CPU goes
f746b5817d3274 Alfred Chen 2019-08-19 6227 * offline.
f746b5817d3274 Alfred Chen 2019-08-19 6228 */
f746b5817d3274 Alfred Chen 2019-08-19 @6229 void idle_task_exit(void)
f746b5817d3274 Alfred Chen 2019-08-19 6230 {
f746b5817d3274 Alfred Chen 2019-08-19 6231 struct mm_struct *mm = current->active_mm;
f746b5817d3274 Alfred Chen 2019-08-19 6232
f746b5817d3274 Alfred Chen 2019-08-19 6233 BUG_ON(current != this_rq()->idle);
f746b5817d3274 Alfred Chen 2019-08-19 6234
f746b5817d3274 Alfred Chen 2019-08-19 6235 if (mm != &init_mm) {
f746b5817d3274 Alfred Chen 2019-08-19 6236 switch_mm(mm, &init_mm, current);
f746b5817d3274 Alfred Chen 2019-08-19 6237 finish_arch_post_lock_switch();
f746b5817d3274 Alfred Chen 2019-08-19 6238 }
f746b5817d3274 Alfred Chen 2019-08-19 6239
f746b5817d3274 Alfred Chen 2019-08-19 6240 /* finish_cpu(), as ran on the BP, will clean up the active_mm state */
f746b5817d3274 Alfred Chen 2019-08-19 6241 }
f746b5817d3274 Alfred Chen 2019-08-19 6242
:::::: The code at line 6229 was first introduced by commit
:::::: f746b5817d3274fa4f458f87f6b452e7304b1d64 Project C v5.7.5-r2
:::::: TO: Alfred Chen <cchalpha@gmail.com>
:::::: CC: Alfred Chen <cchalpha@gmail.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 43222 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-19 18:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-19 18:18 [zen:5.14/prjc 199/213] kernel/sched/alt_core.c:6229:6: warning: no previous prototype for function 'idle_task_exit' kernel test robot
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.