Re: [PATCH 10/11] tty: Add NVIDIA LSTP UART driver

From: kernel test robot

Date: Fri Oct 16 2026 - 03:49:21 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: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20261016/202610160913.yN6dyp5f-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/20261016/202610160913.yN6dyp5f-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/202610160913.yN6dyp5f-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

drivers/tty/lstp_tty.c: In function 'lstp_baud_to_speed':
>> drivers/tty/lstp_tty.c:167:74: error: 'B2500000' undeclared (first use in this function); did you mean 'B1500000'?
167 | { 1500000, B1500000 }, { 2000000, B2000000 }, { 2500000, B2500000 },
| ^~~~~~~~
| B1500000
drivers/tty/lstp_tty.c:167:74: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/tty/lstp_tty.c:168:28: error: 'B3000000' undeclared (first use in this function); did you mean 'B1000000'?
168 | { 3000000, B3000000 }, { 3500000, B3500000 }, { 4000000, B4000000 },
| ^~~~~~~~
| B1000000
>> drivers/tty/lstp_tty.c:168:51: error: 'B3500000' undeclared (first use in this function); did you mean 'B1500000'?
168 | { 3000000, B3000000 }, { 3500000, B3500000 }, { 4000000, B4000000 },
| ^~~~~~~~
| B1500000
>> drivers/tty/lstp_tty.c:168:74: error: 'B4000000' undeclared (first use in this function); did you mean 'B1000000'?
168 | { 3000000, B3000000 }, { 3500000, B3500000 }, { 4000000, B4000000 },
| ^~~~~~~~
| B1000000


vim +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