All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-lts:pr/59 1/1] drivers/tty/serial/8250/8250_port.c:2054:25: warning: unused variable 'up'
@ 2025-02-20  6:04 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-20  6:04 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: oe-kbuild-all, Pankaj Bharadiya

tree:   https://github.com/intel/linux-intel-lts.git pr/59
head:   19ae9bc73680fd6c1c95edb5b7e2aaa790e7f011
commit: 20d2b572f04e7777c14c00eae743d7a4fd329653 [1/1] serial: 8250_port: Remove calls to runtime PM
config: sparc-randconfig-002-20250218 (https://download.01.org/0day-ci/archive/20250220/202502201313.wKrf30dc-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250220/202502201313.wKrf30dc-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502201313.wKrf30dc-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   drivers/tty/serial/8250/8250_port.c: In function 'serial8250_get_poll_char':
>> drivers/tty/serial/8250/8250_port.c:2054:25: warning: unused variable 'up' [-Wunused-variable]
     struct uart_8250_port *up = up_to_u8250p(port);
                            ^~
--
   arch/sparc/kernel/head_32.o: in function `current_pc':
>> (.head.text+0x2040): relocation truncated to fit: R_SPARC_WDISP22 against `.init.text'
   arch/sparc/kernel/head_32.o: in function `halt_notsup':
   (.head.text+0x2100): relocation truncated to fit: R_SPARC_WDISP22 against `.init.text'
   arch/sparc/kernel/process_32.o:(.fixup+0x4): relocation truncated to fit: R_SPARC_WDISP22 against `.text'
   arch/sparc/kernel/process_32.o:(.fixup+0xc): relocation truncated to fit: R_SPARC_WDISP22 against `.text'
   arch/sparc/kernel/signal_32.o:(.fixup+0x0): relocation truncated to fit: R_SPARC_WDISP22 against `.text'
   arch/sparc/kernel/signal_32.o:(.fixup+0x8): relocation truncated to fit: R_SPARC_WDISP22 against `.text'
   arch/sparc/kernel/signal_32.o:(.fixup+0x10): relocation truncated to fit: R_SPARC_WDISP22 against `.text'
   arch/sparc/kernel/signal_32.o:(.fixup+0x18): relocation truncated to fit: R_SPARC_WDISP22 against `.text'
   arch/sparc/kernel/signal_32.o:(.fixup+0x20): relocation truncated to fit: R_SPARC_WDISP22 against `.text'
   arch/sparc/kernel/signal_32.o:(.fixup+0x28): relocation truncated to fit: R_SPARC_WDISP22 against `.text'
   arch/sparc/kernel/signal_32.o:(.fixup+0x30): additional relocation overflows omitted from the output


vim +/up +2054 drivers/tty/serial/8250/8250_port.c

b6830f6df8914fa Peter Hurley    2015-06-27  2045  
b6830f6df8914fa Peter Hurley    2015-06-27  2046  #ifdef CONFIG_CONSOLE_POLL
b6830f6df8914fa Peter Hurley    2015-06-27  2047  /*
b6830f6df8914fa Peter Hurley    2015-06-27  2048   * Console polling routines for writing and reading from the uart while
b6830f6df8914fa Peter Hurley    2015-06-27  2049   * in an interrupt or debug context.
b6830f6df8914fa Peter Hurley    2015-06-27  2050   */
b6830f6df8914fa Peter Hurley    2015-06-27  2051  
b6830f6df8914fa Peter Hurley    2015-06-27  2052  static int serial8250_get_poll_char(struct uart_port *port)
b6830f6df8914fa Peter Hurley    2015-06-27  2053  {
b6830f6df8914fa Peter Hurley    2015-06-27 @2054  	struct uart_8250_port *up = up_to_u8250p(port);
b6830f6df8914fa Peter Hurley    2015-06-27  2055  	unsigned char lsr;
b6830f6df8914fa Peter Hurley    2015-06-27  2056  
b6830f6df8914fa Peter Hurley    2015-06-27  2057  	lsr = serial_port_in(port, UART_LSR);
20d2b572f04e777 Andy Shevchenko 2016-11-16  2058  	if (!(lsr & UART_LSR_DR))
20d2b572f04e777 Andy Shevchenko 2016-11-16  2059  		return NO_POLL_CHAR;
b6830f6df8914fa Peter Hurley    2015-06-27  2060  
20d2b572f04e777 Andy Shevchenko 2016-11-16  2061  	return serial_port_in(port, UART_RX);
b6830f6df8914fa Peter Hurley    2015-06-27  2062  }
b6830f6df8914fa Peter Hurley    2015-06-27  2063  

:::::: The code at line 2054 was first introduced by commit
:::::: b6830f6df8914faae9561bb245860c21af9b9e9b serial: 8250: Split base port operations from universal driver

:::::: TO: Peter Hurley <peter@hurleysoftware.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-02-20  6:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-20  6:04 [intel-lts:pr/59 1/1] drivers/tty/serial/8250/8250_port.c:2054:25: warning: unused variable 'up' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.