All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/tty/serial/8250/8250_dfl.c:137:1: warning: the frame size of 1040 bytes is larger than 1024 bytes
@ 2026-09-26  2:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-26  2:12 UTC (permalink / raw)
  To: John Ogness; +Cc: oe-kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   6812ce4e4379ffc99c52401ec28f0d7ffbc36206
commit: d3539347022ad4eeb9dbd29c50bfca17b9d8a146 serial: 8250: Switch to nbcon console, take 2
date:   8 weeks ago
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20260926/202609260435.D0DdZXo2-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260926/202609260435.D0DdZXo2-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
| Fixes: d3539347022a ("serial: 8250: Switch to nbcon console, take 2")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609260435.D0DdZXo2-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/tty/serial/8250/8250_dfl.c: In function 'dfl_uart_probe':
>> drivers/tty/serial/8250/8250_dfl.c:137:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=]
     137 | }
         | ^
--
   drivers/tty/serial/8250/8250_of.c: In function 'of_platform_serial_probe':
>> drivers/tty/serial/8250/8250_of.c:284:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=]
     284 | }
         | ^


vim +137 drivers/tty/serial/8250/8250_dfl.c

e34a79d0b320ea Matthew Gerlach 2023-01-15  107  
e34a79d0b320ea Matthew Gerlach 2023-01-15  108  static int dfl_uart_probe(struct dfl_device *dfl_dev)
e34a79d0b320ea Matthew Gerlach 2023-01-15  109  {
e34a79d0b320ea Matthew Gerlach 2023-01-15  110  	struct device *dev = &dfl_dev->dev;
e34a79d0b320ea Matthew Gerlach 2023-01-15  111  	struct uart_8250_port uart = { };
e34a79d0b320ea Matthew Gerlach 2023-01-15  112  	struct dfl_uart *dfluart;
e34a79d0b320ea Matthew Gerlach 2023-01-15  113  	int ret;
e34a79d0b320ea Matthew Gerlach 2023-01-15  114  
e34a79d0b320ea Matthew Gerlach 2023-01-15  115  	uart.port.flags = UPF_IOREMAP;
e34a79d0b320ea Matthew Gerlach 2023-01-15  116  	uart.port.mapbase = dfl_dev->mmio_res.start;
e34a79d0b320ea Matthew Gerlach 2023-01-15  117  	uart.port.mapsize = resource_size(&dfl_dev->mmio_res);
e34a79d0b320ea Matthew Gerlach 2023-01-15  118  
e34a79d0b320ea Matthew Gerlach 2023-01-15  119  	ret = dfl_uart_get_params(dfl_dev, &uart);
e34a79d0b320ea Matthew Gerlach 2023-01-15  120  	if (ret < 0)
e34a79d0b320ea Matthew Gerlach 2023-01-15  121  		return dev_err_probe(dev, ret, "failed uart feature walk\n");
e34a79d0b320ea Matthew Gerlach 2023-01-15  122  
e34a79d0b320ea Matthew Gerlach 2023-01-15  123  	if (dfl_dev->num_irqs == 1)
e34a79d0b320ea Matthew Gerlach 2023-01-15  124  		uart.port.irq = dfl_dev->irqs[0];
e34a79d0b320ea Matthew Gerlach 2023-01-15  125  
e34a79d0b320ea Matthew Gerlach 2023-01-15  126  	dfluart = devm_kzalloc(dev, sizeof(*dfluart), GFP_KERNEL);
e34a79d0b320ea Matthew Gerlach 2023-01-15  127  	if (!dfluart)
e34a79d0b320ea Matthew Gerlach 2023-01-15  128  		return -ENOMEM;
e34a79d0b320ea Matthew Gerlach 2023-01-15  129  
e34a79d0b320ea Matthew Gerlach 2023-01-15  130  	dfluart->line = serial8250_register_8250_port(&uart);
e34a79d0b320ea Matthew Gerlach 2023-01-15  131  	if (dfluart->line < 0)
e34a79d0b320ea Matthew Gerlach 2023-01-15  132  		return dev_err_probe(dev, dfluart->line, "unable to register 8250 port.\n");
e34a79d0b320ea Matthew Gerlach 2023-01-15  133  
e34a79d0b320ea Matthew Gerlach 2023-01-15  134  	dev_set_drvdata(dev, dfluart);
e34a79d0b320ea Matthew Gerlach 2023-01-15  135  
e34a79d0b320ea Matthew Gerlach 2023-01-15  136  	return 0;
e34a79d0b320ea Matthew Gerlach 2023-01-15 @137  }
e34a79d0b320ea Matthew Gerlach 2023-01-15  138  

:::::: The code at line 137 was first introduced by commit
:::::: e34a79d0b320ea8248e1ee3482eb5c388a27d303 tty: serial: 8250: add DFL bus driver for Altera 16550.

:::::: TO: Matthew Gerlach <matthew.gerlach@linux.intel.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:[~2026-09-26  2:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-26  2:12 drivers/tty/serial/8250/8250_dfl.c:137:1: warning: the frame size of 1040 bytes is larger than 1024 bytes 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.