Skip to content
  • Fabio Estevam's avatar
    17621758
    media: fsl-viu: Do not redefine out_be32()/in_be32() for CONFIG_M68K · 17621758
    Fabio Estevam authored
    
    
    The following W=1 build warning is seen on a m68k:
    
    drivers/media/platform/fsl-viu.c: At top level:
    drivers/media/platform/fsl-viu.c:36: warning: "out_be32" redefined
       36 | #define out_be32(v, a) iowrite32be(a, (void __iomem *)v)
          |
    In file included from ./arch/m68k/include/asm/io_mm.h:25,
                     from ./arch/m68k/include/asm/io.h:8,
                     from ./include/linux/io.h:13,
                     from ./include/linux/irq.h:20,
                     from ./include/asm-generic/hardirq.h:13,
                     from ./arch/m68k/include/generated/asm/hardirq.h:1,
                     from ./include/linux/hardirq.h:9,
                     from ./include/linux/interrupt.h:11,
                     from drivers/media/platform/fsl-viu.c:17:
    ./arch/m68k/include/asm/raw_io.h:32: note: this is the location of the previous definition
       32 | #define out_be32(addr,l) (void)((*(__force volatile u32 *) (addr)) = (l))
    
    Avoid the out_be32() and in_be32() redefinitions when building for CONFIG_M68K
    in the same way we currently do for CONFIG_PPC and CONFIG_MICROBLAZE.
    
    Reported-by: default avatarkernel test robot <lkp@intel.com>
    Signed-off-by: default avatarFabio Estevam <festevam@gmail.com>
    Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
    17621758
    media: fsl-viu: Do not redefine out_be32()/in_be32() for CONFIG_M68K
    Fabio Estevam authored
    
    
    The following W=1 build warning is seen on a m68k:
    
    drivers/media/platform/fsl-viu.c: At top level:
    drivers/media/platform/fsl-viu.c:36: warning: "out_be32" redefined
       36 | #define out_be32(v, a) iowrite32be(a, (void __iomem *)v)
          |
    In file included from ./arch/m68k/include/asm/io_mm.h:25,
                     from ./arch/m68k/include/asm/io.h:8,
                     from ./include/linux/io.h:13,
                     from ./include/linux/irq.h:20,
                     from ./include/asm-generic/hardirq.h:13,
                     from ./arch/m68k/include/generated/asm/hardirq.h:1,
                     from ./include/linux/hardirq.h:9,
                     from ./include/linux/interrupt.h:11,
                     from drivers/media/platform/fsl-viu.c:17:
    ./arch/m68k/include/asm/raw_io.h:32: note: this is the location of the previous definition
       32 | #define out_be32(addr,l) (void)((*(__force volatile u32 *) (addr)) = (l))
    
    Avoid the out_be32() and in_be32() redefinitions when building for CONFIG_M68K
    in the same way we currently do for CONFIG_PPC and CONFIG_MICROBLAZE.
    
    Reported-by: default avatarkernel test robot <lkp@intel.com>
    Signed-off-by: default avatarFabio Estevam <festevam@gmail.com>
    Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Loading