drivers/irqchip/irq-ath79-misc.c:173:13: warning: no previous prototype for 'ath79_misc_irq_init'

From: kernel test robot
Date: Thu Nov 09 2023 - 14:08:10 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 6bc986ab839c844e78a2333a02e55f02c9e57935
commit: 07ba4b061a79896315a7be4b123de12df6a9d2bd irqchip/ath79-misc: Move the MISC driver from arch/mips/ath79/
date: 8 years ago
config: mips-randconfig-r005-20210928 (https://download.01.org/0day-ci/archive/20231110/202311100226.yNCwxxjc-lkp@xxxxxxxxx/config)
compiler: mips-linux-gcc (GCC) 12.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231110/202311100226.yNCwxxjc-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311100226.yNCwxxjc-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

158 | ______r = !!(cond); \
| ^~~~
include/linux/preempt.h:165:9: note: in expansion of macro 'if'
165 | if (unlikely(preempt_count_dec_and_test())) \
| ^~
include/linux/compiler.h:137:60: note: in expansion of macro '__branch_check__'
137 | # define unlikely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 0))
| ^~~~~~~~~~~~~~~~
include/linux/preempt.h:165:13: note: in expansion of macro 'unlikely'
165 | if (unlikely(preempt_count_dec_and_test())) \
| ^~~~~~~~
include/linux/radix-tree.h:315:9: note: in expansion of macro 'preempt_enable'
315 | preempt_enable();
| ^~~~~~~~~~~~~~
include/linux/compiler.h:153:25: note: previous declaration here
153 | ______f = { \
| ^~~~~~~
include/linux/compiler.h:145:23: note: in expansion of macro '__trace_if'
145 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
| ^~~~~~~~~~
include/linux/preempt.h:165:9: note: in expansion of macro 'if'
165 | if (unlikely(preempt_count_dec_and_test())) \
| ^~
include/linux/radix-tree.h:315:9: note: in expansion of macro 'preempt_enable'
315 | preempt_enable();
| ^~~~~~~~~~~~~~
include/linux/radix-tree.h: In function 'radix_tree_next_slot':
include/linux/compiler.h:115:39: warning: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Wattributes]
115 | static struct ftrace_branch_data \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:158:30: note: in definition of macro '__trace_if'
158 | ______r = !!(cond); \
| ^~~~
include/linux/radix-tree.h:409:17: note: in expansion of macro 'if'
409 | if (likely(iter->tags & 1ul)) {
| ^~
include/linux/compiler.h:134:60: note: in expansion of macro '__branch_check__'
134 | # define likely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 1))
| ^~~~~~~~~~~~~~~~
include/linux/radix-tree.h:409:21: note: in expansion of macro 'likely'
409 | if (likely(iter->tags & 1ul)) {
| ^~~~~~
include/linux/compiler.h:153:25: note: previous declaration here
153 | ______f = { \
| ^~~~~~~
include/linux/compiler.h:145:23: note: in expansion of macro '__trace_if'
145 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
| ^~~~~~~~~~
include/linux/radix-tree.h:409:17: note: in expansion of macro 'if'
409 | if (likely(iter->tags & 1ul)) {
| ^~
include/linux/compiler.h:115:39: warning: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Wattributes]
115 | static struct ftrace_branch_data \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:158:30: note: in definition of macro '__trace_if'
158 | ______r = !!(cond); \
| ^~~~
include/linux/radix-tree.h:413:17: note: in expansion of macro 'if'
413 | if (!(flags & RADIX_TREE_ITER_CONTIG) && likely(iter->tags)) {
| ^~
include/linux/compiler.h:134:60: note: in expansion of macro '__branch_check__'
134 | # define likely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 1))
| ^~~~~~~~~~~~~~~~
include/linux/radix-tree.h:413:58: note: in expansion of macro 'likely'
413 | if (!(flags & RADIX_TREE_ITER_CONTIG) && likely(iter->tags)) {
| ^~~~~~
include/linux/compiler.h:153:25: note: previous declaration here
153 | ______f = { \
| ^~~~~~~
include/linux/compiler.h:145:23: note: in expansion of macro '__trace_if'
145 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
| ^~~~~~~~~~
include/linux/radix-tree.h:413:17: note: in expansion of macro 'if'
413 | if (!(flags & RADIX_TREE_ITER_CONTIG) && likely(iter->tags)) {
| ^~
include/linux/compiler.h:115:39: warning: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Wattributes]
115 | static struct ftrace_branch_data \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:158:30: note: in definition of macro '__trace_if'
158 | ______r = !!(cond); \
| ^~~~
include/linux/radix-tree.h:426:25: note: in expansion of macro 'if'
426 | if (likely(*slot))
| ^~
include/linux/compiler.h:134:60: note: in expansion of macro '__branch_check__'
134 | # define likely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 1))
| ^~~~~~~~~~~~~~~~
include/linux/radix-tree.h:426:29: note: in expansion of macro 'likely'
426 | if (likely(*slot))
| ^~~~~~
include/linux/compiler.h:153:25: note: previous declaration here
153 | ______f = { \
| ^~~~~~~
include/linux/compiler.h:145:23: note: in expansion of macro '__trace_if'
145 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
| ^~~~~~~~~~
include/linux/radix-tree.h:426:25: note: in expansion of macro 'if'
426 | if (likely(*slot))
| ^~
drivers/irqchip/irq-ath79-misc.c: At top level:
>> drivers/irqchip/irq-ath79-misc.c:173:13: warning: no previous prototype for 'ath79_misc_irq_init' [-Wmissing-prototypes]
173 | void __init ath79_misc_irq_init(void __iomem *regs, int irq,
| ^~~~~~~~~~~~~~~~~~~


vim +/ath79_misc_irq_init +173 drivers/irqchip/irq-ath79-misc.c

169
170 IRQCHIP_DECLARE(ar7240_misc_intc, "qca,ar7240-misc-intc",
171 ar7240_misc_intc_of_init);
172
> 173 void __init ath79_misc_irq_init(void __iomem *regs, int irq,

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki