tree:
https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: 87241c08286384feb3ddc57d4cb0daca4be1e384
commit: 2c840ffbad347c1ba1059dc5b50de9fb26141c06 [26/9195] trusty: Add interrupt support
config: x86_64-randconfig-r023-20200811 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
4f2ad15db535873dda9bfe248a2771023b64a43c)
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 2c840ffbad347c1ba1059dc5b50de9fb26141c06
# 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 warnings (new ones prefixed by >>):
> drivers/trusty/trusty-irq.c:172:13: warning: no previous
prototype for function 'trusty_irq_handler' [-Wmissing-prototypes]
irqreturn_t trusty_irq_handler(int irq, void *data)
^
drivers/trusty/trusty-irq.c:172:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
irqreturn_t trusty_irq_handler(int irq, void *data)
^
static
drivers/trusty/trusty-irq.c:238:20: error: use of undeclared identifier
'CPU_TASKS_FROZEN'
switch (action & ~CPU_TASKS_FROZEN) {
^
drivers/trusty/trusty-irq.c:448:8: error: implicit declaration of function
'register_hotcpu_notifier' [-Werror,-Wimplicit-function-declaration]
ret = register_hotcpu_notifier(&is->cpu_notifier);
^
drivers/trusty/trusty-irq.c:448:8: note: did you mean
'register_module_notifier'?
include/linux/module.h:662:5: note: 'register_module_notifier' declared here
int register_module_notifier(struct notifier_block *nb);
^
drivers/trusty/trusty-irq.c:453:6: error: assigning to 'int' from incompatible
type 'void'
ret = on_each_cpu(trusty_irq_cpu_up, is, 0);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/trusty/trusty-irq.c:462:2: error: implicit declaration of function
'unregister_hotcpu_notifier' [-Werror,-Wimplicit-function-declaration]
unregister_hotcpu_notifier(&is->cpu_notifier);
^
drivers/trusty/trusty-irq.c:462:2: note: did you mean
'register_hotcpu_notifier'?
drivers/trusty/trusty-irq.c:448:8: note: 'register_hotcpu_notifier' declared
here
ret = register_hotcpu_notifier(&is->cpu_notifier);
^
drivers/trusty/trusty-irq.c:496:2: error: implicit declaration of function
'unregister_hotcpu_notifier' [-Werror,-Wimplicit-function-declaration]
unregister_hotcpu_notifier(&is->cpu_notifier);
^
drivers/trusty/trusty-irq.c:497:6: error: assigning to 'int' from incompatible
type 'void'
ret = on_each_cpu(trusty_irq_cpu_down, is, 1);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/trusty/trusty-irq.c:239:7: error: use of undeclared identifier
'CPU_STARTING'
case CPU_STARTING:
^
drivers/trusty/trusty-irq.c:242:7: error: use of undeclared identifier
'CPU_DYING'
case CPU_DYING:
^
1 warning and 8 errors generated.
vim +/trusty_irq_handler +172 drivers/trusty/trusty-irq.c
171
172 irqreturn_t trusty_irq_handler(int irq, void *data)
173 {
174 struct trusty_irq *trusty_irq = data;
175 struct trusty_irq_state *is = trusty_irq->is;
176 struct trusty_irq_work *trusty_irq_work = this_cpu_ptr(is->irq_work);
177 struct trusty_irq_irqset *irqset;
178
179 dev_dbg(is->dev, "%s: irq %d, percpu %d, cpu %d, enable %d\n",
180 __func__, irq, trusty_irq->irq, smp_processor_id(),
181 trusty_irq->enable);
182
183 if (trusty_irq->percpu) {
184 disable_percpu_irq(irq);
185 irqset = this_cpu_ptr(is->percpu_irqs);
186 } else {
187 disable_irq_nosync(irq);
188 irqset = &is->normal_irqs;
189 }
190
191 spin_lock(&is->normal_irqs_lock);
192 if (trusty_irq->enable) {
193 hlist_del(&trusty_irq->node);
194 hlist_add_head(&trusty_irq->node, &irqset->pending);
195 }
196 spin_unlock(&is->normal_irqs_lock);
197
198 schedule_work_on(raw_smp_processor_id(), &trusty_irq_work->work);
199
200 dev_dbg(is->dev, "%s: irq %d done\n", __func__, irq);
201
202 return IRQ_HANDLED;
203 }
204
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org