[tty:tty-testing 204/226] drivers/tty/serial/uartlite.c:348:21: warning: assignment discards 'const' qualifier from pointer target type

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing
head:   6bd6361a9b1e112d0acd684a1d297d4b37415dd5
commit: ce807d8eea1390f5277c3ce8937b922668e0bb77 [204/226] serial-uartlite: Constify uartlite_be/uartlite_le
config: i386-randconfig-s0-201610 (attached as .config)
reproduce:
        git checkout ce807d8eea1390f5277c3ce8937b922668e0bb77
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/tty/serial/uartlite.c: In function 'ulite_request_port':
>> drivers/tty/serial/uartlite.c:348:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     port->private_data = &uartlite_be;
                        ^
   drivers/tty/serial/uartlite.c:354:22: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
      port->private_data = &uartlite_le;
                         ^

vim +/const +348 drivers/tty/serial/uartlite.c

6d53c3b7 drivers/tty/serial/uartlite.c Michal Simek         2013-02-11  332  
a1080968 drivers/serial/uartlite.c     Grant Likely         2008-11-14  333  	pr_debug("ulite console: port=%p; port->mapbase=%llx\n",
a1080968 drivers/serial/uartlite.c     Grant Likely         2008-11-14  334  		 port, (unsigned long long) port->mapbase);
0e349b0e drivers/serial/uartlite.c     Stephen Neuendorffer 2008-01-09  335  
238b8721 drivers/serial/uartlite.c     Peter Korsgaard      2006-12-06  336  	if (!request_mem_region(port->mapbase, ULITE_REGION, "uartlite")) {
238b8721 drivers/serial/uartlite.c     Peter Korsgaard      2006-12-06  337  		dev_err(port->dev, "Memory region busy\n");
238b8721 drivers/serial/uartlite.c     Peter Korsgaard      2006-12-06  338  		return -EBUSY;
238b8721 drivers/serial/uartlite.c     Peter Korsgaard      2006-12-06  339  	}
238b8721 drivers/serial/uartlite.c     Peter Korsgaard      2006-12-06  340  
238b8721 drivers/serial/uartlite.c     Peter Korsgaard      2006-12-06  341  	port->membase = ioremap(port->mapbase, ULITE_REGION);
238b8721 drivers/serial/uartlite.c     Peter Korsgaard      2006-12-06  342  	if (!port->membase) {
238b8721 drivers/serial/uartlite.c     Peter Korsgaard      2006-12-06  343  		dev_err(port->dev, "Unable to map registers\n");
238b8721 drivers/serial/uartlite.c     Peter Korsgaard      2006-12-06  344  		release_mem_region(port->mapbase, ULITE_REGION);
238b8721 drivers/serial/uartlite.c     Peter Korsgaard      2006-12-06  345  		return -EBUSY;
238b8721 drivers/serial/uartlite.c     Peter Korsgaard      2006-12-06  346  	}
238b8721 drivers/serial/uartlite.c     Peter Korsgaard      2006-12-06  347  
6d53c3b7 drivers/tty/serial/uartlite.c Michal Simek         2013-02-11 @348  	port->private_data = &uartlite_be;
6d53c3b7 drivers/tty/serial/uartlite.c Michal Simek         2013-02-11  349  	ret = uart_in32(ULITE_CONTROL, port);
6d53c3b7 drivers/tty/serial/uartlite.c Michal Simek         2013-02-11  350  	uart_out32(ULITE_CONTROL_RST_TX, ULITE_CONTROL, port);
6d53c3b7 drivers/tty/serial/uartlite.c Michal Simek         2013-02-11  351  	ret = uart_in32(ULITE_STATUS, port);
6d53c3b7 drivers/tty/serial/uartlite.c Michal Simek         2013-02-11  352  	/* Endianess detection */
6d53c3b7 drivers/tty/serial/uartlite.c Michal Simek         2013-02-11  353  	if ((ret & ULITE_STATUS_TXEMPTY) != ULITE_STATUS_TXEMPTY)
6d53c3b7 drivers/tty/serial/uartlite.c Michal Simek         2013-02-11  354  		port->private_data = &uartlite_le;
6d53c3b7 drivers/tty/serial/uartlite.c Michal Simek         2013-02-11  355  
238b8721 drivers/serial/uartlite.c     Peter Korsgaard      2006-12-06  356  	return 0;

:::::: The code at line 348 was first introduced by commit
:::::: 6d53c3b71d32da665dc2742c1e8663741f27d3cd tty: serial: uartlite: Support uartlite on big and little endian systems

:::::: TO: Michal Simek <michal.simek@xxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux