All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: oe-kbuild-all@lists.linux.dev,
	Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
Subject: [intel-lts:pr/59 1/1] drivers/tty/serial/8250/8250_port.c:2054:25: warning: unused variable 'up'
Date: Thu, 20 Feb 2025 14:04:29 +0800	[thread overview]
Message-ID: <202502201313.wKrf30dc-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-02-20  6:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202502201313.wKrf30dc-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pankaj.laxminarayan.bharadiya@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.