All of lore.kernel.org
 help / color / mirror / Atom feed
* include/linux/unaligned/be_byteshift.h:46:19: error: redefinition of 'get_unaligned_be32'
@ 2021-02-12  4:36 ` kernel test robot
  0 siblings, 0 replies; 13+ messages in thread
From: kernel test robot @ 2021-02-12  4:36 UTC (permalink / raw)
  To: Gene Chen; +Cc: kbuild-all, linux-kernel, Jonathan Cameron

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

Hi Gene,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   291009f656e8eaebbdfd3a8d99f6b190a9ce9deb
commit: 1f4877218f7e2c2b914aeb69a8a0f47d59c74717 iio: adc: mt6360: Add ADC driver for MT6360
date:   3 months ago
config: arc-allyesconfig (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/torvalds/linux.git/commit/?id=1f4877218f7e2c2b914aeb69a8a0f47d59c74717
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus 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@intel.com>

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:13,
                    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/access_ok.h:23:28: note: previous definition of 'get_unaligned_be16' was here
      23 | static __always_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:13,
                    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/access_ok.h:28:28: note: previous definition of 'get_unaligned_be32' was here
      28 | static __always_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:13,
                    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/access_ok.h:33:28: note: previous definition of 'get_unaligned_be64' was here
      33 | static __always_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:13,
                    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/access_ok.h:53:29: note: previous definition of 'put_unaligned_be16' was here
      53 | static __always_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:13,
                    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/access_ok.h:58:29: note: previous definition of 'put_unaligned_be32' was here
      58 | static __always_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:13,
                    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/access_ok.h:63:29: note: previous definition of 'put_unaligned_be64' was here
      63 | static __always_inline void put_unaligned_be64(u64 val, void *p)
         |                             ^~~~~~~~~~~~~~~~~~


vim +/get_unaligned_be32 +46 include/linux/unaligned/be_byteshift.h

064106a91be5e7 Harvey Harrison 2008-04-29  45  
064106a91be5e7 Harvey Harrison 2008-04-29 @46  static inline u32 get_unaligned_be32(const void *p)
064106a91be5e7 Harvey Harrison 2008-04-29  47  {
19f747f7370fcf Bart Van Assche 2020-03-13  48  	return __get_unaligned_be32(p);
064106a91be5e7 Harvey Harrison 2008-04-29  49  }
064106a91be5e7 Harvey Harrison 2008-04-29  50  
064106a91be5e7 Harvey Harrison 2008-04-29  51  static inline u64 get_unaligned_be64(const void *p)
064106a91be5e7 Harvey Harrison 2008-04-29  52  {
19f747f7370fcf Bart Van Assche 2020-03-13  53  	return __get_unaligned_be64(p);
064106a91be5e7 Harvey Harrison 2008-04-29  54  }
064106a91be5e7 Harvey Harrison 2008-04-29  55  
064106a91be5e7 Harvey Harrison 2008-04-29  56  static inline void put_unaligned_be16(u16 val, void *p)
064106a91be5e7 Harvey Harrison 2008-04-29  57  {
064106a91be5e7 Harvey Harrison 2008-04-29  58  	__put_unaligned_be16(val, p);
064106a91be5e7 Harvey Harrison 2008-04-29  59  }
064106a91be5e7 Harvey Harrison 2008-04-29  60  
064106a91be5e7 Harvey Harrison 2008-04-29 @61  static inline void put_unaligned_be32(u32 val, void *p)
064106a91be5e7 Harvey Harrison 2008-04-29  62  {
064106a91be5e7 Harvey Harrison 2008-04-29  63  	__put_unaligned_be32(val, p);
064106a91be5e7 Harvey Harrison 2008-04-29  64  }
064106a91be5e7 Harvey Harrison 2008-04-29  65  

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

:::::: TO: Harvey Harrison <harvey.harrison@gmail.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 65587 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* include/linux/unaligned/be_byteshift.h:46:19: error: redefinition of 'get_unaligned_be32'
@ 2021-02-12  4:36 ` kernel test robot
  0 siblings, 0 replies; 13+ messages in thread
From: kernel test robot @ 2021-02-12  4:36 UTC (permalink / raw)
  To: kbuild-all

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

Hi Gene,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   291009f656e8eaebbdfd3a8d99f6b190a9ce9deb
commit: 1f4877218f7e2c2b914aeb69a8a0f47d59c74717 iio: adc: mt6360: Add ADC driver for MT6360
date:   3 months ago
config: arc-allyesconfig (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/torvalds/linux.git/commit/?id=1f4877218f7e2c2b914aeb69a8a0f47d59c74717
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus 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@intel.com>

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:13,
                    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/access_ok.h:23:28: note: previous definition of 'get_unaligned_be16' was here
      23 | static __always_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:13,
                    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/access_ok.h:28:28: note: previous definition of 'get_unaligned_be32' was here
      28 | static __always_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:13,
                    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/access_ok.h:33:28: note: previous definition of 'get_unaligned_be64' was here
      33 | static __always_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:13,
                    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/access_ok.h:53:29: note: previous definition of 'put_unaligned_be16' was here
      53 | static __always_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:13,
                    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/access_ok.h:58:29: note: previous definition of 'put_unaligned_be32' was here
      58 | static __always_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:13,
                    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/access_ok.h:63:29: note: previous definition of 'put_unaligned_be64' was here
      63 | static __always_inline void put_unaligned_be64(u64 val, void *p)
         |                             ^~~~~~~~~~~~~~~~~~


vim +/get_unaligned_be32 +46 include/linux/unaligned/be_byteshift.h

064106a91be5e7 Harvey Harrison 2008-04-29  45  
064106a91be5e7 Harvey Harrison 2008-04-29 @46  static inline u32 get_unaligned_be32(const void *p)
064106a91be5e7 Harvey Harrison 2008-04-29  47  {
19f747f7370fcf Bart Van Assche 2020-03-13  48  	return __get_unaligned_be32(p);
064106a91be5e7 Harvey Harrison 2008-04-29  49  }
064106a91be5e7 Harvey Harrison 2008-04-29  50  
064106a91be5e7 Harvey Harrison 2008-04-29  51  static inline u64 get_unaligned_be64(const void *p)
064106a91be5e7 Harvey Harrison 2008-04-29  52  {
19f747f7370fcf Bart Van Assche 2020-03-13  53  	return __get_unaligned_be64(p);
064106a91be5e7 Harvey Harrison 2008-04-29  54  }
064106a91be5e7 Harvey Harrison 2008-04-29  55  
064106a91be5e7 Harvey Harrison 2008-04-29  56  static inline void put_unaligned_be16(u16 val, void *p)
064106a91be5e7 Harvey Harrison 2008-04-29  57  {
064106a91be5e7 Harvey Harrison 2008-04-29  58  	__put_unaligned_be16(val, p);
064106a91be5e7 Harvey Harrison 2008-04-29  59  }
064106a91be5e7 Harvey Harrison 2008-04-29  60  
064106a91be5e7 Harvey Harrison 2008-04-29 @61  static inline void put_unaligned_be32(u32 val, void *p)
064106a91be5e7 Harvey Harrison 2008-04-29  62  {
064106a91be5e7 Harvey Harrison 2008-04-29  63  	__put_unaligned_be32(val, p);
064106a91be5e7 Harvey Harrison 2008-04-29  64  }
064106a91be5e7 Harvey Harrison 2008-04-29  65  

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

:::::: TO: Harvey Harrison <harvey.harrison@gmail.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.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: 65587 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: include/linux/unaligned/be_byteshift.h:46:19: error: redefinition of 'get_unaligned_be32'
  2021-03-22 13:33     ` Linus Walleij
  (?)
@ 2021-03-22 13:49       ` Jonathan Cameron
  -1 siblings, 0 replies; 13+ messages in thread
From: Jonathan Cameron @ 2021-03-22 13:49 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Andy Shevchenko, kernel test robot, Takashi Iwai, Mark Brown,
	ALSA Development Mailing List, kbuild-all,
	Linux Kernel Mailing List

On Mon, 22 Mar 2021 14:33:46 +0100
Linus Walleij <linus.walleij@linaro.org> wrote:

> On Fri, Mar 19, 2021 at 10:57 AM Andy Shevchenko
> <andy.shevchenko@gmail.com> wrote:
> > On Fri, Mar 19, 2021 at 9:05 AM kernel test robot <lkp@intel.com> wrote:  
> > >
> > > Hi Linus,
> > >
> > > FYI, the error/warning still remains.  
> (...)
> > >    In file included from include/linux/build_bug.h:5,
> > >                     from include/linux/bitfield.h:10,
> > >                     from drivers/iio/magnetometer/yamaha-yas530.c:22:  
> >
> > Isn't it fixed already somewhere?  
> 
> It is, I think Jonathan already applied the fix, it is just waiting to
> percolate up
> to Greg and then to Torvals:
> https://lore.kernel.org/linux-iio/20210221154511.75b3d8a6@archlinux/

I'm being slow.  Can apply it now as previous set of fixes have gone in.
I'll pick it up when I'm the right machine.

Jonathan

> 
> >> Kconfig warnings: (for reference only)
> >>    WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
> >>    Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
> >>    Selected by
> >>    - SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
> >>    - SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC  
> >
> > This one though is interesting.  
> 
> This looks like nothing to me :/
> As confused as ever about Kconfig.
> 
> Yours,
> Linus Walleij


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: include/linux/unaligned/be_byteshift.h:46:19: error: redefinition of 'get_unaligned_be32'
@ 2021-03-22 13:49       ` Jonathan Cameron
  0 siblings, 0 replies; 13+ messages in thread
From: Jonathan Cameron @ 2021-03-22 13:49 UTC (permalink / raw)
  To: Linus Walleij
  Cc: ALSA Development Mailing List, kbuild-all, kernel test robot,
	Takashi Iwai, Linux Kernel Mailing List, Andy Shevchenko,
	Mark Brown

On Mon, 22 Mar 2021 14:33:46 +0100
Linus Walleij <linus.walleij@linaro.org> wrote:

> On Fri, Mar 19, 2021 at 10:57 AM Andy Shevchenko
> <andy.shevchenko@gmail.com> wrote:
> > On Fri, Mar 19, 2021 at 9:05 AM kernel test robot <lkp@intel.com> wrote:  
> > >
> > > Hi Linus,
> > >
> > > FYI, the error/warning still remains.  
> (...)
> > >    In file included from include/linux/build_bug.h:5,
> > >                     from include/linux/bitfield.h:10,
> > >                     from drivers/iio/magnetometer/yamaha-yas530.c:22:  
> >
> > Isn't it fixed already somewhere?  
> 
> It is, I think Jonathan already applied the fix, it is just waiting to
> percolate up
> to Greg and then to Torvals:
> https://lore.kernel.org/linux-iio/20210221154511.75b3d8a6@archlinux/

I'm being slow.  Can apply it now as previous set of fixes have gone in.
I'll pick it up when I'm the right machine.

Jonathan

> 
> >> Kconfig warnings: (for reference only)
> >>    WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
> >>    Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
> >>    Selected by
> >>    - SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
> >>    - SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC  
> >
> > This one though is interesting.  
> 
> This looks like nothing to me :/
> As confused as ever about Kconfig.
> 
> Yours,
> Linus Walleij


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: include/linux/unaligned/be_byteshift.h:46:19: error: redefinition of 'get_unaligned_be32'
@ 2021-03-22 13:49       ` Jonathan Cameron
  0 siblings, 0 replies; 13+ messages in thread
From: Jonathan Cameron @ 2021-03-22 13:49 UTC (permalink / raw)
  To: kbuild-all

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

On Mon, 22 Mar 2021 14:33:46 +0100
Linus Walleij <linus.walleij@linaro.org> wrote:

> On Fri, Mar 19, 2021 at 10:57 AM Andy Shevchenko
> <andy.shevchenko@gmail.com> wrote:
> > On Fri, Mar 19, 2021 at 9:05 AM kernel test robot <lkp@intel.com> wrote:  
> > >
> > > Hi Linus,
> > >
> > > FYI, the error/warning still remains.  
> (...)
> > >    In file included from include/linux/build_bug.h:5,
> > >                     from include/linux/bitfield.h:10,
> > >                     from drivers/iio/magnetometer/yamaha-yas530.c:22:  
> >
> > Isn't it fixed already somewhere?  
> 
> It is, I think Jonathan already applied the fix, it is just waiting to
> percolate up
> to Greg and then to Torvals:
> https://lore.kernel.org/linux-iio/20210221154511.75b3d8a6(a)archlinux/

I'm being slow.  Can apply it now as previous set of fixes have gone in.
I'll pick it up when I'm the right machine.

Jonathan

> 
> >> Kconfig warnings: (for reference only)
> >>    WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
> >>    Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
> >>    Selected by
> >>    - SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
> >>    - SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC  
> >
> > This one though is interesting.  
> 
> This looks like nothing to me :/
> As confused as ever about Kconfig.
> 
> Yours,
> Linus Walleij

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: include/linux/unaligned/be_byteshift.h:46:19: error: redefinition of 'get_unaligned_be32'
  2021-03-19  9:57   ` Andy Shevchenko
  (?)
@ 2021-03-22 13:33     ` Linus Walleij
  -1 siblings, 0 replies; 13+ messages in thread
From: Linus Walleij @ 2021-03-22 13:33 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: kernel test robot, Takashi Iwai, Mark Brown,
	ALSA Development Mailing List, kbuild-all,
	Linux Kernel Mailing List, Jonathan Cameron

On Fri, Mar 19, 2021 at 10:57 AM Andy Shevchenko
<andy.shevchenko@gmail.com> wrote:
> On Fri, Mar 19, 2021 at 9:05 AM kernel test robot <lkp@intel.com> wrote:
> >
> > Hi Linus,
> >
> > FYI, the error/warning still remains.
(...)
> >    In file included from include/linux/build_bug.h:5,
> >                     from include/linux/bitfield.h:10,
> >                     from drivers/iio/magnetometer/yamaha-yas530.c:22:
>
> Isn't it fixed already somewhere?

It is, I think Jonathan already applied the fix, it is just waiting to
percolate up
to Greg and then to Torvals:
https://lore.kernel.org/linux-iio/20210221154511.75b3d8a6@archlinux/

>> Kconfig warnings: (for reference only)
>>    WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
>>    Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
>>    Selected by
>>    - SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
>>    - SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC
>
> This one though is interesting.

This looks like nothing to me :/
As confused as ever about Kconfig.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: include/linux/unaligned/be_byteshift.h:46:19: error: redefinition of 'get_unaligned_be32'
@ 2021-03-22 13:33     ` Linus Walleij
  0 siblings, 0 replies; 13+ messages in thread
From: Linus Walleij @ 2021-03-22 13:33 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: ALSA Development Mailing List, kbuild-all, kernel test robot,
	Linux Kernel Mailing List, Takashi Iwai, Mark Brown,
	Jonathan Cameron

On Fri, Mar 19, 2021 at 10:57 AM Andy Shevchenko
<andy.shevchenko@gmail.com> wrote:
> On Fri, Mar 19, 2021 at 9:05 AM kernel test robot <lkp@intel.com> wrote:
> >
> > Hi Linus,
> >
> > FYI, the error/warning still remains.
(...)
> >    In file included from include/linux/build_bug.h:5,
> >                     from include/linux/bitfield.h:10,
> >                     from drivers/iio/magnetometer/yamaha-yas530.c:22:
>
> Isn't it fixed already somewhere?

It is, I think Jonathan already applied the fix, it is just waiting to
percolate up
to Greg and then to Torvals:
https://lore.kernel.org/linux-iio/20210221154511.75b3d8a6@archlinux/

>> Kconfig warnings: (for reference only)
>>    WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
>>    Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
>>    Selected by
>>    - SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
>>    - SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC
>
> This one though is interesting.

This looks like nothing to me :/
As confused as ever about Kconfig.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: include/linux/unaligned/be_byteshift.h:46:19: error: redefinition of 'get_unaligned_be32'
@ 2021-03-22 13:33     ` Linus Walleij
  0 siblings, 0 replies; 13+ messages in thread
From: Linus Walleij @ 2021-03-22 13:33 UTC (permalink / raw)
  To: kbuild-all

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

On Fri, Mar 19, 2021 at 10:57 AM Andy Shevchenko
<andy.shevchenko@gmail.com> wrote:
> On Fri, Mar 19, 2021 at 9:05 AM kernel test robot <lkp@intel.com> wrote:
> >
> > Hi Linus,
> >
> > FYI, the error/warning still remains.
(...)
> >    In file included from include/linux/build_bug.h:5,
> >                     from include/linux/bitfield.h:10,
> >                     from drivers/iio/magnetometer/yamaha-yas530.c:22:
>
> Isn't it fixed already somewhere?

It is, I think Jonathan already applied the fix, it is just waiting to
percolate up
to Greg and then to Torvals:
https://lore.kernel.org/linux-iio/20210221154511.75b3d8a6(a)archlinux/

>> Kconfig warnings: (for reference only)
>>    WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
>>    Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
>>    Selected by
>>    - SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
>>    - SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC
>
> This one though is interesting.

This looks like nothing to me :/
As confused as ever about Kconfig.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: include/linux/unaligned/be_byteshift.h:46:19: error: redefinition of 'get_unaligned_be32'
  2021-03-19  7:04 ` kernel test robot
  (?)
@ 2021-03-19  9:57   ` Andy Shevchenko
  -1 siblings, 0 replies; 13+ messages in thread
From: Andy Shevchenko @ 2021-03-19  9:57 UTC (permalink / raw)
  To: kernel test robot, Takashi Iwai, Mark Brown,
	ALSA Development Mailing List
  Cc: Linus Walleij, kbuild-all, Linux Kernel Mailing List, Jonathan Cameron

On Fri, Mar 19, 2021 at 9:05 AM kernel test robot <lkp@intel.com> wrote:
>
> Hi Linus,
>
> FYI, the error/warning still remains.
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   8b12a62a4e3ed4ae99c715034f557eb391d6b196
> commit: de8860b1ed4701ea7e6f760f02d79ca6a3b656a1 iio: magnetometer: Add driver for Yamaha YAS530
> date:   10 weeks ago
> config: m68k-randconfig-s032-20210318 (attached as .config)
> compiler: m68k-linux-gcc (GCC) 9.3.0
> reproduce:
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # apt-get install sparse
>         # sparse version: v0.6.3-277-gc089cd2d-dirty
>         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=de8860b1ed4701ea7e6f760f02d79ca6a3b656a1
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout de8860b1ed4701ea7e6f760f02d79ca6a3b656a1
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' 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 include/linux/build_bug.h:5,
>                     from include/linux/bitfield.h:10,
>                     from drivers/iio/magnetometer/yamaha-yas530.c:22:

Isn't it fixed already somewhere?

...

> Kconfig warnings: (for reference only)
>    WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
>    Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
>    Selected by
>    - SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
>    - SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC

This one though is interesting.
Cc Takashi and Mark.

-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: include/linux/unaligned/be_byteshift.h:46:19: error: redefinition of 'get_unaligned_be32'
@ 2021-03-19  9:57   ` Andy Shevchenko
  0 siblings, 0 replies; 13+ messages in thread
From: Andy Shevchenko @ 2021-03-19  9:57 UTC (permalink / raw)
  To: kernel test robot, Takashi Iwai, Mark Brown,
	ALSA Development Mailing List
  Cc: Linus Walleij, kbuild-all, Linux Kernel Mailing List, Jonathan Cameron

On Fri, Mar 19, 2021 at 9:05 AM kernel test robot <lkp@intel.com> wrote:
>
> Hi Linus,
>
> FYI, the error/warning still remains.
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   8b12a62a4e3ed4ae99c715034f557eb391d6b196
> commit: de8860b1ed4701ea7e6f760f02d79ca6a3b656a1 iio: magnetometer: Add driver for Yamaha YAS530
> date:   10 weeks ago
> config: m68k-randconfig-s032-20210318 (attached as .config)
> compiler: m68k-linux-gcc (GCC) 9.3.0
> reproduce:
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # apt-get install sparse
>         # sparse version: v0.6.3-277-gc089cd2d-dirty
>         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=de8860b1ed4701ea7e6f760f02d79ca6a3b656a1
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout de8860b1ed4701ea7e6f760f02d79ca6a3b656a1
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' 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 include/linux/build_bug.h:5,
>                     from include/linux/bitfield.h:10,
>                     from drivers/iio/magnetometer/yamaha-yas530.c:22:

Isn't it fixed already somewhere?

...

> Kconfig warnings: (for reference only)
>    WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
>    Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
>    Selected by
>    - SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
>    - SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC

This one though is interesting.
Cc Takashi and Mark.

-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: include/linux/unaligned/be_byteshift.h:46:19: error: redefinition of 'get_unaligned_be32'
@ 2021-03-19  9:57   ` Andy Shevchenko
  0 siblings, 0 replies; 13+ messages in thread
From: Andy Shevchenko @ 2021-03-19  9:57 UTC (permalink / raw)
  To: kbuild-all

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

On Fri, Mar 19, 2021 at 9:05 AM kernel test robot <lkp@intel.com> wrote:
>
> Hi Linus,
>
> FYI, the error/warning still remains.
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   8b12a62a4e3ed4ae99c715034f557eb391d6b196
> commit: de8860b1ed4701ea7e6f760f02d79ca6a3b656a1 iio: magnetometer: Add driver for Yamaha YAS530
> date:   10 weeks ago
> config: m68k-randconfig-s032-20210318 (attached as .config)
> compiler: m68k-linux-gcc (GCC) 9.3.0
> reproduce:
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # apt-get install sparse
>         # sparse version: v0.6.3-277-gc089cd2d-dirty
>         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=de8860b1ed4701ea7e6f760f02d79ca6a3b656a1
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout de8860b1ed4701ea7e6f760f02d79ca6a3b656a1
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' 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 include/linux/build_bug.h:5,
>                     from include/linux/bitfield.h:10,
>                     from drivers/iio/magnetometer/yamaha-yas530.c:22:

Isn't it fixed already somewhere?

...

> Kconfig warnings: (for reference only)
>    WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
>    Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
>    Selected by
>    - SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
>    - SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC

This one though is interesting.
Cc Takashi and Mark.

-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 13+ messages in thread

* include/linux/unaligned/be_byteshift.h:46:19: error: redefinition of 'get_unaligned_be32'
@ 2021-03-19  7:04 ` kernel test robot
  0 siblings, 0 replies; 13+ messages in thread
From: kernel test robot @ 2021-03-19  7:04 UTC (permalink / raw)
  To: Linus Walleij; +Cc: kbuild-all, linux-kernel, Jonathan Cameron, Andy Shevchenko

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

Hi Linus,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8b12a62a4e3ed4ae99c715034f557eb391d6b196
commit: de8860b1ed4701ea7e6f760f02d79ca6a3b656a1 iio: magnetometer: Add driver for Yamaha YAS530
date:   10 weeks ago
config: m68k-randconfig-s032-20210318 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-277-gc089cd2d-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=de8860b1ed4701ea7e6f760f02d79ca6a3b656a1
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout de8860b1ed4701ea7e6f760f02d79ca6a3b656a1
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' 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 include/linux/build_bug.h:5,
                    from include/linux/bitfield.h:10,
                    from drivers/iio/magnetometer/yamaha-yas530.c:22:
   include/linux/scatterlist.h: In function 'sg_set_buf':
   arch/m68k/include/asm/page_no.h:33:50: warning: ordered comparison of pointer with null pointer [-Wextra]
      33 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
         |                                                  ^~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
      78 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
   include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
     137 |  BUG_ON(!virt_addr_valid(buf));
         |  ^~~~~~
   include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
     137 |  BUG_ON(!virt_addr_valid(buf));
         |          ^~~~~~~~~~~~~~~
   In file included from drivers/iio/magnetometer/yamaha-yas530.c:35:
   include/linux/unaligned/be_byteshift.h: At top level:
   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 arch/m68k/include/asm/unaligned.h:18,
                    from include/asm-generic/uaccess.h:13,
                    from arch/m68k/include/asm/uaccess.h:394,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/cgroup.h:17,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from drivers/iio/magnetometer/yamaha-yas530.c:33:
   include/linux/unaligned/access_ok.h:23:28: note: previous definition of 'get_unaligned_be16' was here
      23 | static __always_inline u16 get_unaligned_be16(const void *p)
         |                            ^~~~~~~~~~~~~~~~~~
   In file included from drivers/iio/magnetometer/yamaha-yas530.c:35:
>> 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 arch/m68k/include/asm/unaligned.h:18,
                    from include/asm-generic/uaccess.h:13,
                    from arch/m68k/include/asm/uaccess.h:394,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/cgroup.h:17,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from drivers/iio/magnetometer/yamaha-yas530.c:33:
   include/linux/unaligned/access_ok.h:28:28: note: previous definition of 'get_unaligned_be32' was here
      28 | static __always_inline u32 get_unaligned_be32(const void *p)
         |                            ^~~~~~~~~~~~~~~~~~
   In file included from drivers/iio/magnetometer/yamaha-yas530.c:35:
   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 arch/m68k/include/asm/unaligned.h:18,
                    from include/asm-generic/uaccess.h:13,
                    from arch/m68k/include/asm/uaccess.h:394,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/cgroup.h:17,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from drivers/iio/magnetometer/yamaha-yas530.c:33:
   include/linux/unaligned/access_ok.h:33:28: note: previous definition of 'get_unaligned_be64' was here
      33 | static __always_inline u64 get_unaligned_be64(const void *p)
         |                            ^~~~~~~~~~~~~~~~~~
   In file included from drivers/iio/magnetometer/yamaha-yas530.c:35:
   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 arch/m68k/include/asm/unaligned.h:18,
                    from include/asm-generic/uaccess.h:13,
                    from arch/m68k/include/asm/uaccess.h:394,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/cgroup.h:17,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from drivers/iio/magnetometer/yamaha-yas530.c:33:
   include/linux/unaligned/access_ok.h:53:29: note: previous definition of 'put_unaligned_be16' was here
      53 | static __always_inline void put_unaligned_be16(u16 val, void *p)
         |                             ^~~~~~~~~~~~~~~~~~
   In file included from drivers/iio/magnetometer/yamaha-yas530.c:35:
>> 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 arch/m68k/include/asm/unaligned.h:18,
                    from include/asm-generic/uaccess.h:13,
                    from arch/m68k/include/asm/uaccess.h:394,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/cgroup.h:17,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from drivers/iio/magnetometer/yamaha-yas530.c:33:
   include/linux/unaligned/access_ok.h:58:29: note: previous definition of 'put_unaligned_be32' was here
      58 | static __always_inline void put_unaligned_be32(u32 val, void *p)
         |                             ^~~~~~~~~~~~~~~~~~
   In file included from drivers/iio/magnetometer/yamaha-yas530.c:35:
   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 arch/m68k/include/asm/unaligned.h:18,
                    from include/asm-generic/uaccess.h:13,
                    from arch/m68k/include/asm/uaccess.h:394,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/cgroup.h:17,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from drivers/iio/magnetometer/yamaha-yas530.c:33:
   include/linux/unaligned/access_ok.h:63:29: note: previous definition of 'put_unaligned_be64' was here
      63 | static __always_inline void put_unaligned_be64(u64 val, void *p)
         |                             ^~~~~~~~~~~~~~~~~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
   Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
   Selected by
   - SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
   - SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC


vim +/get_unaligned_be32 +46 include/linux/unaligned/be_byteshift.h

064106a91be5e7 Harvey Harrison 2008-04-29  45  
064106a91be5e7 Harvey Harrison 2008-04-29 @46  static inline u32 get_unaligned_be32(const void *p)
064106a91be5e7 Harvey Harrison 2008-04-29  47  {
19f747f7370fcf Bart Van Assche 2020-03-13  48  	return __get_unaligned_be32(p);
064106a91be5e7 Harvey Harrison 2008-04-29  49  }
064106a91be5e7 Harvey Harrison 2008-04-29  50  
064106a91be5e7 Harvey Harrison 2008-04-29  51  static inline u64 get_unaligned_be64(const void *p)
064106a91be5e7 Harvey Harrison 2008-04-29  52  {
19f747f7370fcf Bart Van Assche 2020-03-13  53  	return __get_unaligned_be64(p);
064106a91be5e7 Harvey Harrison 2008-04-29  54  }
064106a91be5e7 Harvey Harrison 2008-04-29  55  
064106a91be5e7 Harvey Harrison 2008-04-29  56  static inline void put_unaligned_be16(u16 val, void *p)
064106a91be5e7 Harvey Harrison 2008-04-29  57  {
064106a91be5e7 Harvey Harrison 2008-04-29  58  	__put_unaligned_be16(val, p);
064106a91be5e7 Harvey Harrison 2008-04-29  59  }
064106a91be5e7 Harvey Harrison 2008-04-29  60  
064106a91be5e7 Harvey Harrison 2008-04-29 @61  static inline void put_unaligned_be32(u32 val, void *p)
064106a91be5e7 Harvey Harrison 2008-04-29  62  {
064106a91be5e7 Harvey Harrison 2008-04-29  63  	__put_unaligned_be32(val, p);
064106a91be5e7 Harvey Harrison 2008-04-29  64  }
064106a91be5e7 Harvey Harrison 2008-04-29  65  

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

:::::: TO: Harvey Harrison <harvey.harrison@gmail.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33257 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* include/linux/unaligned/be_byteshift.h:46:19: error: redefinition of 'get_unaligned_be32'
@ 2021-03-19  7:04 ` kernel test robot
  0 siblings, 0 replies; 13+ messages in thread
From: kernel test robot @ 2021-03-19  7:04 UTC (permalink / raw)
  To: kbuild-all

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

Hi Linus,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8b12a62a4e3ed4ae99c715034f557eb391d6b196
commit: de8860b1ed4701ea7e6f760f02d79ca6a3b656a1 iio: magnetometer: Add driver for Yamaha YAS530
date:   10 weeks ago
config: m68k-randconfig-s032-20210318 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-277-gc089cd2d-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=de8860b1ed4701ea7e6f760f02d79ca6a3b656a1
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout de8860b1ed4701ea7e6f760f02d79ca6a3b656a1
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' 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 include/linux/build_bug.h:5,
                    from include/linux/bitfield.h:10,
                    from drivers/iio/magnetometer/yamaha-yas530.c:22:
   include/linux/scatterlist.h: In function 'sg_set_buf':
   arch/m68k/include/asm/page_no.h:33:50: warning: ordered comparison of pointer with null pointer [-Wextra]
      33 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
         |                                                  ^~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
      78 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
   include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
     137 |  BUG_ON(!virt_addr_valid(buf));
         |  ^~~~~~
   include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
     137 |  BUG_ON(!virt_addr_valid(buf));
         |          ^~~~~~~~~~~~~~~
   In file included from drivers/iio/magnetometer/yamaha-yas530.c:35:
   include/linux/unaligned/be_byteshift.h: At top level:
   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 arch/m68k/include/asm/unaligned.h:18,
                    from include/asm-generic/uaccess.h:13,
                    from arch/m68k/include/asm/uaccess.h:394,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/cgroup.h:17,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from drivers/iio/magnetometer/yamaha-yas530.c:33:
   include/linux/unaligned/access_ok.h:23:28: note: previous definition of 'get_unaligned_be16' was here
      23 | static __always_inline u16 get_unaligned_be16(const void *p)
         |                            ^~~~~~~~~~~~~~~~~~
   In file included from drivers/iio/magnetometer/yamaha-yas530.c:35:
>> 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 arch/m68k/include/asm/unaligned.h:18,
                    from include/asm-generic/uaccess.h:13,
                    from arch/m68k/include/asm/uaccess.h:394,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/cgroup.h:17,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from drivers/iio/magnetometer/yamaha-yas530.c:33:
   include/linux/unaligned/access_ok.h:28:28: note: previous definition of 'get_unaligned_be32' was here
      28 | static __always_inline u32 get_unaligned_be32(const void *p)
         |                            ^~~~~~~~~~~~~~~~~~
   In file included from drivers/iio/magnetometer/yamaha-yas530.c:35:
   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 arch/m68k/include/asm/unaligned.h:18,
                    from include/asm-generic/uaccess.h:13,
                    from arch/m68k/include/asm/uaccess.h:394,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/cgroup.h:17,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from drivers/iio/magnetometer/yamaha-yas530.c:33:
   include/linux/unaligned/access_ok.h:33:28: note: previous definition of 'get_unaligned_be64' was here
      33 | static __always_inline u64 get_unaligned_be64(const void *p)
         |                            ^~~~~~~~~~~~~~~~~~
   In file included from drivers/iio/magnetometer/yamaha-yas530.c:35:
   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 arch/m68k/include/asm/unaligned.h:18,
                    from include/asm-generic/uaccess.h:13,
                    from arch/m68k/include/asm/uaccess.h:394,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/cgroup.h:17,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from drivers/iio/magnetometer/yamaha-yas530.c:33:
   include/linux/unaligned/access_ok.h:53:29: note: previous definition of 'put_unaligned_be16' was here
      53 | static __always_inline void put_unaligned_be16(u16 val, void *p)
         |                             ^~~~~~~~~~~~~~~~~~
   In file included from drivers/iio/magnetometer/yamaha-yas530.c:35:
>> 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 arch/m68k/include/asm/unaligned.h:18,
                    from include/asm-generic/uaccess.h:13,
                    from arch/m68k/include/asm/uaccess.h:394,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/cgroup.h:17,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from drivers/iio/magnetometer/yamaha-yas530.c:33:
   include/linux/unaligned/access_ok.h:58:29: note: previous definition of 'put_unaligned_be32' was here
      58 | static __always_inline void put_unaligned_be32(u32 val, void *p)
         |                             ^~~~~~~~~~~~~~~~~~
   In file included from drivers/iio/magnetometer/yamaha-yas530.c:35:
   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 arch/m68k/include/asm/unaligned.h:18,
                    from include/asm-generic/uaccess.h:13,
                    from arch/m68k/include/asm/uaccess.h:394,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/cgroup.h:17,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from drivers/iio/magnetometer/yamaha-yas530.c:33:
   include/linux/unaligned/access_ok.h:63:29: note: previous definition of 'put_unaligned_be64' was here
      63 | static __always_inline void put_unaligned_be64(u64 val, void *p)
         |                             ^~~~~~~~~~~~~~~~~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
   Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
   Selected by
   - SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
   - SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC


vim +/get_unaligned_be32 +46 include/linux/unaligned/be_byteshift.h

064106a91be5e7 Harvey Harrison 2008-04-29  45  
064106a91be5e7 Harvey Harrison 2008-04-29 @46  static inline u32 get_unaligned_be32(const void *p)
064106a91be5e7 Harvey Harrison 2008-04-29  47  {
19f747f7370fcf Bart Van Assche 2020-03-13  48  	return __get_unaligned_be32(p);
064106a91be5e7 Harvey Harrison 2008-04-29  49  }
064106a91be5e7 Harvey Harrison 2008-04-29  50  
064106a91be5e7 Harvey Harrison 2008-04-29  51  static inline u64 get_unaligned_be64(const void *p)
064106a91be5e7 Harvey Harrison 2008-04-29  52  {
19f747f7370fcf Bart Van Assche 2020-03-13  53  	return __get_unaligned_be64(p);
064106a91be5e7 Harvey Harrison 2008-04-29  54  }
064106a91be5e7 Harvey Harrison 2008-04-29  55  
064106a91be5e7 Harvey Harrison 2008-04-29  56  static inline void put_unaligned_be16(u16 val, void *p)
064106a91be5e7 Harvey Harrison 2008-04-29  57  {
064106a91be5e7 Harvey Harrison 2008-04-29  58  	__put_unaligned_be16(val, p);
064106a91be5e7 Harvey Harrison 2008-04-29  59  }
064106a91be5e7 Harvey Harrison 2008-04-29  60  
064106a91be5e7 Harvey Harrison 2008-04-29 @61  static inline void put_unaligned_be32(u32 val, void *p)
064106a91be5e7 Harvey Harrison 2008-04-29  62  {
064106a91be5e7 Harvey Harrison 2008-04-29  63  	__put_unaligned_be32(val, p);
064106a91be5e7 Harvey Harrison 2008-04-29  64  }
064106a91be5e7 Harvey Harrison 2008-04-29  65  

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

:::::: TO: Harvey Harrison <harvey.harrison@gmail.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.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: 33257 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-03-22 13:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-12  4:36 include/linux/unaligned/be_byteshift.h:46:19: error: redefinition of 'get_unaligned_be32' kernel test robot
2021-02-12  4:36 ` kernel test robot
2021-03-19  7:04 kernel test robot
2021-03-19  7:04 ` kernel test robot
2021-03-19  9:57 ` Andy Shevchenko
2021-03-19  9:57   ` Andy Shevchenko
2021-03-19  9:57   ` Andy Shevchenko
2021-03-22 13:33   ` Linus Walleij
2021-03-22 13:33     ` Linus Walleij
2021-03-22 13:33     ` Linus Walleij
2021-03-22 13:49     ` Jonathan Cameron
2021-03-22 13:49       ` Jonathan Cameron
2021-03-22 13:49       ` Jonathan Cameron

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.