[linux-next:master 3210/13205] include/linux/unaligned/be_byteshift.h:41:19: error: redefinition of 'get_unaligned_be16'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Gene,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   3cc2bd440f2171f093b3a8480a4b54d8c270ed38
commit: 1f4877218f7e2c2b914aeb69a8a0f47d59c74717 [3210/13205] iio: adc: mt6360: Add ADC driver for MT6360
config: arc-randconfig-r034-20201214 (attached as .config)
compiler: arceb-elf-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/next/linux-next.git/commit/?id=1f4877218f7e2c2b914aeb69a8a0f47d59c74717
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 1f4877218f7e2c2b914aeb69a8a0f47d59c74717
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc 

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

All errors (new ones prefixed by >>):

   In file included from drivers/iio/adc/mt6360-adc.c:12:
>> include/linux/unaligned/be_byteshift.h:41:19: error: redefinition of 'get_unaligned_be16'
      41 | static inline u16 get_unaligned_be16(const void *p)
         |                   ^~~~~~~~~~~~~~~~~~
   In file included from include/asm-generic/unaligned.h:26,
                    from arch/arc/include/asm/unaligned.h:11,
                    from arch/arc/include/asm/io.h:12,
                    from include/linux/io.h:13,
                    from include/linux/irq.h:20,
                    from drivers/iio/adc/mt6360-adc.c:5:
   include/linux/unaligned/be_struct.h:7:19: note: previous definition of 'get_unaligned_be16' was here
       7 | static inline u16 get_unaligned_be16(const void *p)
         |                   ^~~~~~~~~~~~~~~~~~
   In file included from drivers/iio/adc/mt6360-adc.c:12:
>> include/linux/unaligned/be_byteshift.h:46:19: error: redefinition of 'get_unaligned_be32'
      46 | static inline u32 get_unaligned_be32(const void *p)
         |                   ^~~~~~~~~~~~~~~~~~
   In file included from include/asm-generic/unaligned.h:26,
                    from arch/arc/include/asm/unaligned.h:11,
                    from arch/arc/include/asm/io.h:12,
                    from include/linux/io.h:13,
                    from include/linux/irq.h:20,
                    from drivers/iio/adc/mt6360-adc.c:5:
   include/linux/unaligned/be_struct.h:12:19: note: previous definition of 'get_unaligned_be32' was here
      12 | static inline u32 get_unaligned_be32(const void *p)
         |                   ^~~~~~~~~~~~~~~~~~
   In file included from drivers/iio/adc/mt6360-adc.c:12:
>> include/linux/unaligned/be_byteshift.h:51:19: error: redefinition of 'get_unaligned_be64'
      51 | static inline u64 get_unaligned_be64(const void *p)
         |                   ^~~~~~~~~~~~~~~~~~
   In file included from include/asm-generic/unaligned.h:26,
                    from arch/arc/include/asm/unaligned.h:11,
                    from arch/arc/include/asm/io.h:12,
                    from include/linux/io.h:13,
                    from include/linux/irq.h:20,
                    from drivers/iio/adc/mt6360-adc.c:5:
   include/linux/unaligned/be_struct.h:17:19: note: previous definition of 'get_unaligned_be64' was here
      17 | static inline u64 get_unaligned_be64(const void *p)
         |                   ^~~~~~~~~~~~~~~~~~
   In file included from drivers/iio/adc/mt6360-adc.c:12:
>> include/linux/unaligned/be_byteshift.h:56:20: error: redefinition of 'put_unaligned_be16'
      56 | static inline void put_unaligned_be16(u16 val, void *p)
         |                    ^~~~~~~~~~~~~~~~~~
   In file included from include/asm-generic/unaligned.h:26,
                    from arch/arc/include/asm/unaligned.h:11,
                    from arch/arc/include/asm/io.h:12,
                    from include/linux/io.h:13,
                    from include/linux/irq.h:20,
                    from drivers/iio/adc/mt6360-adc.c:5:
   include/linux/unaligned/be_struct.h:22:20: note: previous definition of 'put_unaligned_be16' was here
      22 | static inline void put_unaligned_be16(u16 val, void *p)
         |                    ^~~~~~~~~~~~~~~~~~
   In file included from drivers/iio/adc/mt6360-adc.c:12:
>> include/linux/unaligned/be_byteshift.h:61:20: error: redefinition of 'put_unaligned_be32'
      61 | static inline void put_unaligned_be32(u32 val, void *p)
         |                    ^~~~~~~~~~~~~~~~~~
   In file included from include/asm-generic/unaligned.h:26,
                    from arch/arc/include/asm/unaligned.h:11,
                    from arch/arc/include/asm/io.h:12,
                    from include/linux/io.h:13,
                    from include/linux/irq.h:20,
                    from drivers/iio/adc/mt6360-adc.c:5:
   include/linux/unaligned/be_struct.h:27:20: note: previous definition of 'put_unaligned_be32' was here
      27 | static inline void put_unaligned_be32(u32 val, void *p)
         |                    ^~~~~~~~~~~~~~~~~~
   In file included from drivers/iio/adc/mt6360-adc.c:12:
>> include/linux/unaligned/be_byteshift.h:66:20: error: redefinition of 'put_unaligned_be64'
      66 | static inline void put_unaligned_be64(u64 val, void *p)
         |                    ^~~~~~~~~~~~~~~~~~
   In file included from include/asm-generic/unaligned.h:26,
                    from arch/arc/include/asm/unaligned.h:11,
                    from arch/arc/include/asm/io.h:12,
                    from include/linux/io.h:13,
                    from include/linux/irq.h:20,
                    from drivers/iio/adc/mt6360-adc.c:5:
   include/linux/unaligned/be_struct.h:32:20: note: previous definition of 'put_unaligned_be64' was here
      32 | static inline void put_unaligned_be64(u64 val, void *p)
         |                    ^~~~~~~~~~~~~~~~~~

vim +/get_unaligned_be16 +41 include/linux/unaligned/be_byteshift.h

064106a91be5e76 Harvey Harrison 2008-04-29  40  
064106a91be5e76 Harvey Harrison 2008-04-29 @41  static inline u16 get_unaligned_be16(const void *p)
064106a91be5e76 Harvey Harrison 2008-04-29  42  {
19f747f7370fcf4 Bart Van Assche 2020-03-13  43  	return __get_unaligned_be16(p);
064106a91be5e76 Harvey Harrison 2008-04-29  44  }
064106a91be5e76 Harvey Harrison 2008-04-29  45  
064106a91be5e76 Harvey Harrison 2008-04-29 @46  static inline u32 get_unaligned_be32(const void *p)
064106a91be5e76 Harvey Harrison 2008-04-29  47  {
19f747f7370fcf4 Bart Van Assche 2020-03-13  48  	return __get_unaligned_be32(p);
064106a91be5e76 Harvey Harrison 2008-04-29  49  }
064106a91be5e76 Harvey Harrison 2008-04-29  50  
064106a91be5e76 Harvey Harrison 2008-04-29 @51  static inline u64 get_unaligned_be64(const void *p)
064106a91be5e76 Harvey Harrison 2008-04-29  52  {
19f747f7370fcf4 Bart Van Assche 2020-03-13  53  	return __get_unaligned_be64(p);
064106a91be5e76 Harvey Harrison 2008-04-29  54  }
064106a91be5e76 Harvey Harrison 2008-04-29  55  
064106a91be5e76 Harvey Harrison 2008-04-29 @56  static inline void put_unaligned_be16(u16 val, void *p)
064106a91be5e76 Harvey Harrison 2008-04-29  57  {
064106a91be5e76 Harvey Harrison 2008-04-29  58  	__put_unaligned_be16(val, p);
064106a91be5e76 Harvey Harrison 2008-04-29  59  }
064106a91be5e76 Harvey Harrison 2008-04-29  60  
064106a91be5e76 Harvey Harrison 2008-04-29 @61  static inline void put_unaligned_be32(u32 val, void *p)
064106a91be5e76 Harvey Harrison 2008-04-29  62  {
064106a91be5e76 Harvey Harrison 2008-04-29  63  	__put_unaligned_be32(val, p);
064106a91be5e76 Harvey Harrison 2008-04-29  64  }
064106a91be5e76 Harvey Harrison 2008-04-29  65  
064106a91be5e76 Harvey Harrison 2008-04-29 @66  static inline void put_unaligned_be64(u64 val, void *p)
064106a91be5e76 Harvey Harrison 2008-04-29  67  {
064106a91be5e76 Harvey Harrison 2008-04-29  68  	__put_unaligned_be64(val, p);
064106a91be5e76 Harvey Harrison 2008-04-29  69  }
064106a91be5e76 Harvey Harrison 2008-04-29  70  

:::::: The code at line 41 was first introduced by commit
:::::: 064106a91be5e76cb42c1ddf5d3871e3a1bd2a23 kernel: add common infrastructure for unaligned access

:::::: TO: Harvey Harrison <harvey.harrison@xxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux