[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202511231448.HFyKXID8-lkp@intel.com>
Date: Sun, 23 Nov 2025 14:55:11 +0800
From: kernel test robot <lkp@...el.com>
To: Caleb James DeLisle <cjd@...ns.fr>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Subject: drivers/tty/serial/8250/8250_core.c:316:47: error: use of undeclared
identifier 'CONFIG_SERIAL_8250_NR_UARTS'
Hi Caleb,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d13f3ac64efb868d09cb2726b1e84929afe90235
commit: 79ee1d20e37cd553cc961962fca8107e69a0c293 mips: econet: Fix incorrect Kconfig dependencies
date: 6 months ago
config: mips-randconfig-r134-20251123 (https://download.01.org/0day-ci/archive/20251123/202511231448.HFyKXID8-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251123/202511231448.HFyKXID8-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511231448.HFyKXID8-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/tty/serial/8250/8250_core.c:316:47: error: use of undeclared identifier 'CONFIG_SERIAL_8250_NR_UARTS'
316 | static struct uart_8250_port serial8250_ports[UART_NR];
| ^
drivers/tty/serial/8250/8250.h:97:17: note: expanded from macro 'UART_NR'
97 | #define UART_NR CONFIG_SERIAL_8250_NR_UARTS
| ^
drivers/tty/serial/8250/8250_core.c:345:15: error: use of undeclared identifier 'CONFIG_SERIAL_8250_NR_UARTS'
345 | if (index >= UART_NR)
| ^
drivers/tty/serial/8250/8250.h:97:17: note: expanded from macro 'UART_NR'
97 | #define UART_NR CONFIG_SERIAL_8250_NR_UARTS
| ^
2 errors generated.
--
>> drivers/tty/serial/8250/8250_platform.c:36:25: error: use of undeclared identifier 'CONFIG_SERIAL_8250_RUNTIME_UARTS'
36 | unsigned int nr_uarts = CONFIG_SERIAL_8250_RUNTIME_UARTS;
| ^
>> drivers/tty/serial/8250/8250_platform.c:64:17: error: use of undeclared identifier 'CONFIG_SERIAL_8250_NR_UARTS'
64 | if (nr_uarts > UART_NR)
| ^
drivers/tty/serial/8250/8250.h:97:17: note: expanded from macro 'UART_NR'
97 | #define UART_NR CONFIG_SERIAL_8250_NR_UARTS
| ^
drivers/tty/serial/8250/8250_platform.c:65:14: error: use of undeclared identifier 'CONFIG_SERIAL_8250_NR_UARTS'
65 | nr_uarts = UART_NR;
| ^
drivers/tty/serial/8250/8250.h:97:17: note: expanded from macro 'UART_NR'
97 | #define UART_NR CONFIG_SERIAL_8250_NR_UARTS
| ^
drivers/tty/serial/8250/8250_platform.c:247:18: error: use of undeclared identifier 'CONFIG_SERIAL_8250_NR_UARTS'
247 | for (i = 0; i < UART_NR; i++) {
| ^
drivers/tty/serial/8250/8250.h:97:17: note: expanded from macro 'UART_NR'
97 | #define UART_NR CONFIG_SERIAL_8250_NR_UARTS
| ^
drivers/tty/serial/8250/8250_platform.c:261:18: error: use of undeclared identifier 'CONFIG_SERIAL_8250_NR_UARTS'
261 | for (i = 0; i < UART_NR; i++) {
| ^
drivers/tty/serial/8250/8250.h:97:17: note: expanded from macro 'UART_NR'
97 | #define UART_NR CONFIG_SERIAL_8250_NR_UARTS
| ^
drivers/tty/serial/8250/8250_platform.c:309:22: error: use of undeclared identifier 'CONFIG_SERIAL_8250_NR_UARTS'
309 | serial8250_reg.nr = UART_NR;
| ^
drivers/tty/serial/8250/8250.h:97:17: note: expanded from macro 'UART_NR'
97 | #define UART_NR CONFIG_SERIAL_8250_NR_UARTS
| ^
6 errors generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SERIAL_8250
Depends on [n]: TTY [=n] && HAS_IOMEM [=y] && !S390
Selected by [y]:
- ECONET [=y]
WARNING: unmet direct dependencies detected for SERIAL_OF_PLATFORM
Depends on [n]: TTY [=n] && HAS_IOMEM [=y] && SERIAL_8250 [=y] && OF [=y]
Selected by [y]:
- ECONET [=y]
vim +/CONFIG_SERIAL_8250_NR_UARTS +316 drivers/tty/serial/8250/8250_core.c
a4416cd1ac7b48 drivers/tty/serial/8250/8250_core.c Peter Hurley 2015-02-24 315
^1da177e4c3f41 drivers/serial/8250.c Linus Torvalds 2005-04-16 @316 static struct uart_8250_port serial8250_ports[UART_NR];
^1da177e4c3f41 drivers/serial/8250.c Linus Torvalds 2005-04-16 317
:::::: The code at line 316 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@...970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists