Re: [PATCH 10/11] tty: Add NVIDIA LSTP UART driver
From: kernel test robot
Date: Wed Oct 14 2026 - 21:27:34 EST
Hi Adrian,
kernel test robot noticed the following build errors:
[auto build test ERROR on bbf6b99a57b2479bf51c3c8ad0946f4b8c33ed69]
url: https://github.com/intel-lab-lkp/linux/commits/Adrian-Ambrozewicz/dt-bindings-gpio-Add-NVIDIA-LSTP-GPIO/20261012-203559
base: bbf6b99a57b2479bf51c3c8ad0946f4b8c33ed69
patch link: https://lore.kernel.org/r/20261012-lstp-usb-adapter-v1-10-aambrozewicz%40nvidia.com
patch subject: [PATCH 10/11] tty: Add NVIDIA LSTP UART driver
config: sparc64-allmodconfig (https://download.01.org/0day-ci/archive/20261015/202610150927.WhzTb6WS-lkp@xxxxxxxxx/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261015/202610150927.WhzTb6WS-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
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610150927.WhzTb6WS-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
>> drivers/tty/lstp_tty.c:167:60: error: use of undeclared identifier 'B2500000'
167 | { 1500000, B1500000 }, { 2000000, B2000000 }, { 2500000, B2500000 },
| ^
>> drivers/tty/lstp_tty.c:168:14: error: use of undeclared identifier 'B3000000'
168 | { 3000000, B3000000 }, { 3500000, B3500000 }, { 4000000, B4000000 },
| ^
>> drivers/tty/lstp_tty.c:168:37: error: use of undeclared identifier 'B3500000'
168 | { 3000000, B3000000 }, { 3500000, B3500000 }, { 4000000, B4000000 },
| ^
>> drivers/tty/lstp_tty.c:168:60: error: use of undeclared identifier 'B4000000'
168 | { 3000000, B3000000 }, { 3500000, B3500000 }, { 4000000, B4000000 },
| ^
>> drivers/tty/lstp_tty.c:171:25: error: invalid application of 'sizeof' to an incomplete type 'const struct (unnamed struct at drivers/tty/lstp_tty.c:155:15)[]'
171 | for (size_t i = 0; i < ARRAY_SIZE(map); i++)
| ^~~~~~~~~~~~~~~
include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~
5 errors generated.
vim +/B2500000 +167 drivers/tty/lstp_tty.c
151
152 /* clang-format off */
153 static speed_t lstp_baud_to_speed(u32 baud)
154 {
155 static const struct {
156 u32 baud;
157 speed_t speed;
158 } map[] = {
159 { 50, B50 }, { 75, B75 }, { 110, B110 },
160 { 134, B134 }, { 150, B150 }, { 200, B200 },
161 { 300, B300 }, { 600, B600 }, { 1200, B1200 },
162 { 1800, B1800 }, { 2400, B2400 }, { 4800, B4800 },
163 { 9600, B9600 }, { 19200, B19200 }, { 38400, B38400 },
164 { 57600, B57600 }, { 115200, B115200 }, { 230400, B230400 },
165 { 460800, B460800 }, { 500000, B500000 }, { 576000, B576000 },
166 { 921600, B921600 }, { 1000000, B1000000 }, { 1152000, B1152000 },
> 167 { 1500000, B1500000 }, { 2000000, B2000000 }, { 2500000, B2500000 },
> 168 { 3000000, B3000000 }, { 3500000, B3500000 }, { 4000000, B4000000 },
169 };
170
> 171 for (size_t i = 0; i < ARRAY_SIZE(map); i++)
172 if (map[i].baud == baud)
173 return map[i].speed;
174
175 return B0;
176 }
177
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki