All of lore.kernel.org
 help / color / mirror / Atom feed
* [mark-rutland:atomics/arch-atomic 10/17] arch/m68k/include/asm/cmpxchg.h:83:62: error: expected declaration specifiers or '...' before '(' token
@ 2021-04-26 22:20 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-26 22:20 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git atomics/arch-atomic
head:   451d56ed8917089d67f2efbf22f190005adb268c
commit: 81e7a8cbecfbc1b2254e2dcd4f9e964a248b35d1 [10/17] locking/atomic: cmpxchg: support ARCH_ATOMIC
config: m68k-randconfig-r011-20210426 (attached as .config)
compiler: m68k-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
        # https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=81e7a8cbecfbc1b2254e2dcd4f9e964a248b35d1
        git remote add mark-rutland https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
        git fetch --no-tags mark-rutland atomics/arch-atomic
        git checkout 81e7a8cbecfbc1b2254e2dcd4f9e964a248b35d1
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/m68k/include/asm/atomic.h:7,
                    from include/linux/atomic.h:7,
                    from include/linux/cpumask.h:13,
                    from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/spinlock.h:59,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:6,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:16,
                    from net/sched/act_police.c:9:
>> arch/m68k/include/asm/cmpxchg.h:83:62: error: expected declaration specifiers or '...' before '(' token
      83 | #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
         |                                                              ^
   include/asm-generic/cmpxchg.h:96:17: note: in expansion of macro 'cmpxchg64_local'
      96 | #define generic cmpxchg64_local(ptr, o, n) \
         |                 ^~~~~~~~~~~~~~~
   include/net/netns/conntrack.h:73:26: note: in expansion of macro 'generic'
      73 |  struct nf_generic_net   generic;
         |                          ^~~~~~~
   arch/m68k/include/asm/cmpxchg.h:83:69: error: expected declaration specifiers or '...' before '(' token
      83 | #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
         |                                                                     ^
   include/asm-generic/cmpxchg.h:96:17: note: in expansion of macro 'cmpxchg64_local'
      96 | #define generic cmpxchg64_local(ptr, o, n) \
         |                 ^~~~~~~~~~~~~~~
   include/net/netns/conntrack.h:73:26: note: in expansion of macro 'generic'
      73 |  struct nf_generic_net   generic;
         |                          ^~~~~~~
   arch/m68k/include/asm/cmpxchg.h:83:74: error: expected declaration specifiers or '...' before '(' token
      83 | #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
         |                                                                          ^
   include/asm-generic/cmpxchg.h:96:17: note: in expansion of macro 'cmpxchg64_local'
      96 | #define generic cmpxchg64_local(ptr, o, n) \
         |                 ^~~~~~~~~~~~~~~
   include/net/netns/conntrack.h:73:26: note: in expansion of macro 'generic'
      73 |  struct nf_generic_net   generic;
         |                          ^~~~~~~
--
   In file included from arch/m68k/include/asm/atomic.h:7,
                    from include/linux/atomic.h:7,
                    from include/linux/cpumask.h:13,
                    from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/spinlock.h:59,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:6,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:16,
                    from net/sched/sch_cake.c:53:
