All of lore.kernel.org
 help / color / mirror / Atom feed
* [peterz-queue:perf/urgent 1/4] kernel/events/core.c:12001:11: warning: initialization of 'const struct match_token *' from 'int' makes pointer from integer without a cast
@ 2026-07-02 13:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-02 13:30 UTC (permalink / raw)
  To: Taeyang Lee; +Cc: oe-kbuild-all, Peter Zijlstra

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git perf/urgent
head:   91a15888098678641edd3ef4f5d66fa7e77dcc28
commit: f60c8830996ca8e468f96cc3ae79aab1e6fbfb12 [1/4] perf/core: Detach event groups during remove_on_exec
config: s390-randconfig-002-20260702 (https://download.01.org/0day-ci/archive/20260702/202607022122.DmAj1tc7-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 12.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260702/202607022122.DmAj1tc7-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202607022122.DmAj1tc7-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   kernel/events/core.c:11598:31: error: storage class specified for parameter 'uprobe_format_group'
   11598 | static struct attribute_group uprobe_format_group = {
         |                               ^~~~~~~~~~~~~~~~~~~
   kernel/events/core.c:11598:15: error: parameter 'uprobe_format_group' is initialized
   11598 | static struct attribute_group uprobe_format_group = {
         |               ^~~~~~~~~~~~~~~
   kernel/events/core.c:11603:38: error: storage class specified for parameter 'uprobe_attr_groups'
   11603 | static const struct attribute_group *uprobe_attr_groups[] = {
         |                                      ^~~~~~~~~~~~~~~~~~
   kernel/events/core.c:11603:21: error: parameter 'uprobe_attr_groups' is initialized
   11603 | static const struct attribute_group *uprobe_attr_groups[] = {
         |                     ^~~~~~~~~~~~~~~
   kernel/events/core.c:11604:9: error: initialization of 'const struct attribute_group **' from incompatible pointer type 'struct attribute_group *' [-Werror=incompatible-pointer-types]
   11604 |         &uprobe_format_group,
         |         ^
   kernel/events/core.c:11604:9: note: (near initialization for 'uprobe_attr_groups')
   include/linux/stddef.h:8:14: warning: excess elements in scalar initializer
       8 | #define NULL ((void *)0)
         |              ^
   kernel/events/core.c:11605:9: note: in expansion of macro 'NULL'
   11605 |         NULL,
         |         ^~~~
   include/linux/stddef.h:8:14: note: (near initialization for 'uprobe_attr_groups')
       8 | #define NULL ((void *)0)
         |              ^
   kernel/events/core.c:11605:9: note: in expansion of macro 'NULL'
   11605 |         NULL,
         |         ^~~~
   kernel/events/core.c:11608:12: error: storage class specified for parameter 'perf_uprobe_event_init'
   11608 | static int perf_uprobe_event_init(struct perf_event *event);
         |            ^~~~~~~~~~~~~~~~~~~~~~
   kernel/events/core.c:11609:19: error: storage class specified for parameter 'perf_uprobe'
   11609 | static struct pmu perf_uprobe = {
         |                   ^~~~~~~~~~~
   kernel/events/core.c:11609:15: error: parameter 'perf_uprobe' is initialized
   11609 | static struct pmu perf_uprobe = {
         |               ^~~
   kernel/events/core.c:11621:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   11621 | {
         | ^
   kernel/events/core.c:11651:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   11651 | {
         | ^
   kernel/events/core.c:11662:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   11662 | {
         | ^
   kernel/events/core.c:11671:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   11671 | {
         | ^
   kernel/events/core.c:11688:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   11688 | {
         | ^
   kernel/events/core.c:11744:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   11744 | {
         | ^
   kernel/events/core.c:11756:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   11756 | {
         | ^
   kernel/events/core.c:11819:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   11819 | {
         | ^
   kernel/events/core.c:11834:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   11834 | {
         | ^
   kernel/events/core.c:11849:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   11849 | {
         | ^
   kernel/events/core.c:11872:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   11872 | {
         | ^
   kernel/events/core.c:11890:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   11890 | {
         | ^
   kernel/events/core.c:11908:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   11908 | {
         | ^
   kernel/events/core.c:11982:1: warning: empty declaration
   11982 | enum {
         | ^~~~
   kernel/events/core.c:11993:1: warning: empty declaration
   11993 | enum {
         | ^~~~
   kernel/events/core.c:11999:28: error: storage class specified for parameter 'if_tokens'
   11999 | static const match_table_t if_tokens = {
         |                            ^~~~~~~~~
   kernel/events/core.c:11999:1: error: parameter 'if_tokens' is initialized
   11999 | static const match_table_t if_tokens = {
         | ^~~~~~
   kernel/events/core.c:12000:9: warning: braces around scalar initializer
   12000 |         { IF_ACT_FILTER,        "filter" },
         |         ^
   kernel/events/core.c:12000:9: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12000:33: warning: excess elements in scalar initializer
   12000 |         { IF_ACT_FILTER,        "filter" },
         |                                 ^~~~~~~~
   kernel/events/core.c:12000:33: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12001:9: warning: braces around scalar initializer
   12001 |         { IF_ACT_START,         "start" },
         |         ^
   kernel/events/core.c:12001:9: note: (near initialization for 'if_tokens')
>> kernel/events/core.c:12001:11: warning: initialization of 'const struct match_token *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   12001 |         { IF_ACT_START,         "start" },
         |           ^~~~~~~~~~~~
   kernel/events/core.c:12001:11: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12001:33: warning: excess elements in scalar initializer
   12001 |         { IF_ACT_START,         "start" },
         |                                 ^~~~~~~
   kernel/events/core.c:12001:33: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12001:9: warning: excess elements in scalar initializer
   12001 |         { IF_ACT_START,         "start" },
         |         ^
   kernel/events/core.c:12001:9: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12002:9: warning: braces around scalar initializer
   12002 |         { IF_ACT_STOP,          "stop" },
         |         ^
   kernel/events/core.c:12002:9: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12002:11: warning: initialization of 'const struct match_token *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   12002 |         { IF_ACT_STOP,          "stop" },
         |           ^~~~~~~~~~~
   kernel/events/core.c:12002:11: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12002:33: warning: excess elements in scalar initializer
   12002 |         { IF_ACT_STOP,          "stop" },
         |                                 ^~~~~~
   kernel/events/core.c:12002:33: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12002:9: warning: excess elements in scalar initializer
   12002 |         { IF_ACT_STOP,          "stop" },
         |         ^
   kernel/events/core.c:12002:9: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12003:9: warning: braces around scalar initializer
   12003 |         { IF_SRC_FILE,          "%u/%u@%s" },
         |         ^
   kernel/events/core.c:12003:9: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12003:11: warning: initialization of 'const struct match_token *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   12003 |         { IF_SRC_FILE,          "%u/%u@%s" },
         |           ^~~~~~~~~~~
   kernel/events/core.c:12003:11: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12003:33: warning: excess elements in scalar initializer
   12003 |         { IF_SRC_FILE,          "%u/%u@%s" },
         |                                 ^~~~~~~~~~
   kernel/events/core.c:12003:33: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12003:9: warning: excess elements in scalar initializer
   12003 |         { IF_SRC_FILE,          "%u/%u@%s" },
         |         ^
   kernel/events/core.c:12003:9: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12004:9: warning: braces around scalar initializer
   12004 |         { IF_SRC_KERNEL,        "%u/%u" },
         |         ^
   kernel/events/core.c:12004:9: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12004:11: warning: initialization of 'const struct match_token *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   12004 |         { IF_SRC_KERNEL,        "%u/%u" },
         |           ^~~~~~~~~~~~~
   kernel/events/core.c:12004:11: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12004:33: warning: excess elements in scalar initializer
   12004 |         { IF_SRC_KERNEL,        "%u/%u" },
         |                                 ^~~~~~~
   kernel/events/core.c:12004:33: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12004:9: warning: excess elements in scalar initializer
   12004 |         { IF_SRC_KERNEL,        "%u/%u" },
         |         ^
   kernel/events/core.c:12004:9: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12005:9: warning: braces around scalar initializer
   12005 |         { IF_SRC_FILEADDR,      "%u@%s" },
         |         ^
   kernel/events/core.c:12005:9: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12005:11: warning: initialization of 'const struct match_token *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   12005 |         { IF_SRC_FILEADDR,      "%u@%s" },
         |           ^~~~~~~~~~~~~~~
   kernel/events/core.c:12005:11: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12005:33: warning: excess elements in scalar initializer
   12005 |         { IF_SRC_FILEADDR,      "%u@%s" },
         |                                 ^~~~~~~
   kernel/events/core.c:12005:33: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12005:9: warning: excess elements in scalar initializer
   12005 |         { IF_SRC_FILEADDR,      "%u@%s" },
         |         ^
   kernel/events/core.c:12005:9: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12006:9: warning: braces around scalar initializer
   12006 |         { IF_SRC_KERNELADDR,    "%u" },
         |         ^
   kernel/events/core.c:12006:9: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12006:11: warning: initialization of 'const struct match_token *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   12006 |         { IF_SRC_KERNELADDR,    "%u" },
         |           ^~~~~~~~~~~~~~~~~
   kernel/events/core.c:12006:11: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12006:33: warning: excess elements in scalar initializer
   12006 |         { IF_SRC_KERNELADDR,    "%u" },
         |                                 ^~~~
   kernel/events/core.c:12006:33: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12006:9: warning: excess elements in scalar initializer
   12006 |         { IF_SRC_KERNELADDR,    "%u" },
         |         ^
   kernel/events/core.c:12006:9: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12007:9: warning: braces around scalar initializer
   12007 |         { IF_ACT_NONE,          NULL },
         |         ^
   kernel/events/core.c:12007:9: note: (near initialization for 'if_tokens')
   kernel/events/core.c:12007:11: warning: initialization of 'const struct match_token *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   12007 |         { IF_ACT_NONE,          NULL },
         |           ^~~~~~~~~~~
   kernel/events/core.c:12007:11: note: (near initialization for 'if_tokens')
   include/linux/stddef.h:8:14: warning: excess elements in scalar initializer
--
         |         ^~~~~~~~~~~
   include/linux/compiler.h:276:9: note: in expansion of macro '___ADDRESSABLE'
     276 |         ___ADDRESSABLE(sym, __section(".discard.addressable"))
         |         ^~~~~~~~~~~~~~
   include/linux/export.h:77:9: note: in expansion of macro '__ADDRESSABLE'
      77 |         __ADDRESSABLE(sym)                                      \
         |         ^~~~~~~~~~~~~
   include/linux/export.h:86:41: note: in expansion of macro '__EXPORT_SYMBOL'
      86 | #define _EXPORT_SYMBOL(sym, license)    __EXPORT_SYMBOL(sym, license, "")
         |                                         ^~~~~~~~~~~~~~~
   include/linux/export.h:90:41: note: in expansion of macro '_EXPORT_SYMBOL'
      90 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^~~~~~~~~~~~~~
   kernel/events/core.c:13072:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
   13072 | EXPORT_SYMBOL_GPL(perf_pmu_unregister);
         | ^~~~~~~~~~~~~~~~~
   kernel/events/core.c:13072:1: error: parameter '__UNIQUE_ID_addressable_perf_pmu_unregister_911' is initialized
   kernel/events/core.c:13072:1: warning: 'used' attribute ignored [-Wattributes]
   include/linux/compiler.h:165:17: error: section attribute not allowed for '__UNIQUE_ID_addressable_perf_pmu_unregister_911'
     165 |         __PASTE(__UNIQUE_ID_,                                   \
         |                 ^~~~~~~~~~~~
   include/linux/compiler_types.h:15:24: note: in definition of macro '___PASTE'
      15 | #define ___PASTE(a, b) a##b
         |                        ^
   include/linux/compiler.h:165:9: note: in expansion of macro '__PASTE'
     165 |         __PASTE(__UNIQUE_ID_,                                   \
         |         ^~~~~~~
   include/linux/compiler.h:273:9: note: in expansion of macro '__UNIQUE_ID'
     273 |         __UNIQUE_ID(__PASTE(addressable_, sym)) = (void *)(uintptr_t)&sym;
         |         ^~~~~~~~~~~
   include/linux/compiler.h:276:9: note: in expansion of macro '___ADDRESSABLE'
     276 |         ___ADDRESSABLE(sym, __section(".discard.addressable"))
         |         ^~~~~~~~~~~~~~
   include/linux/export.h:77:9: note: in expansion of macro '__ADDRESSABLE'
      77 |         __ADDRESSABLE(sym)                                      \
         |         ^~~~~~~~~~~~~
   include/linux/export.h:86:41: note: in expansion of macro '__EXPORT_SYMBOL'
      86 | #define _EXPORT_SYMBOL(sym, license)    __EXPORT_SYMBOL(sym, license, "")
         |                                         ^~~~~~~~~~~~~~~
   include/linux/export.h:90:41: note: in expansion of macro '_EXPORT_SYMBOL'
      90 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^~~~~~~~~~~~~~
   kernel/events/core.c:13072:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
   13072 | EXPORT_SYMBOL_GPL(perf_pmu_unregister);
         | ^~~~~~~~~~~~~~~~~
   include/linux/export.h:79:9: error: expected declaration specifiers before 'asm'
      79 |         asm(__stringify(___EXPORT_SYMBOL(sym, license, ns)))
         |         ^~~
   include/linux/export.h:86:41: note: in expansion of macro '__EXPORT_SYMBOL'
      86 | #define _EXPORT_SYMBOL(sym, license)    __EXPORT_SYMBOL(sym, license, "")
         |                                         ^~~~~~~~~~~~~~~
   include/linux/export.h:90:41: note: in expansion of macro '_EXPORT_SYMBOL'
      90 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^~~~~~~~~~~~~~
   kernel/events/core.c:13072:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
   13072 | EXPORT_SYMBOL_GPL(perf_pmu_unregister);
         | ^~~~~~~~~~~~~~~~~
   kernel/events/core.c:13075:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   13075 | {
         | ^
   kernel/events/core.c:13081:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   13081 | {
         | ^
   kernel/events/core.c:13159:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   13159 | {
         | ^
   kernel/events/core.c:13228:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   13228 | {
         | ^
   kernel/events/core.c:13244:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   13244 | {
         | ^
   kernel/events/core.c:13251:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   13251 | {
         | ^
   kernel/events/core.c:13262:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   13262 | {
         | ^
   kernel/events/core.c:13271:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   13271 | {
         | ^
   kernel/events/core.c:13349:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   13349 | {
         | ^
   kernel/events/core.c:13583:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   13583 | {
         | ^
   kernel/events/core.c:13708:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   13708 | {
         | ^
   kernel/events/core.c:13718:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   13718 | {
         | ^
   kernel/events/core.c:13805:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   13805 | {
         | ^
   kernel/events/core.c:13843:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   13843 | {
         | ^
   In file included from include/linux/syscalls.h:105:
>> arch/s390/include/asm/syscall_wrapper.h:34:56: error: expected declaration specifiers before ';' token
      34 |         ALLOW_ERROR_INJECTION(__s390x_sys##name, ERRNO);                        \
         |                                                        ^
   include/linux/syscalls.h:236:9: note: in expansion of macro '__SYSCALL_DEFINEx'
     236 |         __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:229:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     229 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/events/core.c:13881:1: note: in expansion of macro 'SYSCALL_DEFINE5'
   13881 | SYSCALL_DEFINE5(perf_event_open,
         | ^~~~~~~~~~~~~~~
>> arch/s390/include/asm/syscall_wrapper.h:35:28: error: storage class specified for parameter '__se_sys_perf_event_open'
      35 |         static inline long __se_sys##name(__MAP(x, __SC_LONG, __VA_ARGS__));    \
         |                            ^~~~~~~~
   include/linux/syscalls.h:236:9: note: in expansion of macro '__SYSCALL_DEFINEx'
     236 |         __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:229:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     229 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/events/core.c:13881:1: note: in expansion of macro 'SYSCALL_DEFINE5'
   13881 | SYSCALL_DEFINE5(perf_event_open,
         | ^~~~~~~~~~~~~~~
>> arch/s390/include/asm/syscall_wrapper.h:35:28: warning: parameter '__se_sys_perf_event_open' declared 'inline'
      35 |         static inline long __se_sys##name(__MAP(x, __SC_LONG, __VA_ARGS__));    \
         |                            ^~~~~~~~
   include/linux/syscalls.h:236:9: note: in expansion of macro '__SYSCALL_DEFINEx'
     236 |         __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:229:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     229 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/events/core.c:13881:1: note: in expansion of macro 'SYSCALL_DEFINE5'
   13881 | SYSCALL_DEFINE5(perf_event_open,
         | ^~~~~~~~~~~~~~~
   kernel/events/core.c:13882:24: warning: 'gnu_inline' attribute ignored [-Wattributes]
   13882 |                 struct perf_event_attr __user *, attr_uptr,
         |                        ^~~~~~~~~~~~~~~
   include/linux/compiler_types.h:610:63: note: in definition of macro '__same_type'
     610 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
         |                                                               ^
   include/linux/syscalls.h:130:47: note: in expansion of macro '__TYPE_AS'
     130 | #define __TYPE_IS_LL(t) (__TYPE_AS(t, 0LL) || __TYPE_AS(t, 0ULL))
         |                                               ^~~~~~~~~
   include/linux/syscalls.h:131:56: note: in expansion of macro '__TYPE_IS_LL'
     131 | #define __SC_LONG(t, a) __typeof(__builtin_choose_expr(__TYPE_IS_LL(t), 0LL, 0L)) a
         |                                                        ^~~~~~~~~~~~
   include/linux/syscalls.h:122:27: note: in expansion of macro '__SC_LONG'
     122 | #define __MAP5(m,t,a,...) m(t,a), __MAP4(m,__VA_ARGS__)
         |                           ^
   include/linux/syscalls.h:124:22: note: in expansion of macro '__MAP5'
     124 | #define __MAP(n,...) __MAP##n(__VA_ARGS__)
         |                      ^~~~~
   arch/s390/include/asm/syscall_wrapper.h:35:43: note: in expansion of macro '__MAP'
      35 |         static inline long __se_sys##name(__MAP(x, __SC_LONG, __VA_ARGS__));    \
         |                                           ^~~~~
   include/linux/syscalls.h:236:9: note: in expansion of macro '__SYSCALL_DEFINEx'
     236 |         __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:229:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     229 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/events/core.c:13881:1: note: in expansion of macro 'SYSCALL_DEFINE5'
   13881 | SYSCALL_DEFINE5(perf_event_open,
         | ^~~~~~~~~~~~~~~
>> arch/s390/include/asm/syscall_wrapper.h:35:28: error: 'no_instrument_function' attribute applies only to functions
      35 |         static inline long __se_sys##name(__MAP(x, __SC_LONG, __VA_ARGS__));    \
         |                            ^~~~~~~~
   include/linux/syscalls.h:236:9: note: in expansion of macro '__SYSCALL_DEFINEx'
     236 |         __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:229:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     229 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/events/core.c:13881:1: note: in expansion of macro 'SYSCALL_DEFINE5'
   13881 | SYSCALL_DEFINE5(perf_event_open,
         | ^~~~~~~~~~~~~~~
>> arch/s390/include/asm/syscall_wrapper.h:36:28: error: storage class specified for parameter '__do_sys_perf_event_open'
      36 |         static inline long __do_sys##name(__MAP(x, __SC_DECL, __VA_ARGS__));    \
         |                            ^~~~~~~~
   include/linux/syscalls.h:236:9: note: in expansion of macro '__SYSCALL_DEFINEx'
     236 |         __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:229:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     229 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/events/core.c:13881:1: note: in expansion of macro 'SYSCALL_DEFINE5'
   13881 | SYSCALL_DEFINE5(perf_event_open,
         | ^~~~~~~~~~~~~~~
>> arch/s390/include/asm/syscall_wrapper.h:36:28: warning: parameter '__do_sys_perf_event_open' declared 'inline'
      36 |         static inline long __do_sys##name(__MAP(x, __SC_DECL, __VA_ARGS__));    \
         |                            ^~~~~~~~
   include/linux/syscalls.h:236:9: note: in expansion of macro '__SYSCALL_DEFINEx'
     236 |         __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:229:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     229 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/events/core.c:13881:1: note: in expansion of macro 'SYSCALL_DEFINE5'
   13881 | SYSCALL_DEFINE5(perf_event_open,
         | ^~~~~~~~~~~~~~~
   kernel/events/core.c:13882:24: warning: 'gnu_inline' attribute ignored [-Wattributes]
   13882 |                 struct perf_event_attr __user *, attr_uptr,
         |                        ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:126:25: note: in definition of macro '__SC_DECL'
     126 | #define __SC_DECL(t, a) t a
         |                         ^
   include/linux/syscalls.h:124:22: note: in expansion of macro '__MAP5'
     124 | #define __MAP(n,...) __MAP##n(__VA_ARGS__)
         |                      ^~~~~
   arch/s390/include/asm/syscall_wrapper.h:36:43: note: in expansion of macro '__MAP'
      36 |         static inline long __do_sys##name(__MAP(x, __SC_DECL, __VA_ARGS__));    \
         |                                           ^~~~~
   include/linux/syscalls.h:236:9: note: in expansion of macro '__SYSCALL_DEFINEx'
     236 |         __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:229:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     229 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/events/core.c:13881:1: note: in expansion of macro 'SYSCALL_DEFINE5'
   13881 | SYSCALL_DEFINE5(perf_event_open,
         | ^~~~~~~~~~~~~~~
   arch/s390/include/asm/syscall_wrapper.h:36:28: error: 'no_instrument_function' attribute applies only to functions
      36 |         static inline long __do_sys##name(__MAP(x, __SC_DECL, __VA_ARGS__));    \
         |                            ^~~~~~~~
   include/linux/syscalls.h:236:9: note: in expansion of macro '__SYSCALL_DEFINEx'
     236 |         __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:229:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     229 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/events/core.c:13881:1: note: in expansion of macro 'SYSCALL_DEFINE5'
   13881 | SYSCALL_DEFINE5(perf_event_open,
         | ^~~~~~~~~~~~~~~
   arch/s390/include/asm/syscall_wrapper.h:37:47: error: expected declaration specifiers before ';' token
      37 |         __S390_SYS_STUBx(x, name, __VA_ARGS__);                                 \
         |                                               ^
   include/linux/syscalls.h:236:9: note: in expansion of macro '__SYSCALL_DEFINEx'
     236 |         __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:229:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     229 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/events/core.c:13881:1: note: in expansion of macro 'SYSCALL_DEFINE5'
   13881 | SYSCALL_DEFINE5(perf_event_open,
         | ^~~~~~~~~~~~~~~
>> arch/s390/include/asm/syscall_wrapper.h:39:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
      39 |         {                                                                       \
         |         ^
   include/linux/syscalls.h:236:9: note: in expansion of macro '__SYSCALL_DEFINEx'
     236 |         __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:229:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     229 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/events/core.c:13881:1: note: in expansion of macro 'SYSCALL_DEFINE5'
   13881 | SYSCALL_DEFINE5(perf_event_open,
         | ^~~~~~~~~~~~~~~
   arch/s390/include/asm/syscall_wrapper.h:43:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
      43 |         {                                                                       \
         |         ^
   include/linux/syscalls.h:236:9: note: in expansion of macro '__SYSCALL_DEFINEx'
     236 |         __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:229:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     229 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/events/core.c:13881:1: note: in expansion of macro 'SYSCALL_DEFINE5'
   13881 | SYSCALL_DEFINE5(perf_event_open,
         | ^~~~~~~~~~~~~~~
   kernel/events/core.c:13884:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   13884 | {
         | ^
   kernel/events/core.c:14296:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   14296 | {
         | ^
   kernel/events/core.c:14390:19: error: storage class specified for parameter 'perf_event_create_kernel_counter'
   14390 | EXPORT_SYMBOL_GPL(perf_event_create_kernel_counter);
         |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/export.h:76:28: note: in definition of macro '__EXPORT_SYMBOL'
      76 |         extern typeof(sym) sym;                                 \
         |                            ^~~
   include/linux/export.h:90:41: note: in expansion of macro '_EXPORT_SYMBOL'
      90 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^~~~~~~~~~~~~~
   kernel/events/core.c:14390:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
   14390 | EXPORT_SYMBOL_GPL(perf_event_create_kernel_counter);
         | ^~~~~~~~~~~~~~~~~
   include/linux/compiler.h:165:17: error: storage class specified for parameter '__UNIQUE_ID_addressable_perf_event_create_kernel_counter_925'
     165 |         __PASTE(__UNIQUE_ID_,                                   \
         |                 ^~~~~~~~~~~~
   include/linux/compiler_types.h:15:24: note: in definition of macro '___PASTE'
      15 | #define ___PASTE(a, b) a##b
         |                        ^
   include/linux/compiler.h:165:9: note: in expansion of macro '__PASTE'
     165 |         __PASTE(__UNIQUE_ID_,                                   \
         |         ^~~~~~~
   include/linux/compiler.h:273:9: note: in expansion of macro '__UNIQUE_ID'
     273 |         __UNIQUE_ID(__PASTE(addressable_, sym)) = (void *)(uintptr_t)&sym;
         |         ^~~~~~~~~~~
   include/linux/compiler.h:276:9: note: in expansion of macro '___ADDRESSABLE'
     276 |         ___ADDRESSABLE(sym, __section(".discard.addressable"))
         |         ^~~~~~~~~~~~~~
   include/linux/export.h:77:9: note: in expansion of macro '__ADDRESSABLE'
      77 |         __ADDRESSABLE(sym)                                      \
         |         ^~~~~~~~~~~~~
   include/linux/export.h:86:41: note: in expansion of macro '__EXPORT_SYMBOL'
      86 | #define _EXPORT_SYMBOL(sym, license)    __EXPORT_SYMBOL(sym, license, "")
         |                                         ^~~~~~~~~~~~~~~
   include/linux/export.h:90:41: note: in expansion of macro '_EXPORT_SYMBOL'
      90 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^~~~~~~~~~~~~~
   kernel/events/core.c:14390:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
   14390 | EXPORT_SYMBOL_GPL(perf_event_create_kernel_counter);
         | ^~~~~~~~~~~~~~~~~
   kernel/events/core.c:14390:1: error: parameter '__UNIQUE_ID_addressable_perf_event_create_kernel_counter_925' is initialized
   kernel/events/core.c:14390:1: warning: 'used' attribute ignored [-Wattributes]
   include/linux/compiler.h:165:17: error: section attribute not allowed for '__UNIQUE_ID_addressable_perf_event_create_kernel_counter_925'
     165 |         __PASTE(__UNIQUE_ID_,                                   \
         |                 ^~~~~~~~~~~~
   include/linux/compiler_types.h:15:24: note: in definition of macro '___PASTE'
      15 | #define ___PASTE(a, b) a##b
         |                        ^
   include/linux/compiler.h:165:9: note: in expansion of macro '__PASTE'
     165 |         __PASTE(__UNIQUE_ID_,                                   \
         |         ^~~~~~~
   include/linux/compiler.h:273:9: note: in expansion of macro '__UNIQUE_ID'
     273 |         __UNIQUE_ID(__PASTE(addressable_, sym)) = (void *)(uintptr_t)&sym;
         |         ^~~~~~~~~~~
   include/linux/compiler.h:276:9: note: in expansion of macro '___ADDRESSABLE'
     276 |         ___ADDRESSABLE(sym, __section(".discard.addressable"))
         |         ^~~~~~~~~~~~~~
   include/linux/export.h:77:9: note: in expansion of macro '__ADDRESSABLE'
      77 |         __ADDRESSABLE(sym)                                      \
         |         ^~~~~~~~~~~~~
   include/linux/export.h:86:41: note: in expansion of macro '__EXPORT_SYMBOL'
      86 | #define _EXPORT_SYMBOL(sym, license)    __EXPORT_SYMBOL(sym, license, "")
         |                                         ^~~~~~~~~~~~~~~
   include/linux/export.h:90:41: note: in expansion of macro '_EXPORT_SYMBOL'
      90 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^~~~~~~~~~~~~~
   kernel/events/core.c:14390:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
   14390 | EXPORT_SYMBOL_GPL(perf_event_create_kernel_counter);
         | ^~~~~~~~~~~~~~~~~
   include/linux/export.h:79:9: error: expected declaration specifiers before 'asm'
      79 |         asm(__stringify(___EXPORT_SYMBOL(sym, license, ns)))
         |         ^~~


vim +12001 kernel/events/core.c

375637bc524952 Alexander Shishkin 2016-04-27  11998  
375637bc524952 Alexander Shishkin 2016-04-27  11999  static const match_table_t if_tokens = {
375637bc524952 Alexander Shishkin 2016-04-27  12000  	{ IF_ACT_FILTER,	"filter" },
375637bc524952 Alexander Shishkin 2016-04-27 @12001  	{ IF_ACT_START,		"start" },
375637bc524952 Alexander Shishkin 2016-04-27  12002  	{ IF_ACT_STOP,		"stop" },
375637bc524952 Alexander Shishkin 2016-04-27  12003  	{ IF_SRC_FILE,		"%u/%u@%s" },
375637bc524952 Alexander Shishkin 2016-04-27  12004  	{ IF_SRC_KERNEL,	"%u/%u" },
375637bc524952 Alexander Shishkin 2016-04-27  12005  	{ IF_SRC_FILEADDR,	"%u@%s" },
375637bc524952 Alexander Shishkin 2016-04-27  12006  	{ IF_SRC_KERNELADDR,	"%u" },
e96271f3ed7e70 Alexander Shishkin 2016-11-18  12007  	{ IF_ACT_NONE,		NULL },
375637bc524952 Alexander Shishkin 2016-04-27  12008  };
375637bc524952 Alexander Shishkin 2016-04-27  12009  

:::::: The code at line 12001 was first introduced by commit
:::::: 375637bc524952f1122ea22caf5a8f1fecad8228 perf/core: Introduce address range filtering

:::::: TO: Alexander Shishkin <alexander.shishkin@linux.intel.com>
:::::: CC: Ingo Molnar <mingo@kernel.org>

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

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

only message in thread, other threads:[~2026-07-02 13:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-02 13:30 [peterz-queue:perf/urgent 1/4] kernel/events/core.c:12001:11: warning: initialization of 'const struct match_token *' from 'int' makes pointer from integer without a cast 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.