All of lore.kernel.org
 help / color / mirror / Atom feed
* [bcache:nvdimm-meta 10/16] include/linux/static_call.h:123:1: warning: 'cold' attribute ignored
@ 2021-03-29 20:24 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-29 20:24 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 14152 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git nvdimm-meta
head:   be0f72faa6d269aa7d824296859cd055f0ba61a0
commit: 6521498ff4eb39bb26cbd09dd9965b43af366663 [10/16] bcache: initialize bcache journal for NVDIMM meta device
config: x86_64-randconfig-a004-20210329 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git/commit/?id=6521498ff4eb39bb26cbd09dd9965b43af366663
        git remote add bcache https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git
        git fetch --no-tags bcache nvdimm-meta
        git checkout 6521498ff4eb39bb26cbd09dd9965b43af366663
        # 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@intel.com>

All warnings (new ones prefixed by >>):

     218 | extern enum cpuhp_smt_control cpu_smt_control;
         |                               ^~~~~~~~~~~~~~~
   include/linux/cpu.h:219:13: error: storage class specified for parameter 'cpu_smt_disable'
     219 | extern void cpu_smt_disable(bool force);
         |             ^~~~~~~~~~~~~~~
   include/linux/cpu.h:220:13: error: storage class specified for parameter 'cpu_smt_check_topology'
     220 | extern void cpu_smt_check_topology(void);
         |             ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/cpu.h:221:13: error: storage class specified for parameter 'cpu_smt_possible'
     221 | extern bool cpu_smt_possible(void);
         |             ^~~~~~~~~~~~~~~~
   include/linux/cpu.h:222:12: error: storage class specified for parameter 'cpuhp_smt_enable'
     222 | extern int cpuhp_smt_enable(void);
         |            ^~~~~~~~~~~~~~~~
   include/linux/cpu.h:223:12: error: storage class specified for parameter 'cpuhp_smt_disable'
     223 | extern int cpuhp_smt_disable(enum cpuhp_smt_control ctrlval);
         |            ^~~~~~~~~~~~~~~~~
   include/linux/cpu.h:233:13: error: storage class specified for parameter 'cpu_mitigations_off'
     233 | extern bool cpu_mitigations_off(void);
         |             ^~~~~~~~~~~~~~~~~~~
   include/linux/cpu.h:234:13: error: storage class specified for parameter 'cpu_mitigations_auto_nosmt'
     234 | extern bool cpu_mitigations_auto_nosmt(void);
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/x86/include/asm/static_call.h:5,
                    from include/linux/static_call.h:101,
                    from include/linux/tracepoint.h:22,
                    from include/trace/events/bcache.h:8,
                    from drivers/md/bcache/journal.c:15:
   arch/x86/include/asm/text-patching.h:9:1: warning: empty declaration
       9 | struct paravirt_patch_site;
         | ^~~~~~
   arch/x86/include/asm/text-patching.h:28:13: error: storage class specified for parameter 'text_poke_early'
      28 | extern void text_poke_early(void *addr, const void *opcode, size_t len);
         |             ^~~~~~~~~~~~~~~
   arch/x86/include/asm/text-patching.h:44:14: error: storage class specified for parameter 'text_poke'
      44 | extern void *text_poke(void *addr, const void *opcode, size_t len);
         |              ^~~~~~~~~
   arch/x86/include/asm/text-patching.h:45:13: error: storage class specified for parameter 'text_poke_sync'
      45 | extern void text_poke_sync(void);
         |             ^~~~~~~~~~~~~~
   arch/x86/include/asm/text-patching.h:46:14: error: storage class specified for parameter 'text_poke_kgdb'
      46 | extern void *text_poke_kgdb(void *addr, const void *opcode, size_t len);
         |              ^~~~~~~~~~~~~~
   arch/x86/include/asm/text-patching.h:47:12: error: storage class specified for parameter 'poke_int3_handler'
      47 | extern int poke_int3_handler(struct pt_regs *regs);
         |            ^~~~~~~~~~~~~~~~~
   arch/x86/include/asm/text-patching.h:48:13: error: storage class specified for parameter 'text_poke_bp'
      48 | extern void text_poke_bp(void *addr, const void *opcode, size_t len, const void *emulate);
         |             ^~~~~~~~~~~~
   arch/x86/include/asm/text-patching.h:50:13: error: storage class specified for parameter 'text_poke_queue'
      50 | extern void text_poke_queue(void *addr, const void *opcode, size_t len, const void *emulate);
         |             ^~~~~~~~~~~~~~~
   arch/x86/include/asm/text-patching.h:51:13: error: storage class specified for parameter 'text_poke_finish'
      51 | extern void text_poke_finish(void);
         |             ^~~~~~~~~~~~~~~~
   arch/x86/include/asm/text-patching.h:71:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
      71 | {
         | ^
   arch/x86/include/asm/text-patching.h:90:1: warning: empty declaration
      90 | union text_poke_insn {
         | ^~~~~
   arch/x86/include/asm/text-patching.h:100:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     100 | {
         | ^
   arch/x86/include/asm/text-patching.h:120:12: error: storage class specified for parameter 'after_bootmem'
     120 | extern int after_bootmem;
         |            ^~~~~~~~~~~~~
   arch/x86/include/asm/text-patching.h:121:42: error: storage class specified for parameter 'poking_mm'
     121 | extern __ro_after_init struct mm_struct *poking_mm;
         |                                          ^~~~~~~~~
   arch/x86/include/asm/text-patching.h:121:42: error: section attribute not allowed for 'poking_mm'
   arch/x86/include/asm/text-patching.h:122:38: error: storage class specified for parameter 'poking_addr'
     122 | extern __ro_after_init unsigned long poking_addr;
         |                                      ^~~~~~~~~~~
   arch/x86/include/asm/text-patching.h:122:38: error: section attribute not allowed for 'poking_addr'
   arch/x86/include/asm/text-patching.h:127:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     127 | {
         | ^
   arch/x86/include/asm/text-patching.h:133:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     133 | {
         | ^
   arch/x86/include/asm/text-patching.h:149:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     149 | {
         | ^
   arch/x86/include/asm/text-patching.h:157:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     157 | {
         | ^
   arch/x86/include/asm/text-patching.h:164:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     164 | {
         | ^
   In file included from include/linux/tracepoint.h:22,
                    from include/trace/events/bcache.h:8,
                    from drivers/md/bcache/journal.c:15:
   include/linux/static_call.h:106:13: error: storage class specified for parameter 'arch_static_call_transform'
     106 | extern void arch_static_call_transform(void *site, void *tramp, void *func, bool tail);
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:123:19: error: storage class specified for parameter 'static_call_init'
     123 | extern int __init static_call_init(void);
         |                   ^~~~~~~~~~~~~~~~
   include/linux/static_call.h:123:19: error: section attribute not allowed for 'static_call_init'
>> include/linux/static_call.h:123:1: warning: 'cold' attribute ignored [-Wattributes]
     123 | extern int __init static_call_init(void);
         | ^~~~~~
   include/linux/static_call.h:125:1: warning: empty declaration
     125 | struct static_call_mod {
         | ^~~~~~
   include/linux/static_call.h:131:1: warning: empty declaration
     131 | struct static_call_key {
         | ^~~~~~
   include/linux/static_call.h:142:1: warning: empty declaration
     142 | struct static_call_tramp_key {
         | ^~~~~~
   include/linux/static_call.h:147:13: error: storage class specified for parameter '__static_call_update'
     147 | extern void __static_call_update(struct static_call_key *key, void *tramp, void *func);
         |             ^~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:148:12: error: storage class specified for parameter 'static_call_mod_init'
     148 | extern int static_call_mod_init(struct module *mod);
         |            ^~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:149:12: error: storage class specified for parameter 'static_call_text_reserved'
     149 | extern int static_call_text_reserved(void *start, void *end);
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/static_call.h:151:13: error: storage class specified for parameter '__static_call_return0'
     151 | extern long __static_call_return0(void);
         |             ^~~~~~~~~~~~~~~~~~~~~
   In file included from include/trace/events/bcache.h:8,
                    from drivers/md/bcache/journal.c:15:
   include/linux/tracepoint.h:24:1: warning: empty declaration
      24 | struct module;
         | ^~~~~~
   include/linux/tracepoint.h:25:1: warning: empty declaration
      25 | struct tracepoint;
         | ^~~~~~
   include/linux/tracepoint.h:26:1: warning: empty declaration
      26 | struct notifier_block;
         | ^~~~~~
   include/linux/tracepoint.h:28:1: warning: empty declaration
      28 | struct trace_eval_map {
         | ^~~~~~
   include/linux/tracepoint.h:36:27: error: storage class specified for parameter 'tracepoint_srcu'
      36 | extern struct srcu_struct tracepoint_srcu;
         |                           ^~~~~~~~~~~~~~~
   include/linux/tracepoint.h:39:1: error: storage class specified for parameter 'tracepoint_probe_register'
      39 | tracepoint_probe_register(struct tracepoint *tp, void *probe, void *data);
         | ^~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:41:1: error: storage class specified for parameter 'tracepoint_probe_register_prio'
      41 | tracepoint_probe_register_prio(struct tracepoint *tp, void *probe, void *data,
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:44:1: error: storage class specified for parameter 'tracepoint_probe_unregister'
      44 | tracepoint_probe_unregister(struct tracepoint *tp, void *probe, void *data);
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:46:1: error: storage class specified for parameter 'for_each_kernel_tracepoint'
      46 | for_each_kernel_tracepoint(void (*fct)(struct tracepoint *tp, void *priv),
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:50:1: warning: empty declaration
      50 | struct tp_module {
         | ^~~~~~
   include/linux/tracepoint.h:56:12: error: storage class specified for parameter 'register_tracepoint_module_notifier'
      56 | extern int register_tracepoint_module_notifier(struct notifier_block *nb);
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:57:12: error: storage class specified for parameter 'unregister_tracepoint_module_notifier'
      57 | extern int unregister_tracepoint_module_notifier(struct notifier_block *nb);
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:82:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
      82 | {
         | ^
   include/linux/tracepoint.h:92:12: error: storage class specified for parameter 'syscall_regfunc'
      92 | extern int syscall_regfunc(void);
         |            ^~~~~~~~~~~~~~~
   include/linux/tracepoint.h:93:13: error: storage class specified for parameter 'syscall_unregfunc'
      93 | extern void syscall_unregfunc(void);
         |             ^~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:105:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     105 | {
         | ^
   In file included from drivers/md/bcache/journal.c:15:
   include/trace/events/bcache.h:39:2: error: expected declaration specifiers before ';' token
      39 | );
         |  ^
   include/trace/events/bcache.h:61:2: error: expected declaration specifiers before ';' token
      61 | );
         |  ^
   include/trace/events/bcache.h:76:2: error: expected declaration specifiers before ';' token
      76 | );
         |  ^
   In file included from include/trace/events/bcache.h:8,
                    from drivers/md/bcache/journal.c:15:
   include/linux/tracepoint.h:232:13: error: storage class specified for parameter '__traceiter_bcache_request_start'
     232 |  extern int __traceiter_##name(data_proto);   \
         |             ^~~~~~~~~~~~
   include/linux/tracepoint.h:409:2: note: in expansion of macro '__DECLARE_TRACE'
     409 |  __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),  \
         |  ^~~~~~~~~~~~~~~
   include/linux/tracepoint.h:532:2: note: in expansion of macro 'DECLARE_TRACE'
     532 |  DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
         |  ^~~~~~~~~~~~~
   include/trace/events/bcache.h:80:1: note: in expansion of macro 'DEFINE_EVENT'
      80 | DEFINE_EVENT(bcache_request, bcache_request_start,
         | ^~~~~~~~~~~~
   In file included from <command-line>:
   include/linux/static_call_types.h:9:33: error: storage class specified for parameter '__SCK__tp_func_bcache_request_start'
       9 | #define STATIC_CALL_KEY_PREFIX  __SCK__


vim +/cold +123 include/linux/static_call.h

9183c3f9ed710a Josh Poimboeuf    2020-08-18  122  
69e0ad37c9f32d Nathan Chancellor 2020-09-28 @123  extern int __init static_call_init(void);
a945c8345ec0de Peter Zijlstra    2020-08-18  124  

:::::: The code at line 123 was first introduced by commit
:::::: 69e0ad37c9f32d5aa1beb02aab4ec0cd055be013 static_call: Fix return type of static_call_init

:::::: TO: Nathan Chancellor <natechancellor@gmail.com>
:::::: CC: Peter Zijlstra <peterz@infradead.org>

---
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: 43041 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-29 20:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-29 20:24 [bcache:nvdimm-meta 10/16] include/linux/static_call.h:123:1: warning: 'cold' attribute ignored 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.