drivers/tty/serial/8250/8250_dfl.c:137:1: warning: the frame size of 1040 bytes is larger than 1024 bytes
From: kernel test robot
Date: Fri Sep 25 2026 - 22:13:25 EST
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@xxxxxxxxx/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@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609260435.D0DdZXo2-lkp@xxxxxxxxx/
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@xxxxxxxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki