All of lore.kernel.org
 help / color / mirror / Atom feed
* [mark-rutland:atomics/arch-atomic 10/17] drivers/net/can/usb/ems_usb.c:571:9: error: 'union <anonymous>' has no member named '__generic_cmpxchg64_local'
@ 2021-04-26 22:05 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-26 22:05 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 9454 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-r004-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/slab.h:15,
                    from drivers/net/can/usb/ems_usb.c:8:
   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) \
         |                 ^~~~~~~~~~~~~~~
   drivers/net/can/usb/ems_usb.c:198:6: note: in expansion of macro 'generic'
     198 |   u8 generic[64];
         |      ^~~~~~~
   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) \
         |                 ^~~~~~~~~~~~~~~
   drivers/net/can/usb/ems_usb.c:198:6: note: in expansion of macro 'generic'
     198 |   u8 generic[64];
         |      ^~~~~~~
   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) \
         |                 ^~~~~~~~~~~~~~~
   drivers/net/can/usb/ems_usb.c:198:6: note: in expansion of macro 'generic'
     198 |   u8 generic[64];
         |      ^~~~~~~
   drivers/net/can/usb/ems_usb.c: In function 'ems_usb_control_cmd':
>> drivers/net/can/usb/ems_usb.c:571:9: error: 'union <anonymous>' has no member named '__generic_cmpxchg64_local'
     571 |  cmd.msg.generic[0] = val;
         |         ^
   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 drivers/net/can/usb/ems_usb.c:8:
   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))
         |                                                               ^~~
   drivers/net/can/usb/ems_usb.c:571:10: note: in expansion of macro 'generic'
     571 |  cmd.msg.generic[0] = val;
         |          ^~~~~~~
   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))
         |                                                               ^~~
   drivers/net/can/usb/ems_usb.c:571:10: note: in expansion of macro 'generic'
     571 |  cmd.msg.generic[0] = val;
         |          ^~~~~~~
   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))
         |                                                                      ^
   drivers/net/can/usb/ems_usb.c:571:10: note: in expansion of macro 'generic'
     571 |  cmd.msg.generic[0] = val;
         |          ^~~~~~~
   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))
         |                                                                           ^
   drivers/net/can/usb/ems_usb.c:571:10: note: in expansion of macro 'generic'
     571 |  cmd.msg.generic[0] = val;
         |          ^~~~~~~
   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/slab.h:15,
                    from drivers/net/can/usb/ems_usb.c:8:
   include/asm-generic/cmpxchg.h:97:2: error: expected ';' before '__generic_cmpxchg64_local'
      97 |  __generic_cmpxchg64_local((ptr), (o), (n))
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/can/usb/ems_usb.c:571:10: note: in expansion of macro 'generic'
     571 |  cmd.msg.generic[0] = val;
         |          ^~~~~~~


vim +571 drivers/net/can/usb/ems_usb.c

702171adeed360 Sebastian Haas 2009-09-16  557  
702171adeed360 Sebastian Haas 2009-09-16  558  /*
702171adeed360 Sebastian Haas 2009-09-16  559   * Send a CPC_Control command to change behaviour when interface receives a CAN
702171adeed360 Sebastian Haas 2009-09-16  560   * message, bus error or CAN state changed notifications.
702171adeed360 Sebastian Haas 2009-09-16  561   */
702171adeed360 Sebastian Haas 2009-09-16  562  static int ems_usb_control_cmd(struct ems_usb *dev, u8 val)
702171adeed360 Sebastian Haas 2009-09-16  563  {
702171adeed360 Sebastian Haas 2009-09-16  564  	struct ems_cpc_msg cmd;
702171adeed360 Sebastian Haas 2009-09-16  565  
702171adeed360 Sebastian Haas 2009-09-16  566  	cmd.type = CPC_CMD_TYPE_CONTROL;
702171adeed360 Sebastian Haas 2009-09-16  567  	cmd.length = CPC_MSG_HEADER_LEN + 1;
702171adeed360 Sebastian Haas 2009-09-16  568  
702171adeed360 Sebastian Haas 2009-09-16  569  	cmd.msgid = 0;
702171adeed360 Sebastian Haas 2009-09-16  570  
702171adeed360 Sebastian Haas 2009-09-16 @571  	cmd.msg.generic[0] = val;
702171adeed360 Sebastian Haas 2009-09-16  572  
702171adeed360 Sebastian Haas 2009-09-16  573  	return ems_usb_command_msg(dev, &cmd);
702171adeed360 Sebastian Haas 2009-09-16  574  }
702171adeed360 Sebastian Haas 2009-09-16  575  

:::::: The code at line 571 was first introduced by commit
:::::: 702171adeed3607ee9603ec30ce081411e36ae42 ems_usb: Added support for EMS CPC-USB/ARM7 CAN/USB interface

:::::: TO: Sebastian Haas <haas@ems-wuensche.com>
:::::: CC: David S. Miller <davem@davemloft.net>

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

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

only message in thread, other threads:[~2021-04-26 22:05 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:05 [mark-rutland:atomics/arch-atomic 10/17] drivers/net/can/usb/ems_usb.c:571:9: error: 'union <anonymous>' has no member named '__generic_cmpxchg64_local' 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.