[tty:tty-testing 3/22] drivers/tty/serial/fsl_lpuart.c:476:15: warning: unused variable 'status'

[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:   b9c8b7fc252cd8e7e629f14bb8a68d54889470da
commit: 2a41bc2a2b0533afca11335ed7e636c62623d7c6 [3/22] tty: serial: fsl_lpuart: add polled console functions
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 2a41bc2a2b0533afca11335ed7e636c62623d7c6
        # save the attached .config to linux build tree
        make.cross ARCH=sparc64 

All warnings (new ones prefixed by >>):

   drivers/tty/serial/fsl_lpuart.c: In function 'lpuart_poll_put_char':
>> drivers/tty/serial/fsl_lpuart.c:476:15: warning: unused variable 'status' [-Wunused-variable]
     unsigned int status;
                  ^~~~~~

vim +/status +476 drivers/tty/serial/fsl_lpuart.c

   460			readb(sport->port.membase + UARTDR);
   461			writeb(UARTSFIFO_RXUF, sport->port.membase + UARTSFIFO);
   462		}
   463	
   464		writeb(0, sport->port.membase + UARTTWFIFO);
   465		writeb(1, sport->port.membase + UARTRWFIFO);
   466	
   467		/* Enable Rx and Tx */
   468		writeb(UARTCR2_RE | UARTCR2_TE, sport->port.membase + UARTCR2);
   469		spin_unlock_irqrestore(&sport->port.lock, flags);
   470	
   471		return 0;
   472	}
   473	
   474	static void lpuart_poll_put_char(struct uart_port *port, unsigned char c)
   475	{
 > 476		unsigned int status;
   477	
   478		/* drain */
   479		while (!(readb(port->membase + UARTSR1) & UARTSR1_TDRE))
   480			barrier();
   481	
   482		writeb(c, port->membase + UARTDR);
   483	}
   484	

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

Attachment: .config.gz
Description: application/gzip


[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