Skip to contentSkip to conversation

arch/m68k/include/asm/raw_io.h:39: warning: "__raw_readb" redefined

DISCUSSION kernel test robot 2 participants 2 messages Jan 7, 2025

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fbfd64d25c7af3b8695201ebc85efe90be28c5a3
commit: 7283f862bd991c8657e9bf1c02db772fcf018f13 drm: Implement DRM aperture helpers under video/
date:   2 years, 6 months ago
config: m68k-randconfig-m031-20211009 (https://download.01.org/0day-ci/archive/20250107/[email protected]/config)
compiler: m68k-linux-gcc (GCC) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250107/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

In file included from arch/m68k/include/asm/vga.h:12,
from include/video/vga.h:22, from include/linux/vgaarb.h:34, from drivers/video/aperture.c:12:

>> arch/m68k/include/asm/raw_io.h:39: warning: "__raw_readb" redefined
      39 | #define __raw_readb in_8
         | 
   In file included from arch/m68k/include/asm/io.h:6,
                    from include/linux/io.h:13,
                    from include/linux/irq.h:20,
                    from include/asm-generic/hardirq.h:17,
                    from ./arch/m68k/include/generated/asm/hardirq.h:1,
                    from include/linux/hardirq.h:11,
                    from include/linux/interrupt.h:11,
                    from include/linux/trace_recursion.h:5,
                    from include/linux/ftrace.h:10,
                    from include/linux/kprobes.h:28,
                    from include/linux/kgdb.h:19,
                    from include/linux/fb.h:6,
                    from drivers/video/aperture.c:5:
   arch/m68k/include/asm/io_no.h:16: note: this is the location of the previous definition
      16 | #define __raw_readb(addr) \
         | 
>> arch/m68k/include/asm/raw_io.h:40: warning: "__raw_readw" redefined
      40 | #define __raw_readw in_be16
         | 
   arch/m68k/include/asm/io_no.h:18: note: this is the location of the previous definition
      18 | #define __raw_readw(addr) \
         | 
>> arch/m68k/include/asm/raw_io.h:41: warning: "__raw_readl" redefined
      41 | #define __raw_readl in_be32
         | 
   arch/m68k/include/asm/io_no.h:20: note: this is the location of the previous definition
      20 | #define __raw_readl(addr) \
         | 
>> arch/m68k/include/asm/raw_io.h:46: warning: "__raw_writeb" redefined
      46 | #define __raw_writeb(val,addr) out_8((addr),(val))
         | 
   arch/m68k/include/asm/io_no.h:23: note: this is the location of the previous definition
      23 | #define __raw_writeb(b, addr) (void)((*(__force volatile u8 *) (addr)) = (b))
         | 
>> arch/m68k/include/asm/raw_io.h:47: warning: "__raw_writew" redefined
      47 | #define __raw_writew(val,addr) out_be16((addr),(val))
         | 
   arch/m68k/include/asm/io_no.h:24: note: this is the location of the previous definition
      24 | #define __raw_writew(b, addr) (void)((*(__force volatile u16 *) (addr)) = (b))
         | 
>> arch/m68k/include/asm/raw_io.h:48: warning: "__raw_writel" redefined
      48 | #define __raw_writel(val,addr) out_be32((addr),(val))
         | 
   arch/m68k/include/asm/io_no.h:25: note: this is the location of the previous definition
      25 | #define __raw_writel(b, addr) (void)((*(__force volatile u32 *) (addr)) = (b))
         | 

vim +/__raw_readb +39 arch/m68k/include/asm/raw_io.h

^1da177e4c3f41 include/asm-m68k/raw_io.h Linus Torvalds 2005-04-16  35  
^1da177e4c3f41 include/asm-m68k/raw_io.h Linus Torvalds 2005-04-16  36  #define raw_inb in_8
^1da177e4c3f41 include/asm-m68k/raw_io.h Linus Torvalds 2005-04-16  37  #define raw_inw in_be16
^1da177e4c3f41 include/asm-m68k/raw_io.h Linus Torvalds 2005-04-16  38  #define raw_inl in_be32
f9569e1d154079 include/asm-m68k/raw_io.h Al Viro        2007-07-20 @39  #define __raw_readb in_8
f9569e1d154079 include/asm-m68k/raw_io.h Al Viro        2007-07-20 @40  #define __raw_readw in_be16
f9569e1d154079 include/asm-m68k/raw_io.h Al Viro        2007-07-20 @41  #define __raw_readl in_be32
^1da177e4c3f41 include/asm-m68k/raw_io.h Linus Torvalds 2005-04-16  42  
^1da177e4c3f41 include/asm-m68k/raw_io.h Linus Torvalds 2005-04-16  43  #define raw_outb(val,port) out_8((port),(val))
^1da177e4c3f41 include/asm-m68k/raw_io.h Linus Torvalds 2005-04-16  44  #define raw_outw(val,port) out_be16((port),(val))
^1da177e4c3f41 include/asm-m68k/raw_io.h Linus Torvalds 2005-04-16  45  #define raw_outl(val,port) out_be32((port),(val))
f9569e1d154079 include/asm-m68k/raw_io.h Al Viro        2007-07-20 @46  #define __raw_writeb(val,addr) out_8((addr),(val))
f9569e1d154079 include/asm-m68k/raw_io.h Al Viro        2007-07-20 @47  #define __raw_writew(val,addr) out_be16((addr),(val))
f9569e1d154079 include/asm-m68k/raw_io.h Al Viro        2007-07-20 @48  #define __raw_writel(val,addr) out_be32((addr),(val))

^1da177e4c3f41 include/asm-m68k/raw_io.h Linus Torvalds 2005-04-16 49

:::::: The code at line 39 was first introduced by commit
:::::: f9569e1d1540791f664aeb935b1ec11b6e56507c m68k iomem (based on Geert's tree + memcpy_... stuff)

:::::: TO: Al Viro <[email protected]>
:::::: CC: Linus Torvalds <[email protected]>

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#1 lore raw

See https://lore.kernel.org/lkml/[email protected]/T/#u for a possible fix.

Am 07.01.25 um 09:57 schrieb kernel test robot:

Quoted 94 lines
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fbfd64d25c7af3b8695201ebc85efe90be28c5a3
commit: 7283f862bd991c8657e9bf1c02db772fcf018f13 drm: Implement DRM aperture helpers under video/
date:   2 years, 6 months ago
config: m68k-randconfig-m031-20211009 (https://download.01.org/0day-ci/archive/20250107/[email protected]/config)
compiler: m68k-linux-gcc (GCC) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250107/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

In file included from arch/m68k/include/asm/vga.h:12,
from include/video/vga.h:22, from include/linux/vgaarb.h:34, from drivers/video/aperture.c:12:

Quoted 1 line
Quoted 1 line

arch/m68k/include/asm/raw_io.h:39: warning: "__raw_readb" redefined

       39 | #define __raw_readb in_8
          |
    In file included from arch/m68k/include/asm/io.h:6,
                     from include/linux/io.h:13,
                     from include/linux/irq.h:20,
                     from include/asm-generic/hardirq.h:17,
                     from ./arch/m68k/include/generated/asm/hardirq.h:1,
                     from include/linux/hardirq.h:11,
                     from include/linux/interrupt.h:11,
                     from include/linux/trace_recursion.h:5,
                     from include/linux/ftrace.h:10,
                     from include/linux/kprobes.h:28,
                     from include/linux/kgdb.h:19,
                     from include/linux/fb.h:6,
                     from drivers/video/aperture.c:5:
    arch/m68k/include/asm/io_no.h:16: note: this is the location of the previous definition
       16 | #define __raw_readb(addr) \
          |
Quoted 1 line
Quoted 1 line

arch/m68k/include/asm/raw_io.h:40: warning: "__raw_readw" redefined

       40 | #define __raw_readw in_be16
          |
    arch/m68k/include/asm/io_no.h:18: note: this is the location of the previous definition
       18 | #define __raw_readw(addr) \
          |
Quoted 1 line
Quoted 1 line

arch/m68k/include/asm/raw_io.h:41: warning: "__raw_readl" redefined

       41 | #define __raw_readl in_be32
          |
    arch/m68k/include/asm/io_no.h:20: note: this is the location of the previous definition
       20 | #define __raw_readl(addr) \
          |
Quoted 1 line
Quoted 1 line

arch/m68k/include/asm/raw_io.h:46: warning: "__raw_writeb" redefined

       46 | #define __raw_writeb(val,addr) out_8((addr),(val))
          |
    arch/m68k/include/asm/io_no.h:23: note: this is the location of the previous definition
       23 | #define __raw_writeb(b, addr) (void)((*(__force volatile u8 *) (addr)) = (b))
          |
Quoted 1 line
Quoted 1 line

arch/m68k/include/asm/raw_io.h:47: warning: "__raw_writew" redefined

       47 | #define __raw_writew(val,addr) out_be16((addr),(val))
          |
    arch/m68k/include/asm/io_no.h:24: note: this is the location of the previous definition
       24 | #define __raw_writew(b, addr) (void)((*(__force volatile u16 *) (addr)) = (b))
          |
Quoted 1 line
Quoted 1 line

arch/m68k/include/asm/raw_io.h:48: warning: "__raw_writel" redefined

       48 | #define __raw_writel(val,addr) out_be32((addr),(val))
          |
    arch/m68k/include/asm/io_no.h:25: note: this is the location of the previous definition
       25 | #define __raw_writel(b, addr) (void)((*(__force volatile u32 *) (addr)) = (b))
          |

vim +/__raw_readb +39 arch/m68k/include/asm/raw_io.h

^1da177e4c3f41 include/asm-m68k/raw_io.h Linus Torvalds 2005-04-16  35
^1da177e4c3f41 include/asm-m68k/raw_io.h Linus Torvalds 2005-04-16  36  #define raw_inb in_8
^1da177e4c3f41 include/asm-m68k/raw_io.h Linus Torvalds 2005-04-16  37  #define raw_inw in_be16
^1da177e4c3f41 include/asm-m68k/raw_io.h Linus Torvalds 2005-04-16  38  #define raw_inl in_be32
f9569e1d154079 include/asm-m68k/raw_io.h Al Viro        2007-07-20 @39  #define __raw_readb in_8
f9569e1d154079 include/asm-m68k/raw_io.h Al Viro        2007-07-20 @40  #define __raw_readw in_be16
f9569e1d154079 include/asm-m68k/raw_io.h Al Viro        2007-07-20 @41  #define __raw_readl in_be32
^1da177e4c3f41 include/asm-m68k/raw_io.h Linus Torvalds 2005-04-16  42
^1da177e4c3f41 include/asm-m68k/raw_io.h Linus Torvalds 2005-04-16  43  #define raw_outb(val,port) out_8((port),(val))
^1da177e4c3f41 include/asm-m68k/raw_io.h Linus Torvalds 2005-04-16  44  #define raw_outw(val,port) out_be16((port),(val))
^1da177e4c3f41 include/asm-m68k/raw_io.h Linus Torvalds 2005-04-16  45  #define raw_outl(val,port) out_be32((port),(val))
f9569e1d154079 include/asm-m68k/raw_io.h Al Viro        2007-07-20 @46  #define __raw_writeb(val,addr) out_8((addr),(val))
f9569e1d154079 include/asm-m68k/raw_io.h Al Viro        2007-07-20 @47  #define __raw_writew(val,addr) out_be16((addr),(val))
f9569e1d154079 include/asm-m68k/raw_io.h Al Viro        2007-07-20 @48  #define __raw_writel(val,addr) out_be32((addr),(val))

^1da177e4c3f41 include/asm-m68k/raw_io.h Linus Torvalds 2005-04-16 49

:::::: The code at line 39 was first introduced by commit
:::::: f9569e1d1540791f664aeb935b1ec11b6e56507c m68k iomem (based on Geert's tree + memcpy_... stuff)

:::::: TO: Al Viro <[email protected]>
:::::: CC: Linus Torvalds <[email protected]>

Signature · 7 lines
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)