>> arch/m68k/include/asm/cmpxchg.h:83:62: error: expected declaration specifiers or '...' before '(' token
      83 | #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
         |                                                              ^
   include/asm-generic/cmpxchg.h:96:17: note: in expansion of macro 'cmpxchg64_local'
      96 | #define generic cmpxchg64_local(ptr, o, n) \
         |                 ^~~~~~~~~~~~~~~
   include/net/netns/conntrack.h:73:26: note: in expansion of macro 'generic'
      73 |  struct nf_generic_net   generic;
         |                          ^~~~~~~
   arch/m68k/include/asm/cmpxchg.h:83:69: error: expected declaration specifiers or '...' before '(' token
      83 | #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
         |                                                                     ^
   include/asm-generic/cmpxchg.h:96:17: note: in expansion of macro 'cmpxchg64_local'
      96 | #define generic cmpxchg64_local(ptr, o, n) \
         |                 ^~~~~~~~~~~~~~~
   include/net/netns/conntrack.h:73:26: note: in expansion of macro 'generic'
      73 |  struct nf_generic_net   generic;
         |                          ^~~~~~~
   arch/m68k/include/asm/cmpxchg.h:83:74: error: expected declaration specifiers or '...' before '(' token
      83 | #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
         |                                                                          ^
   include/asm-generic/cmpxchg.h:96:17: note: in expansion of macro 'cmpxchg64_local'
      96 | #define generic cmpxchg64_local(ptr, o, n) \
         |                 ^~~~~~~~~~~~~~~
   include/net/netns/conntrack.h:73:26: note: in expansion of macro 'generic'
      73 |  struct nf_generic_net   generic;
         |                          ^~~~~~~
   In file included from include/net/netfilter/nf_conntrack_core.h:19,
                    from net/sched/sch_cake.c:74:
   include/net/netfilter/nf_conntrack_l4proto.h: In function 'nf_generic_pernet':
>> include/net/netfilter/nf_conntrack_l4proto.h:184:29: error: 'struct nf_ip_net' has no member named '__generic_cmpxchg64_local'
     184 |  return &net->ct.nf_ct_proto.generic;
         |                             ^
   In file included from arch/m68k/include/asm/atomic.h:7,
                    from include/linux/atomic.h:7,
                    from include/linux/cpumask.h:13,
                    from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/spinlock.h:59,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:6,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:16,
                    from net/sched/sch_cake.c:53:
   include/asm-generic/cmpxchg.h:96:33: error: 'ptr' undeclared (first use in this function)
      96 | #define generic cmpxchg64_local(ptr, o, n) \
         |                                 ^~~
   arch/m68k/include/asm/cmpxchg.h:83:63: note: in definition of macro 'cmpxchg64_local'
      83 | #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
         |                                                               ^~~
   include/net/netfilter/nf_conntrack_l4proto.h:184:30: note: in expansion of macro 'generic'
     184 |  return &net->ct.nf_ct_proto.generic;
         |                              ^~~~~~~
   include/asm-generic/cmpxchg.h:96:33: note: each undeclared identifier is reported only once for each function it appears in
      96 | #define generic cmpxchg64_local(ptr, o, n) \
         |                                 ^~~
   arch/m68k/include/asm/cmpxchg.h:83:63: note: in definition of macro 'cmpxchg64_local'
      83 | #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
         |                                                               ^~~
   include/net/netfilter/nf_conntrack_l4proto.h:184:30: note: in expansion of macro 'generic'
     184 |  return &net->ct.nf_ct_proto.generic;
         |                              ^~~~~~~
   include/asm-generic/cmpxchg.h:96:38: error: 'o' undeclared (first use in this function)
      96 | #define generic cmpxchg64_local(ptr, o, n) \
         |                                      ^
   arch/m68k/include/asm/cmpxchg.h:83:70: note: in definition of macro 'cmpxchg64_local'
      83 | #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
         |                                                                      ^
   include/net/netfilter/nf_conntrack_l4proto.h:184:30: note: in expansion of macro 'generic'
     184 |  return &net->ct.nf_ct_proto.generic;
         |                              ^~~~~~~
   include/asm-generic/cmpxchg.h:96:41: error: 'n' undeclared (first use in this function)
      96 | #define generic cmpxchg64_local(ptr, o, n) \
         |                                         ^
   arch/m68k/include/asm/cmpxchg.h:83:75: note: in definition of macro 'cmpxchg64_local'
      83 | #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
         |                                                                           ^
   include/net/netfilter/nf_conntrack_l4proto.h:184:30: note: in expansion of macro 'generic'
     184 |  return &net->ct.nf_ct_proto.generic;
         |                              ^~~~~~~
   In file included from arch/m68k/include/asm/cmpxchg.h:132,
                    from arch/m68k/include/asm/atomic.h:7,
                    from include/linux/atomic.h:7,
                    from include/linux/cpumask.h:13,
                    from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/spinlock.h:59,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:6,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:16,
                    from net/sched/sch_cake.c:53:
   include/asm-generic/cmpxchg.h:97:2: error: expected ';' before '__generic_cmpxchg64_local'
      97 |  __generic_cmpxchg64_local((ptr), (o), (n))
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~
   include/net/netfilter/nf_conntrack_l4proto.h:184:30: note: in expansion of macro 'generic'
     184 |  return &net->ct.nf_ct_proto.generic;
         |                              ^~~~~~~
--
   In file included from arch/m68k/include/asm/atomic.h:7,
                    from include/linux/atomic.h:7,
                    from include/linux/filter.h:10,
                    from kernel/bpf/core.c:21:
>> arch/m68k/include/asm/cmpxchg.h:83:62: error: expected declaration specifiers or '...' before '(' token
      83 | #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
         |                                                              ^
   include/asm-generic/cmpxchg.h:96:17: note: in expansion of macro 'cmpxchg64_local'
      96 | #define generic cmpxchg64_local(ptr, o, n) \
         |                 ^~~~~~~~~~~~~~~
   include/net/netns/conntrack.h:73:26: note: in expansion of macro 'generic'
      73 |  struct nf_generic_net   generic;
         |                          ^~~~~~~
   arch/m68k/include/asm/cmpxchg.h:83:69: error: expected declaration specifiers or '...' before '(' token
      83 | #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
         |                                                                     ^
   include/asm-generic/cmpxchg.h:96:17: note: in expansion of macro 'cmpxchg64_local'
      96 | #define generic cmpxchg64_local(ptr, o, n) \
         |                 ^~~~~~~~~~~~~~~
   include/net/netns/conntrack.h:73:26: note: in expansion of macro 'generic'
      73 |  struct nf_generic_net   generic;
         |                          ^~~~~~~
   arch/m68k/include/asm/cmpxchg.h:83:74: error: expected declaration specifiers or '...' before '(' token
      83 | #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
         |                                                                          ^
   include/asm-generic/cmpxchg.h:96:17: note: in expansion of macro 'cmpxchg64_local'
      96 | #define generic cmpxchg64_local(ptr, o, n) \
         |                 ^~~~~~~~~~~~~~~
   include/net/netns/conntrack.h:73:26: note: in expansion of macro 'generic'
      73 |  struct nf_generic_net   generic;
         |                          ^~~~~~~
   kernel/bpf/core.c:1362:12: warning: no previous prototype for 'bpf_probe_read_kernel' [-Wmissing-prototypes]
    1362 | u64 __weak bpf_probe_read_kernel(void *dst, u32 size, const void *unsafe_ptr)
         |            ^~~~~~~~~~~~~~~~~~~~~
--
   In file included from arch/m68k/include/asm/atomic.h:7,
                    from include/linux/atomic.h:7,
                    from include/linux/cpumask.h:13,
                    from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/spinlock.h:59,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:6,
                    from include/linux/slab.h:15,
                    from kernel/bpf/verifier.c:9:
>> arch/m68k/include/asm/cmpxchg.h:83:62: error: expected declaration specifiers or '...' before '(' token
      83 | #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
         |                                                              ^
   include/asm-generic/cmpxchg.h:96:17: note: in expansion of macro 'cmpxchg64_local'
      96 | #define generic cmpxchg64_local(ptr, o, n) \
         |                 ^~~~~~~~~~~~~~~
   include/net/netns/conntrack.h:73:26: note: in expansion of macro 'generic'
      73 |  struct nf_generic_net   generic;
         |                          ^~~~~~~
   arch/m68k/include/asm/cmpxchg.h:83:69: error: expected declaration specifiers or '...' before '(' token
      83 | #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
         |                                                                     ^
   include/asm-generic/cmpxchg.h:96:17: note: in expansion of macro 'cmpxchg64_local'
      96 | #define generic cmpxchg64_local(ptr, o, n) \
         |                 ^~~~~~~~~~~~~~~
   include/net/netns/conntrack.h:73:26: note: in expansion of macro 'generic'
      73 |  struct nf_generic_net   generic;
         |                          ^~~~~~~
   arch/m68k/include/asm/cmpxchg.h:83:74: error: expected declaration specifiers or '...' before '(' token
      83 | #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
         |                                                                          ^
   include/asm-generic/cmpxchg.h:96:17: note: in expansion of macro 'cmpxchg64_local'
      96 | #define generic cmpxchg64_local(ptr, o, n) \
         |                 ^~~~~~~~~~~~~~~
   include/net/netns/conntrack.h:73:26: note: in expansion of macro 'generic'
      73 |  struct nf_generic_net   generic;
         |                          ^~~~~~~
   In file included from include/linux/bpf_verifier.h:9,
                    from kernel/bpf/verifier.c:12:
   kernel/bpf/verifier.c: In function 'jit_subprogs':
   include/linux/filter.h:363:4: warning: cast between incompatible function types from 'unsigned int (*)(const void *, const struct bpf_insn *)' to 'u64 (*)(u64,  u64,  u64,  u64,  u64)' {aka 'long long unsigned int (*)(long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int)'} [-Wcast-function-type]
     363 |   ((u64 (*)(u64, u64, u64, u64, u64))(x))
         |    ^
   kernel/bpf/verifier.c:11540:16: note: in expansion of macro 'BPF_CAST_CALL'
   11540 |    insn->imm = BPF_CAST_CALL(func[subprog]->bpf_func) -
         |                ^~~~~~~~~~~~~
   kernel/bpf/verifier.c: In function 'fixup_bpf_calls':
   include/linux/filter.h:363:4: warning: cast between incompatible function types from 'void * (* const)(struct bpf_map *, void *)' to 'u64 (*)(u64,  u64,  u64,  u64,  u64)' {aka 'long long unsigned int (*)(long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int)'} [-Wcast-function-type]
     363 |   ((u64 (*)(u64, u64, u64, u64, u64))(x))
         |    ^
   kernel/bpf/verifier.c:11930:17: note: in expansion of macro 'BPF_CAST_CALL'
   11930 |     insn->imm = BPF_CAST_CALL(ops->map_lookup_elem) -
         |                 ^~~~~~~~~~~~~
   include/linux/filter.h:363:4: warning: cast between incompatible function types from 'int (* const)(struct bpf_map *, void *, void *, u64)' {aka 'int (* const)(struct bpf_map *, void *, void *, long long unsigned int)'} to 'u64 (*)(u64,  u64,  u64,  u64,  u64)' {aka 'long long unsigned int (*)(long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int)'} [-Wcast-function-type]
     363 |   ((u64 (*)(u64, u64, u64, u64, u64))(x))
         |    ^
   kernel/bpf/verifier.c:11934:17: note: in expansion of macro 'BPF_CAST_CALL'
   11934 |     insn->imm = BPF_CAST_CALL(ops->map_update_elem) -
         |                 ^~~~~~~~~~~~~
   include/linux/filter.h:363:4: warning: cast between incompatible function types from 'int (* const)(struct bpf_map *, void *)' to 'u64 (*)(u64,  u64,  u64,  u64,  u64)' {aka 'long long unsigned int (*)(long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int)'} [-Wcast-function-type]
     363 |   ((u64 (*)(u64, u64, u64, u64, u64))(x))
         |    ^
   kernel/bpf/verifier.c:11938:17: note: in expansion of macro 'BPF_CAST_CALL'
   11938 |     insn->imm = BPF_CAST_CALL(ops->map_delete_elem) -
         |                 ^~~~~~~~~~~~~
   include/linux/filter.h:363:4: warning: cast between incompatible function types from 'int (* const)(struct bpf_map *, void *, u64)' {aka 'int (* const)(struct bpf_map *, void *, long long unsigned int)'} to 'u64 (*)(u64,  u64,  u64,  u64,  u64)' {aka 'long long unsigned int (*)(long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int)'} [-Wcast-function-type]
     363 |   ((u64 (*)(u64, u64, u64, u64, u64))(x))
         |    ^
   kernel/bpf/verifier.c:11942:17: note: in expansion of macro 'BPF_CAST_CALL'
   11942 |     insn->imm = BPF_CAST_CALL(ops->map_push_elem) -
         |                 ^~~~~~~~~~~~~
   include/linux/filter.h:363:4: warning: cast between incompatible function types from 'int (* const)(struct bpf_map *, void *)' to 'u64 (*)(u64,  u64,  u64,  u64,  u64)' {aka 'long long unsigned int (*)(long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int)'} [-Wcast-function-type]
     363 |   ((u64 (*)(u64, u64, u64, u64, u64))(x))
         |    ^
   kernel/bpf/verifier.c:11946:17: note: in expansion of macro 'BPF_CAST_CALL'
   11946 |     insn->imm = BPF_CAST_CALL(ops->map_pop_elem) -
         |                 ^~~~~~~~~~~~~
   include/linux/filter.h:363:4: warning: cast between incompatible function types from 'int (* const)(struct bpf_map *, void *)' to 'u64 (*)(u64,  u64,  u64,  u64,  u64)' {aka 'long long unsigned int (*)(long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int)'} [-Wcast-function-type]
     363 |   ((u64 (*)(u64, u64, u64, u64, u64))(x))
         |    ^
   kernel/bpf/verifier.c:11950:17: note: in expansion of macro 'BPF_CAST_CALL'
   11950 |     insn->imm = BPF_CAST_CALL(ops->map_peek_elem) -
         |                 ^~~~~~~~~~~~~
--
   In file included from arch/m68k/include/asm/atomic.h:7,
                    from include/linux/atomic.h:7,
                    from include/linux/cpumask.h:13,
                    from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/spinlock.h:59,
                    from include/linux/debugobjects.h:6,
                    from include/linux/timer.h:8,
                    from include/linux/workqueue.h:9,
                    from include/linux/bpf.h:9,
                    from kernel/bpf/hashtab.c:5:
>> arch/m68k/include/asm/cmpxchg.h:83:62: error: expected declaration specifiers or '...' before '(' token
      83 | #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
         |                                                              ^
   include/asm-generic/cmpxchg.h:96:17: note: in expansion of macro 'cmpxchg64_local'
      96 | #define generic cmpxchg64_local(ptr, o, n) \
         |                 ^~~~~~~~~~~~~~~
   include/net/netns/conntrack.h:73:26: note: in expansion of macro 'generic'
      73 |  struct nf_generic_net   generic;
         |                          ^~~~~~~
   arch/m68k/include/asm/cmpxchg.h:83:69: error: expected declaration specifiers or '...' before '(' token
      83 | #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
         |                                                                     ^
   include/asm-generic/cmpxchg.h:96:17: note: in expansion of macro 'cmpxchg64_local'
      96 | #define generic cmpxchg64_local(ptr, o, n) \
         |                 ^~~~~~~~~~~~~~~
   include/net/netns/conntrack.h:73:26: note: in expansion of macro 'generic'
      73 |  struct nf_generic_net   generic;
         |                          ^~~~~~~
   arch/m68k/include/asm/cmpxchg.h:83:74: error: expected declaration specifiers or '...' before '(' token
      83 | #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
         |                                                                          ^
   include/asm-generic/cmpxchg.h:96:17: note: in expansion of macro 'cmpxchg64_local'
      96 | #define generic cmpxchg64_local(ptr, o, n) \
         |                 ^~~~~~~~~~~~~~~
   include/net/netns/conntrack.h:73:26: note: in expansion of macro 'generic'
      73 |  struct nf_generic_net   generic;
         |                          ^~~~~~~
   In file included from kernel/bpf/hashtab.c:8:
   kernel/bpf/hashtab.c: In function 'htab_map_gen_lookup':
   include/linux/filter.h:363:4: warning: cast between incompatible function types from 'void * (*)(struct bpf_map *, void *)' to 'u64 (*)(u64,  u64,  u64,  u64,  u64)' {aka 'long long unsigned int (*)(long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int)'} [-Wcast-function-type]
     363 |   ((u64 (*)(u64, u64, u64, u64, u64))(x))
         |    ^
   include/linux/filter.h:371:14: note: in definition of macro 'BPF_EMIT_CALL'
     371 |   .imm   = ((FUNC) - __bpf_call_base) })
         |              ^~~~
   kernel/bpf/hashtab.c:640:26: note: in expansion of macro 'BPF_CAST_CALL'
     640 |  *insn++ = BPF_EMIT_CALL(BPF_CAST_CALL(__htab_map_lookup_elem));
         |                          ^~~~~~~~~~~~~
   kernel/bpf/hashtab.c: In function 'htab_lru_map_gen_lookup':
   include/linux/filter.h:363:4: warning: cast between incompatible function types from 'void * (*)(struct bpf_map *, void *)' to 'u64 (*)(u64,  u64,  u64,  u64,  u64)' {aka 'long long unsigned int (*)(long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int)'} [-Wcast-function-type]
     363 |   ((u64 (*)(u64, u64, u64, u64, u64))(x))
         |    ^
   include/linux/filter.h:371:14: note: in definition of macro 'BPF_EMIT_CALL'
     371 |   .imm   = ((FUNC) - __bpf_call_base) })
         |              ^~~~
   kernel/bpf/hashtab.c:681:26: note: in expansion of macro 'BPF_CAST_CALL'
     681 |  *insn++ = BPF_EMIT_CALL(BPF_CAST_CALL(__htab_map_lookup_elem));
         |                          ^~~~~~~~~~~~~
   kernel/bpf/hashtab.c: In function 'htab_of_map_gen_lookup':
   include/linux/filter.h:363:4: warning: cast between incompatible function types from 'void * (*)(struct bpf_map *, void *)' to 'u64 (*)(u64,  u64,  u64,  u64,  u64)' {aka 'long long unsigned int (*)(long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int,  long long unsigned int)'} [-Wcast-function-type]
     363 |   ((u64 (*)(u64, u64, u64, u64, u64))(x))
         |    ^
   include/linux/filter.h:371:14: note: in definition of macro 'BPF_EMIT_CALL'
     371 |   .imm   = ((FUNC) - __bpf_call_base) })
         |              ^~~~
   kernel/bpf/hashtab.c:2149:26: note: in expansion of macro 'BPF_CAST_CALL'
    2149 |  *insn++ = BPF_EMIT_CALL(BPF_CAST_CALL(__htab_map_lookup_elem));
         |                          ^~~~~~~~~~~~~
..


vim +83 arch/m68k/include/asm/cmpxchg.h

803f69144f0d48 David Howells 2012-03-28  82  
46db80cd46b348 Mark Rutland  2021-04-26 @83  #define cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
803f69144f0d48 David Howells 2012-03-28  84  

:::::: The code at line 83 was first introduced by commit
:::::: 46db80cd46b3489cc7509cbcf6b1b639604f451e locking/atomic: cmpxchg: make `generic` a prefix

:::::: TO: Mark Rutland <mark.rutland@arm.com>
:::::: CC: Mark Rutland <mark.rutland@arm.com>

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

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

only message in thread, other threads:[~2021-04-26 22:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-26 22:20 [mark-rutland:atomics/arch-atomic 10/17] arch/m68k/include/asm/cmpxchg.h:83:62: error: expected declaration specifiers or '...' before '(' token 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.