public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Caleb James DeLisle <cjd@cjdns.fr>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Subject: drivers/tty/serial/8250/8250_core.c:316:47: error: use of undeclared identifier 'CONFIG_SERIAL_8250_NR_UARTS'
Date: Sun, 23 Nov 2025 14:55:11 +0800	[thread overview]
Message-ID: <202511231448.HFyKXID8-lkp@intel.com> (raw)

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@intel.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@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2025-11-23  6:56 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=202511231448.HFyKXID8-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cjd@cjdns.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=tsbogend@alpha.franken.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox