Hi Noam,

[auto build test WARNING on v4.3-rc4 -- if it's inappropriate base, please 
ignore]

config: x86_64-randconfig-i0-201540 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/tty/serial/8250/8250_dw.c: In function '_dw8250_serial_in32be':
>> drivers/tty/serial/8250/8250_dw.c:214:20: warning: passing argument 1 of 
>> 'ioread32be' discards 'const' qualifier from pointer target type 
>> [-Wdiscarded-qualifiers]
     return ioread32be(addr);
                       ^
   In file included from arch/x86/include/asm/io.h:203:0,
                    from include/linux/io.h:25,
                    from drivers/tty/serial/8250/8250_dw.c:17:
   include/asm-generic/iomap.h:32:21: note: expected 'void *' but argument is 
of type 'const void *'
    extern unsigned int ioread32be(void __iomem *);
                        ^

vim +214 drivers/tty/serial/8250/8250_dw.c

   198  }
   199  
   200  static unsigned int dw8250_serial_in32(struct uart_port *p, int offset)
   201  {
   202          unsigned int value = readl(p->membase + (offset << 
p->regshift));
   203  
   204          return dw8250_modify_msr(p, offset, value);
   205  }
   206  
   207  static void _dw8250_serial_out32be(unsigned int value, void __iomem 
*addr)
   208  {
   209          iowrite32be(value, addr);
   210  }
   211  
   212  static unsigned int _dw8250_serial_in32be(const void __iomem *addr)
   213  {
 > 214          return ioread32be(addr);
   215  }
   216  
   217  static void dw8250_serial_out32be(struct uart_port *p, int offset, int 
value)
   218  {
   219          iowrite32be(value, p->membase + (offset << p->regshift));
   220          dw8250_check_LCR(p, offset, value);
   221  }
   222  

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data

Reply via email to