[linux-next:master 14057/15967] drivers/staging/media/atomisp/pci/atomisp_compat_css20.c:159:2: warning: function might be possible candidate for 'gnu_printf' format attribute
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 3d155ae4358baf4831609c2f9cd09396a2b8badf
commit: ebbd08f6b9f37cfe1c54d53de31515f2b6d949d6 [14057/15967] media: atomisp: re-enable warnings again
config: x86_64-randconfig-r036-20200609 (attached as .config)
compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
reproduce (this is a W=1 build):
git checkout ebbd08f6b9f37cfe1c54d53de31515f2b6d949d6
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
cc1: warning: drivers/staging/media/atomisp//pci/hive_isp_css_include/memory_access/: No such file or directory [-Wmissing-include-dirs]
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c: In function 'atomisp_css2_dbg_print':
>> drivers/staging/media/atomisp/pci/atomisp_compat_css20.c:159:2: warning: function might be possible candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
vprintk(fmt, args);
^
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c: In function 'atomisp_css2_dbg_ftrace_print':
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c:165:2: warning: function might be possible candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
ftrace_vprintk(fmt, args);
^
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c:165:2: warning: function might be possible candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c: In function 'atomisp_css2_err_print':
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c:171:2: warning: function might be possible candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
vprintk(fmt, args);
^
--
cc1: warning: drivers/staging/media/atomisp//pci/hive_isp_css_include/memory_access/: No such file or directory [-Wmissing-include-dirs]
>> drivers/staging/media/atomisp/pci/runtime/isys/src/ibuf_ctrl_rmgr.c:34:6: warning: no previous prototype for 'ia_css_isys_ibuf_rmgr_init' [-Wmissing-prototypes]
void ia_css_isys_ibuf_rmgr_init(void)
^
>> drivers/staging/media/atomisp/pci/runtime/isys/src/ibuf_ctrl_rmgr.c:40:6: warning: no previous prototype for 'ia_css_isys_ibuf_rmgr_uninit' [-Wmissing-prototypes]
void ia_css_isys_ibuf_rmgr_uninit(void)
^
>> drivers/staging/media/atomisp/pci/runtime/isys/src/ibuf_ctrl_rmgr.c:46:6: warning: no previous prototype for 'ia_css_isys_ibuf_rmgr_acquire' [-Wmissing-prototypes]
bool ia_css_isys_ibuf_rmgr_acquire(
^
>> drivers/staging/media/atomisp/pci/runtime/isys/src/ibuf_ctrl_rmgr.c:106:6: warning: no previous prototype for 'ia_css_isys_ibuf_rmgr_release' [-Wmissing-prototypes]
void ia_css_isys_ibuf_rmgr_release(
^
--
cc1: warning: drivers/staging/media/atomisp//pci/hive_isp_css_include/memory_access/: No such file or directory [-Wmissing-include-dirs]
drivers/staging/media/atomisp/pci/runtime/isys/src/rx.c: In function 'ia_css_isys_rx_configure':
>> drivers/staging/media/atomisp/pci/runtime/isys/src/rx.c:488:7: warning: variable 'port_enabled' set but not used [-Wunused-but-set-variable]
bool port_enabled[N_MIPI_PORT_ID];
^
vim +/gnu_printf +159 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 156
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 157 static int atomisp_css2_dbg_print(const char *fmt, va_list args)
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 158 {
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 @159 vprintk(fmt, args);
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 160 return 0;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 161 }
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 162
:::::: The code at line 159 was first introduced by commit
:::::: ad85094b293e40e7a2f831b0311a389d952ebd5e Revert "media: staging: atomisp: Remove driver"
:::::: TO: Mauro Carvalho Chehab <mchehab+huawei(a)kernel.org>
:::::: CC: Mauro Carvalho Chehab <mchehab+huawei(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH v7 2/4] lib/test_bitmap.c: Add for_each_set_clump test cases
by Rong Chen
On 6/7/20 7:15 AM, Syed Nayyar Waris wrote:
> On Fri, Jun 5, 2020 at 5:54 PM Andy Shevchenko
> <andriy.shevchenko(a)linux.intel.com> wrote:
>> On Fri, Jun 05, 2020 at 02:12:54AM +0530, Syed Nayyar Waris wrote:
>>> On Sun, May 31, 2020 at 12:50 AM kbuild test robot <lkp(a)intel.com> wrote:
>>>>>> WARNING: modpost: lib/test_bitmap.o(.data+0xe80): Section mismatch in reference from the variable clump_test_data to the variable .init.rodata:clump_exp1
>>>> The variable clump_test_data references
>>>> the variable __initconst clump_exp1
>>>> If the reference is valid then annotate the
>>>> variable with or __refdata (see linux/init.h) or name the variable:
>>>>
>>>> --
>>>>>> WARNING: modpost: lib/test_bitmap.o(.data+0xec8): Section mismatch in reference from the variable clump_test_data to the variable .init.rodata:clump_exp2
>>>> The variable clump_test_data references
>>>> the variable __initconst clump_exp2
>>>> If the reference is valid then annotate the
>>>> variable with or __refdata (see linux/init.h) or name the variable:
>>>>
>>>> --
>>>>>> WARNING: modpost: lib/test_bitmap.o(.data+0xf10): Section mismatch in reference from the variable clump_test_data to the variable .init.rodata:clump_exp3
>>>> The variable clump_test_data references
>>>> the variable __initconst clump_exp3
>>>> If the reference is valid then annotate the
>>>> variable with or __refdata (see linux/init.h) or name the variable:
>>>>
>>>> --
>>>>>> WARNING: modpost: lib/test_bitmap.o(.data+0xf58): Section mismatch in reference from the variable clump_test_data to the variable .init.rodata:clump_exp4
>>>> The variable clump_test_data references
>>>> the variable __initconst clump_exp4
>>>> If the reference is valid then annotate the
>>>> variable with or __refdata (see linux/init.h) or name the variable:
>>> I am unable to reproduce the compilation warning.
>> You have to enable section mismatch checker.
>>
>>> I ran the command:
>>> make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' lib/
>>>
>>> But the compilation warning didn't show up. Can anyone please point to me
>>> what I am doing wrong here? How shall I reproduce the warning? Thanks !
>> You put some data into init section of the object, while you are trying to
>> access it from non-init one. It's easy-to-fix issue.
>>
>> --
>> With Best Regards,
>> Andy Shevchenko
> Thanks! I have made code changes for the above warning. Actually I am
> still unable to reproduce the compilation warning. But I believe the
> following code fix will fix the compilation warning:
>
> In file lib/test_bitmap.c
>
> @@ -692,7 +692,7 @@ struct clump_test_data_params {
> unsigned long const *exp;
> };
>
> -struct clump_test_data_params clump_test_data[] =
> +static struct clump_test_data_params clump_test_data[] __initdata =
> { {{0}, 2, 0, 64, 8, clump_exp1},
> {{0}, 8, 2, 240, 24, clump_exp2},
> {{0}, 8, 10, 240, 30, clump_exp3},
>
>
>
> Let me know if I should submit a new patchset (v8) for
> 'for_each_set_clump' including above code fix.
>
> Just to share how I attempted to reproduce the warning (but unsuccessful):
>
> Step 1: Use the config file in attachment. Download, extract, rename
> file to .config at the root of the tree.
> Step 2: '$ make lib/'
> No warning reproduced after above step 2.
> Step 3: '$ make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix
> -D__CHECK_ENDIAN__' lib/'
> After step 3 I got error in build:
> scripts/kconfig/conf --syncconfig Kconfig
> CHECK scripts/mod/empty.c
> No such file: asan-globals=1
> scripts/Makefile.build:266: recipe for target 'scripts/mod/empty.o' failed
> make[1]: *** [scripts/mod/empty.o] Error 1
> Makefile:1147: recipe for target 'prepare0' failed
> make: *** [prepare0] Error 2
>
> The command in above step 3 was mentioned in the bot mail.
>
> Regards
> Syed Nayyar Waris
>
Hi Syed Nayyar Waris,
We can reproduce the warning with the steps in original report,
you may need to build the whole kernel instead of the 'lib'.
Best Regards,
Rong Chen
2 years, 3 months
[peterz-queue:sched/fifo 22/24] kernel/sched/psi.c:620:21: error: use of undeclared identifier 'kworker'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/fifo
head: dfa122e2911e086d472738cf17660969dd0d2749
commit: bb0c29eb129a46bd752342902a7b702577420a1c [22/24] sched,psi: Convert to sched_set_fifo_low()
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project bc2b70982be8f5250cd0082a7190f8b417bd4dfe)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout bb0c29eb129a46bd752342902a7b702577420a1c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> kernel/sched/psi.c:620:21: error: use of undeclared identifier 'kworker'
sched_set_fifo_low(kworker->task);
^
1 error generated.
vim +/kworker +620 kernel/sched/psi.c
615
616 static int psi_poll_worker(void *data)
617 {
618 struct psi_group *group = (struct psi_group *)data;
619
> 620 sched_set_fifo_low(kworker->task);
621
622 while (true) {
623 wait_event_interruptible(group->poll_wait,
624 atomic_cmpxchg(&group->poll_wakeup, 1, 0) ||
625 kthread_should_stop());
626 if (kthread_should_stop())
627 break;
628
629 psi_poll_work(group);
630 }
631 return 0;
632 }
633
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[zen-kernel-zen-kernel:5.7/muqss 1/16] kernel/sched/MuQSS.c:1092:14: warning: variable 'tmp_rq' set but not used
by kernel test robot
tree: https://github.com/zen-kernel/zen-kernel 5.7/muqss
head: 4567060b2f5ff28fb444b38edc2122aff6aa34ce
commit: cd3b420bc9cd575a1eaf051463cfb1204599e8d9 [1/16] MultiQueue Skiplist Scheduler v0.202
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.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
git checkout cd3b420bc9cd575a1eaf051463cfb1204599e8d9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
kernel/sched/MuQSS.c:239:12: warning: no previous prototype for 'arch_sd_sibling_asym_packing' [-Wmissing-prototypes]
239 | int __weak arch_sd_sibling_asym_packing(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/MuQSS.c:637:6: warning: no previous prototype for 'resched_task' [-Wmissing-prototypes]
637 | void resched_task(struct task_struct *p)
| ^~~~~~~~~~~~
kernel/sched/MuQSS.c: In function 'best_mask_cpu':
>> kernel/sched/MuQSS.c:1092:14: warning: variable 'tmp_rq' set but not used [-Wunused-but-set-variable]
1092 | struct rq *tmp_rq;
| ^~~~~~
kernel/sched/MuQSS.c: At top level:
kernel/sched/MuQSS.c:2243:5: warning: no previous prototype for 'sysctl_schedstats' [-Wmissing-prototypes]
2243 | int sysctl_schedstats(struct ctl_table *table, int write,
| ^~~~~~~~~~~~~~~~~
kernel/sched/MuQSS.c:2932:15: warning: no previous prototype for 'nr_active' [-Wmissing-prototypes]
2932 | unsigned long nr_active(void)
| ^~~~~~~~~
kernel/sched/MuQSS.c:5880:6: warning: no previous prototype for '__do_set_cpus_allowed' [-Wmissing-prototypes]
5880 | void __do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask)
| ^~~~~~~~~~~~~~~~~~~~~
kernel/sched/MuQSS.c:6000:6: warning: no previous prototype for 'resched_cpu' [-Wmissing-prototypes]
6000 | void resched_cpu(int cpu)
| ^~~~~~~~~~~
kernel/sched/MuQSS.c:6013:6: warning: no previous prototype for 'select_nohz_load_balancer' [-Wmissing-prototypes]
6013 | void select_nohz_load_balancer(int stop_tick)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/MuQSS.c:6017:6: warning: no previous prototype for 'set_cpu_sd_state_idle' [-Wmissing-prototypes]
6017 | void set_cpu_sd_state_idle(void) {}
| ^~~~~~~~~~~~~~~~~~~~~
kernel/sched/MuQSS.c:6071:6: warning: no previous prototype for 'wake_up_idle_cpu' [-Wmissing-prototypes]
6071 | void wake_up_idle_cpu(int cpu)
| ^~~~~~~~~~~~~~~~
kernel/sched/MuQSS.c:6334:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
6334 | void sched_set_stop_task(int cpu, struct task_struct *stop)
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/MuQSS.c: In function 'setup_rq_orders':
kernel/sched/MuQSS.c:6952:22: warning: unused variable 'i' [-Wunused-variable]
6952 | int cpu, other_cpu, i;
| ^
kernel/sched/MuQSS.c: At top level:
kernel/sched/MuQSS.c:7464:6: warning: no previous prototype for 'init_idle_bootup_task' [-Wmissing-prototypes]
7464 | void init_idle_bootup_task(struct task_struct *idle)
| ^~~~~~~~~~~~~~~~~~~~~
kernel/sched/MuQSS.c:7488:20: warning: no previous prototype for 'sched_create_group' [-Wmissing-prototypes]
7488 | struct task_group *sched_create_group(struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~
kernel/sched/MuQSS.c:7499:6: warning: no previous prototype for 'sched_online_group' [-Wmissing-prototypes]
7499 | void sched_online_group(struct task_group *tg, struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~
kernel/sched/MuQSS.c:7510:6: warning: no previous prototype for 'sched_destroy_group' [-Wmissing-prototypes]
7510 | void sched_destroy_group(struct task_group *tg)
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/MuQSS.c:7516:6: warning: no previous prototype for 'sched_offline_group' [-Wmissing-prototypes]
7516 | void sched_offline_group(struct task_group *tg)
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/MuQSS.c:7607:20: warning: initialized field overwritten [-Woverride-init]
7607 | .legacy_cftypes = cpu_legacy_files,
| ^~~~~~~~~~~~~~~~
kernel/sched/MuQSS.c:7607:20: note: (near initialization for 'cpu_cgrp_subsys.legacy_cftypes')
vim +/tmp_rq +1092 kernel/sched/MuQSS.c
1064
1065 /*
1066 * The best idle CPU is chosen according to the CPUIDLE ranking above where the
1067 * lowest value would give the most suitable CPU to schedule p onto next. The
1068 * order works out to be the following:
1069 *
1070 * Same thread, idle or busy cache, idle or busy threads
1071 * Other core, same cache, idle or busy cache, idle threads.
1072 * Same node, other CPU, idle cache, idle threads.
1073 * Same node, other CPU, busy cache, idle threads.
1074 * Other core, same cache, busy threads.
1075 * Same node, other CPU, busy threads.
1076 * Other node, other CPU, idle cache, idle threads.
1077 * Other node, other CPU, busy cache, idle threads.
1078 * Other node, other CPU, busy threads.
1079 */
1080 static int best_mask_cpu(int best_cpu, struct rq *rq, cpumask_t *tmpmask)
1081 {
1082 int best_ranking = CPUIDLE_DIFF_NODE | CPUIDLE_THREAD_BUSY |
1083 CPUIDLE_DIFF_CPU | CPUIDLE_CACHE_BUSY | CPUIDLE_DIFF_CORE |
1084 CPUIDLE_DIFF_CORE_LLC | CPUIDLE_DIFF_THREAD;
1085 int cpu_tmp;
1086
1087 if (cpumask_test_cpu(best_cpu, tmpmask))
1088 goto out;
1089
1090 for_each_cpu(cpu_tmp, tmpmask) {
1091 int ranking, locality;
> 1092 struct rq *tmp_rq;
1093
1094 ranking = 0;
1095 tmp_rq = cpu_rq(cpu_tmp);
1096
1097 locality = rq->cpu_locality[cpu_tmp];
1098 #ifdef CONFIG_NUMA
1099 if (locality > LOCALITY_SMP)
1100 ranking |= CPUIDLE_DIFF_NODE;
1101 else
1102 #endif
1103 if (locality > LOCALITY_MC)
1104 ranking |= CPUIDLE_DIFF_CPU;
1105 #ifdef CONFIG_SCHED_MC
1106 else if (locality == LOCALITY_MC_LLC)
1107 ranking |= CPUIDLE_DIFF_CORE_LLC;
1108 else if (locality == LOCALITY_MC)
1109 ranking |= CPUIDLE_DIFF_CORE;
1110 if (!(tmp_rq->cache_idle(tmp_rq)))
1111 ranking |= CPUIDLE_CACHE_BUSY;
1112 #endif
1113 #ifdef CONFIG_SCHED_SMT
1114 if (locality == LOCALITY_SMT)
1115 ranking |= CPUIDLE_DIFF_THREAD;
1116 #endif
1117 if (ranking < best_ranking
1118 #ifdef CONFIG_SCHED_SMT
1119 || (ranking == best_ranking && (tmp_rq->siblings_idle(tmp_rq)))
1120 #endif
1121 ) {
1122 best_cpu = cpu_tmp;
1123 best_ranking = ranking;
1124 }
1125 }
1126 out:
1127 return best_cpu;
1128 }
1129
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[zen-kernel-zen-kernel:5.7/muqss 1/16] kernel/sched/MuQSS.c:239:12: warning: no previous prototype for 'arch_sd_sibling_asym_packing'
by kernel test robot
tree: https://github.com/zen-kernel/zen-kernel 5.7/muqss
head: 4567060b2f5ff28fb444b38edc2122aff6aa34ce
commit: cd3b420bc9cd575a1eaf051463cfb1204599e8d9 [1/16] MultiQueue Skiplist Scheduler v0.202
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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
git checkout cd3b420bc9cd575a1eaf051463cfb1204599e8d9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> kernel/sched/MuQSS.c:239:12: warning: no previous prototype for 'arch_sd_sibling_asym_packing' [-Wmissing-prototypes]
239 | int __weak arch_sd_sibling_asym_packing(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/sched/MuQSS.c:637:6: warning: no previous prototype for 'resched_task' [-Wmissing-prototypes]
637 | void resched_task(struct task_struct *p)
| ^~~~~~~~~~~~
>> kernel/sched/MuQSS.c:2243:5: warning: no previous prototype for 'sysctl_schedstats' [-Wmissing-prototypes]
2243 | int sysctl_schedstats(struct ctl_table *table, int write,
| ^~~~~~~~~~~~~~~~~
>> kernel/sched/MuQSS.c:2932:15: warning: no previous prototype for 'nr_active' [-Wmissing-prototypes]
2932 | unsigned long nr_active(void)
| ^~~~~~~~~
>> kernel/sched/MuQSS.c:5880:6: warning: no previous prototype for '__do_set_cpus_allowed' [-Wmissing-prototypes]
5880 | void __do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask)
| ^~~~~~~~~~~~~~~~~~~~~
>> kernel/sched/MuQSS.c:6000:6: warning: no previous prototype for 'resched_cpu' [-Wmissing-prototypes]
6000 | void resched_cpu(int cpu)
| ^~~~~~~~~~~
>> kernel/sched/MuQSS.c:6013:6: warning: no previous prototype for 'select_nohz_load_balancer' [-Wmissing-prototypes]
6013 | void select_nohz_load_balancer(int stop_tick)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/sched/MuQSS.c:6017:6: warning: no previous prototype for 'set_cpu_sd_state_idle' [-Wmissing-prototypes]
6017 | void set_cpu_sd_state_idle(void) {}
| ^~~~~~~~~~~~~~~~~~~~~
>> kernel/sched/MuQSS.c:6071:6: warning: no previous prototype for 'wake_up_idle_cpu' [-Wmissing-prototypes]
6071 | void wake_up_idle_cpu(int cpu)
| ^~~~~~~~~~~~~~~~
>> kernel/sched/MuQSS.c:6334:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
6334 | void sched_set_stop_task(int cpu, struct task_struct *stop)
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/MuQSS.c: In function 'select_leaders':
>> kernel/sched/MuQSS.c:6783:7: warning: variable 'smt_threads' set but not used [-Wunused-but-set-variable]
6783 | bool smt_threads = false;
| ^~~~~~~~~~~
kernel/sched/MuQSS.c: In function 'setup_rq_orders':
kernel/sched/MuQSS.c:6952:22: warning: unused variable 'i' [-Wunused-variable]
6952 | int cpu, other_cpu, i;
| ^
kernel/sched/MuQSS.c: At top level:
>> kernel/sched/MuQSS.c:7464:6: warning: no previous prototype for 'init_idle_bootup_task' [-Wmissing-prototypes]
7464 | void init_idle_bootup_task(struct task_struct *idle)
| ^~~~~~~~~~~~~~~~~~~~~
>> kernel/sched/MuQSS.c:7488:20: warning: no previous prototype for 'sched_create_group' [-Wmissing-prototypes]
7488 | struct task_group *sched_create_group(struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~
>> kernel/sched/MuQSS.c:7499:6: warning: no previous prototype for 'sched_online_group' [-Wmissing-prototypes]
7499 | void sched_online_group(struct task_group *tg, struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~
>> kernel/sched/MuQSS.c:7510:6: warning: no previous prototype for 'sched_destroy_group' [-Wmissing-prototypes]
7510 | void sched_destroy_group(struct task_group *tg)
| ^~~~~~~~~~~~~~~~~~~
>> kernel/sched/MuQSS.c:7516:6: warning: no previous prototype for 'sched_offline_group' [-Wmissing-prototypes]
7516 | void sched_offline_group(struct task_group *tg)
| ^~~~~~~~~~~~~~~~~~~
>> kernel/sched/MuQSS.c:7607:20: warning: initialized field overwritten [-Woverride-init]
7607 | .legacy_cftypes = cpu_legacy_files,
| ^~~~~~~~~~~~~~~~
kernel/sched/MuQSS.c:7607:20: note: (near initialization for 'cpu_cgrp_subsys.legacy_cftypes')
--
>> kernel/sched/topology.c:211:5: warning: no previous prototype for 'sched_energy_aware_handler' [-Wmissing-prototypes]
211 | int sched_energy_aware_handler(struct ctl_table *table, int write,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/sched/topology.c:493:6: warning: no previous prototype for 'sched_get_rd' [-Wmissing-prototypes]
493 | void sched_get_rd(struct root_domain *rd)
| ^~~~~~~~~~~~
>> kernel/sched/topology.c:498:6: warning: no previous prototype for 'sched_put_rd' [-Wmissing-prototypes]
498 | void sched_put_rd(struct root_domain *rd)
| ^~~~~~~~~~~~
>> kernel/sched/topology.c:744:5: warning: no previous prototype for 'group_balance_cpu' [-Wmissing-prototypes]
744 | int group_balance_cpu(struct sched_group *sg)
| ^~~~~~~~~~~~~~~~~
vim +/arch_sd_sibling_asym_packing +239 kernel/sched/MuQSS.c
238
> 239 int __weak arch_sd_sibling_asym_packing(void)
240 {
241 return 0*SD_ASYM_PACKING;
242 }
243
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[peterz-queue:x86/module 3/5] module.c:undefined reference to `insn_init'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/module
head: 1038d7016fbe79920f08d4cd2a8c0d6b9808732b
commit: 48cd170aa2223a0d70f4193377922e353ad27767 [3/5] x86,module: Detect VMX vs SLD conflicts
config: um-allmodconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout 48cd170aa2223a0d70f4193377922e353ad27767
# save the attached .config to linux build tree
make W=1 ARCH=um
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
/usr/bin/ld: arch/x86/um/../kernel/module.o: in function `decode_module':
>> module.c:(.text+0x82): undefined reference to `insn_init'
>> /usr/bin/ld: module.c:(.text+0x98): undefined reference to `insn_get_length'
>> /usr/bin/ld: module.c:(.text+0x3a4): undefined reference to `split_lock_enabled'
>> /usr/bin/ld: module.c:(.text+0x3fb): undefined reference to `insn_get_prefixes'
collect2: error: ld returned 1 exit status
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[peterz-queue:modules/WIP 22/23] ld: kernel/module.c:1036: undefined reference to `ftrace_module_release'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git modules/WIP
head: f5c11619431a2710b5d96883d3aeff708b7e8557
commit: b07aec8a443f228fe79cd4dbeae1c69ab406336e [22/23] ftrace: Merge ftrace_module_{init,enable}()
config: x86_64-rhel (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout b07aec8a443f228fe79cd4dbeae1c69ab406336e
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
ld: kernel/module.o: in function `__do_sys_delete_module':
kernel/module.c:1036: undefined reference to `ftrace_module_release'
>> ld: kernel/module.c:1036: undefined reference to `ftrace_module_release'
ld: kernel/module.o: in function `do_init_module':
kernel/module.c:3648: undefined reference to `ftrace_module_release'
ld: kernel/module.o: in function `load_module':
kernel/module.c:3943: undefined reference to `ftrace_module_release'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[zen-kernel-zen-kernel:5.7/muqss 11/16] kernel/time/timer.c:2075:62: error: 'pm_freezing' undeclared
by kernel test robot
tree: https://github.com/zen-kernel/zen-kernel 5.7/muqss
head: 4567060b2f5ff28fb444b38edc2122aff6aa34ce
commit: f9ac1105e85c3cac13bad2152c200914b6eef1e4 [11/16] muqss: Reduce impact on non-MuQSS build
config: i386-tinyconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout f9ac1105e85c3cac13bad2152c200914b6eef1e4
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the zen-kernel-zen-kernel/5.7/muqss HEAD 4567060b2f5ff28fb444b38edc2122aff6aa34ce builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>, old ones prefixed by <<):
kernel/time/timer.c: In function 'schedule_timeout':
kernel/time/timer.c:1923:1: warning: label 'out_timeout' defined but not used [-Wunused-label]
1923 | out_timeout:
| ^~~~~~~~~~~
kernel/time/timer.c: In function 'msleep':
>> kernel/time/timer.c:2075:62: error: 'pm_freezing' undeclared (first use in this function)
2075 | if (jiffs < 5 && hrtimer_resolution < NSEC_PER_SEC / HZ && !pm_freezing) {
| ^~~~~~~~~~~
kernel/time/timer.c:2075:62: note: each undeclared identifier is reported only once for each function it appears in
kernel/time/timer.c: In function 'msleep_interruptible':
kernel/time/timer.c:2097:62: error: 'pm_freezing' undeclared (first use in this function)
2097 | if (jiffs < 5 && hrtimer_resolution < NSEC_PER_SEC / HZ && !pm_freezing) {
| ^~~~~~~~~~~
--
kernel/time/hrtimer.c:120:21: warning: initialized field overwritten [-Woverride-init]
120 | [CLOCK_REALTIME] = HRTIMER_BASE_REALTIME,
| ^~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:120:21: note: (near initialization for 'hrtimer_clock_to_base_table[0]')
kernel/time/hrtimer.c:121:22: warning: initialized field overwritten [-Woverride-init]
121 | [CLOCK_MONOTONIC] = HRTIMER_BASE_MONOTONIC,
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:121:22: note: (near initialization for 'hrtimer_clock_to_base_table[1]')
kernel/time/hrtimer.c:122:21: warning: initialized field overwritten [-Woverride-init]
122 | [CLOCK_BOOTTIME] = HRTIMER_BASE_BOOTTIME,
| ^~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:122:21: note: (near initialization for 'hrtimer_clock_to_base_table[7]')
kernel/time/hrtimer.c:123:17: warning: initialized field overwritten [-Woverride-init]
123 | [CLOCK_TAI] = HRTIMER_BASE_TAI,
| ^~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:123:17: note: (near initialization for 'hrtimer_clock_to_base_table[11]')
kernel/time/hrtimer.c: In function '__run_hrtimer':
kernel/time/hrtimer.c:1483:7: warning: variable 'expires_in_hardirq' set but not used [-Wunused-but-set-variable]
1483 | bool expires_in_hardirq;
| ^~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c: At top level:
kernel/time/hrtimer.c:2224:14: error: redefinition of 'schedule_msec_hrtimeout'
2224 | long __sched schedule_msec_hrtimeout(long timeout)
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from kernel/time/hrtimer.c:25:
include/linux/sched.h:233:20: note: previous definition of 'schedule_msec_hrtimeout' was here
233 | static inline long schedule_msec_hrtimeout(long timeout)
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c: In function 'schedule_msec_hrtimeout':
>> kernel/time/hrtimer.c:2241:62: error: 'pm_freezing' undeclared (first use in this function); did you mean 'freezing'?
2241 | if (jiffs > 4 || hrtimer_resolution >= NSEC_PER_SEC / HZ || pm_freezing)
| ^~~~~~~~~~~
| freezing
kernel/time/hrtimer.c:2241:62: note: each undeclared identifier is reported only once for each function it appears in
kernel/time/hrtimer.c: At top level:
kernel/time/hrtimer.c:2309:14: error: redefinition of 'schedule_min_hrtimeout'
2309 | long __sched schedule_min_hrtimeout(void)
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from kernel/time/hrtimer.c:25:
include/linux/sched.h:238:20: note: previous definition of 'schedule_min_hrtimeout' was here
238 | static inline long schedule_min_hrtimeout(void)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:2316:14: error: redefinition of 'schedule_msec_hrtimeout_interruptible'
2316 | long __sched schedule_msec_hrtimeout_interruptible(long timeout)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from kernel/time/hrtimer.c:25:
include/linux/sched.h:243:20: note: previous definition of 'schedule_msec_hrtimeout_interruptible' was here
243 | static inline long schedule_msec_hrtimeout_interruptible(long timeout)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:2323:14: error: redefinition of 'schedule_msec_hrtimeout_uninterruptible'
2323 | long __sched schedule_msec_hrtimeout_uninterruptible(long timeout)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from kernel/time/hrtimer.c:25:
include/linux/sched.h:248:20: note: previous definition of 'schedule_msec_hrtimeout_uninterruptible' was here
248 | static inline long schedule_msec_hrtimeout_uninterruptible(long timeout)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/pm_freezing +2075 kernel/time/timer.c
^1da177e4c3f41 kernel/timer.c Linus Torvalds 2005-04-16 2061
^1da177e4c3f41 kernel/timer.c Linus Torvalds 2005-04-16 2062 /**
^1da177e4c3f41 kernel/timer.c Linus Torvalds 2005-04-16 2063 * msleep - sleep safely even with waitqueue interruptions
^1da177e4c3f41 kernel/timer.c Linus Torvalds 2005-04-16 2064 * @msecs: Time in milliseconds to sleep for
^1da177e4c3f41 kernel/timer.c Linus Torvalds 2005-04-16 2065 */
^1da177e4c3f41 kernel/timer.c Linus Torvalds 2005-04-16 2066 void msleep(unsigned int msecs)
^1da177e4c3f41 kernel/timer.c Linus Torvalds 2005-04-16 2067 {
82347ff66417ea kernel/time/timer.c Con Kolivas 2016-11-04 2068 int jiffs = msecs_to_jiffies(msecs);
82347ff66417ea kernel/time/timer.c Con Kolivas 2016-11-04 2069 unsigned long timeout;
82347ff66417ea kernel/time/timer.c Con Kolivas 2016-11-04 2070
82347ff66417ea kernel/time/timer.c Con Kolivas 2016-11-04 2071 /*
82347ff66417ea kernel/time/timer.c Con Kolivas 2016-11-04 2072 * Use high resolution timers where the resolution of tick based
82347ff66417ea kernel/time/timer.c Con Kolivas 2016-11-04 2073 * timers is inadequate.
82347ff66417ea kernel/time/timer.c Con Kolivas 2016-11-04 2074 */
885af80becca64 kernel/time/timer.c Con Kolivas 2017-02-20 @2075 if (jiffs < 5 && hrtimer_resolution < NSEC_PER_SEC / HZ && !pm_freezing) {
82347ff66417ea kernel/time/timer.c Con Kolivas 2016-11-04 2076 while (msecs)
82347ff66417ea kernel/time/timer.c Con Kolivas 2016-11-04 2077 msecs = schedule_msec_hrtimeout_uninterruptible(msecs);
82347ff66417ea kernel/time/timer.c Con Kolivas 2016-11-04 2078 return;
82347ff66417ea kernel/time/timer.c Con Kolivas 2016-11-04 2079 }
885af80becca64 kernel/time/timer.c Con Kolivas 2017-02-20 2080 timeout = jiffs + 1;
^1da177e4c3f41 kernel/timer.c Linus Torvalds 2005-04-16 2081
75bcc8c5e1de78 kernel/timer.c Nishanth Aravamudan 2005-09-10 2082 while (timeout)
75bcc8c5e1de78 kernel/timer.c Nishanth Aravamudan 2005-09-10 2083 timeout = schedule_timeout_uninterruptible(timeout);
^1da177e4c3f41 kernel/timer.c Linus Torvalds 2005-04-16 2084 }
^1da177e4c3f41 kernel/timer.c Linus Torvalds 2005-04-16 2085
:::::: The code at line 2075 was first introduced by commit
:::::: 885af80becca642b3bc5693b81b597a2fe488559 Don't use hrtimer overlay when pm_freezing since some drivers still don't correctly use freezable timeouts.
:::::: TO: Con Kolivas <kernel(a)kolivas.org>
:::::: CC: Jan Alexander Steffens (heftig) <jan.steffens(a)gmail.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months