All of lore.kernel.org
 help / color / mirror / Atom feed
* [bcain:bcain/qemu_boot 34/87] drivers/tty/serial/serial_core.c:1939:1: warning: 'optnone' attribute directive ignored
@ 2026-08-23 12:30 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-08-23 12:30 UTC (permalink / raw)
  To: Brian Cain; +Cc: oe-kbuild-all

Hi Brian,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/bcain/linux.git bcain/qemu_boot
head:   844bcfb5bee7bf0e713f61307dc2a4e16963c2f9
commit: 520783c1a795b1b4bd4c87483c2300e9f8e866c6 [34/87] hexagon: work around QEMU uart_port_activate codegen bug
config: parisc-defconfig (https://download.01.org/0day-ci/archive/20260822/202608222156.tLRgZ1JT-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260822/202608222156.tLRgZ1JT-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/202608222156.tLRgZ1JT-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/tty/serial/serial_core.c:1939:1: warning: 'optnone' attribute directive ignored [-Wattributes]
    1939 | {
         | ^


vim +/optnone +1939 drivers/tty/serial/serial_core.c

1c7b13c4886f5c drivers/tty/serial/serial_core.c Jiri Slaby     2011-11-09  1931  
520783c1a795b1 drivers/tty/serial/serial_core.c Brian Cain     2026-01-26  1932  /*
520783c1a795b1 drivers/tty/serial/serial_core.c Brian Cain     2026-01-26  1933   * Work around QEMU hexagon emulation bug: the conditional
520783c1a795b1 drivers/tty/serial/serial_core.c Brian Cain     2026-01-26  1934   * memd + dealloc_return packet generated at -O2 corrupts
520783c1a795b1 drivers/tty/serial/serial_core.c Brian Cain     2026-01-26  1935   * callee-saved registers due to incorrect packet semantics.
520783c1a795b1 drivers/tty/serial/serial_core.c Brian Cain     2026-01-26  1936   */
520783c1a795b1 drivers/tty/serial/serial_core.c Brian Cain     2026-01-26  1937  static int __attribute__((optnone))
520783c1a795b1 drivers/tty/serial/serial_core.c Brian Cain     2026-01-26  1938  uart_port_activate(struct tty_port *port, struct tty_struct *tty)
b3b57646186400 drivers/tty/serial/serial_core.c Rob Herring    2016-08-22 @1939  {
b3b57646186400 drivers/tty/serial/serial_core.c Rob Herring    2016-08-22  1940  	struct uart_state *state = container_of(port, struct uart_state, port);
b3b57646186400 drivers/tty/serial/serial_core.c Rob Herring    2016-08-22  1941  	struct uart_port *uport;
13b18d35909707 drivers/tty/serial/serial_core.c Serge Semin    2019-05-08  1942  	int ret;
b3b57646186400 drivers/tty/serial/serial_core.c Rob Herring    2016-08-22  1943  
4047b37122d1be drivers/tty/serial/serial_core.c Peter Hurley   2016-04-09  1944  	uport = uart_port_check(state);
b3b57646186400 drivers/tty/serial/serial_core.c Rob Herring    2016-08-22  1945  	if (!uport || uport->flags & UPF_DEAD)
b3b57646186400 drivers/tty/serial/serial_core.c Rob Herring    2016-08-22  1946  		return -ENXIO;
^1da177e4c3f41 drivers/serial/serial_core.c     Linus Torvalds 2005-04-16  1947  
^1da177e4c3f41 drivers/serial/serial_core.c     Linus Torvalds 2005-04-16  1948  	/*
^1da177e4c3f41 drivers/serial/serial_core.c     Linus Torvalds 2005-04-16  1949  	 * Start up the serial port.
^1da177e4c3f41 drivers/serial/serial_core.c     Linus Torvalds 2005-04-16  1950  	 */
dcd794c6ed631b drivers/tty/serial/serial_core.c Ilpo Järvinen  2023-01-17  1951  	ret = uart_startup(tty, state, false);
13b18d35909707 drivers/tty/serial/serial_core.c Serge Semin    2019-05-08  1952  	if (ret > 0)
9b5aa54986fc85 drivers/tty/serial/serial_core.c Ilpo Järvinen  2023-01-17  1953  		tty_port_set_active(port, true);
13b18d35909707 drivers/tty/serial/serial_core.c Serge Semin    2019-05-08  1954  
13b18d35909707 drivers/tty/serial/serial_core.c Serge Semin    2019-05-08  1955  	return ret;
^1da177e4c3f41 drivers/serial/serial_core.c     Linus Torvalds 2005-04-16  1956  }
^1da177e4c3f41 drivers/serial/serial_core.c     Linus Torvalds 2005-04-16  1957  

:::::: The code at line 1939 was first introduced by commit
:::::: b3b57646186400d4f54652ab7bbf55f5764d9467 tty: serial_core: convert uart_open to use tty_port_open

:::::: TO: Rob Herring <robh@kernel.org>
:::::: 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] 2+ messages in thread
* [bcain:bcain/qemu_boot 34/87] drivers/tty/serial/serial_core.c:1939:1: warning: 'optnone' attribute directive ignored
@ 2026-08-14 18:13 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-08-14 18:13 UTC (permalink / raw)
  To: Brian Cain; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/bcain/linux.git bcain/qemu_boot
head:   f5debfeae808bae06ccbc26605a5c1404eba2588
commit: 520783c1a795b1b4bd4c87483c2300e9f8e866c6 [34/87] hexagon: work around QEMU uart_port_activate codegen bug
config: x86_64-rhel-9.4-bpf (https://download.01.org/0day-ci/archive/20260814/202608142032.jgN7nmru-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260814/202608142032.jgN7nmru-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/202608142032.jgN7nmru-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/tty/serial/serial_core.c:1939:1: warning: 'optnone' attribute directive ignored [-Wattributes]
    1939 | {
         | ^


vim +/optnone +1939 drivers/tty/serial/serial_core.c

1c7b13c4886f5c drivers/tty/serial/serial_core.c Jiri Slaby     2011-11-09  1931  
520783c1a795b1 drivers/tty/serial/serial_core.c Brian Cain     2026-01-26  1932  /*
520783c1a795b1 drivers/tty/serial/serial_core.c Brian Cain     2026-01-26  1933   * Work around QEMU hexagon emulation bug: the conditional
520783c1a795b1 drivers/tty/serial/serial_core.c Brian Cain     2026-01-26  1934   * memd + dealloc_return packet generated at -O2 corrupts
520783c1a795b1 drivers/tty/serial/serial_core.c Brian Cain     2026-01-26  1935   * callee-saved registers due to incorrect packet semantics.
520783c1a795b1 drivers/tty/serial/serial_core.c Brian Cain     2026-01-26  1936   */
520783c1a795b1 drivers/tty/serial/serial_core.c Brian Cain     2026-01-26  1937  static int __attribute__((optnone))
520783c1a795b1 drivers/tty/serial/serial_core.c Brian Cain     2026-01-26  1938  uart_port_activate(struct tty_port *port, struct tty_struct *tty)
b3b57646186400 drivers/tty/serial/serial_core.c Rob Herring    2016-08-22 @1939  {
b3b57646186400 drivers/tty/serial/serial_core.c Rob Herring    2016-08-22  1940  	struct uart_state *state = container_of(port, struct uart_state, port);
b3b57646186400 drivers/tty/serial/serial_core.c Rob Herring    2016-08-22  1941  	struct uart_port *uport;
13b18d35909707 drivers/tty/serial/serial_core.c Serge Semin    2019-05-08  1942  	int ret;
b3b57646186400 drivers/tty/serial/serial_core.c Rob Herring    2016-08-22  1943  
4047b37122d1be drivers/tty/serial/serial_core.c Peter Hurley   2016-04-09  1944  	uport = uart_port_check(state);
b3b57646186400 drivers/tty/serial/serial_core.c Rob Herring    2016-08-22  1945  	if (!uport || uport->flags & UPF_DEAD)
b3b57646186400 drivers/tty/serial/serial_core.c Rob Herring    2016-08-22  1946  		return -ENXIO;
^1da177e4c3f41 drivers/serial/serial_core.c     Linus Torvalds 2005-04-16  1947  
^1da177e4c3f41 drivers/serial/serial_core.c     Linus Torvalds 2005-04-16  1948  	/*
^1da177e4c3f41 drivers/serial/serial_core.c     Linus Torvalds 2005-04-16  1949  	 * Start up the serial port.
^1da177e4c3f41 drivers/serial/serial_core.c     Linus Torvalds 2005-04-16  1950  	 */
dcd794c6ed631b drivers/tty/serial/serial_core.c Ilpo Järvinen  2023-01-17  1951  	ret = uart_startup(tty, state, false);
13b18d35909707 drivers/tty/serial/serial_core.c Serge Semin    2019-05-08  1952  	if (ret > 0)
9b5aa54986fc85 drivers/tty/serial/serial_core.c Ilpo Järvinen  2023-01-17  1953  		tty_port_set_active(port, true);
13b18d35909707 drivers/tty/serial/serial_core.c Serge Semin    2019-05-08  1954  
13b18d35909707 drivers/tty/serial/serial_core.c Serge Semin    2019-05-08  1955  	return ret;
^1da177e4c3f41 drivers/serial/serial_core.c     Linus Torvalds 2005-04-16  1956  }
^1da177e4c3f41 drivers/serial/serial_core.c     Linus Torvalds 2005-04-16  1957  

:::::: The code at line 1939 was first introduced by commit
:::::: b3b57646186400d4f54652ab7bbf55f5764d9467 tty: serial_core: convert uart_open to use tty_port_open

:::::: TO: Rob Herring <robh@kernel.org>
:::::: 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] 2+ messages in thread

end of thread, other threads:[~2026-08-23 12:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-23 12:30 [bcain:bcain/qemu_boot 34/87] drivers/tty/serial/serial_core.c:1939:1: warning: 'optnone' attribute directive ignored kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-08-14 18:13 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.