[xilinx-xlnx:xlnx_rebase_v5.15_LTS 1018/1265] drivers/staging/uartlite-rs485/uartlite-rs485.c:32:33: error: 'CONFIG_SERIAL_UARTLITE_NR_UARTS' undeclared here (not in a function); did you mean 'CONFIG_SERIAL_UARTLITE_RS485'?
kernel test robot
lkp at intel.com
Tue Aug 9 20:35:42 PDT 2022
Hi Pallav,
FYI, the error/warning still remains.
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS
head: 86e63ba3941dcd378d7626b21ad31e779b40fa73
commit: db2754ae82e1526613a6ab5853d3cceeaed3920b [1018/1265] staging: uartlite-rs485: Initial commit to add drv
config: mips-randconfig-r031-20220810 (https://download.01.org/0day-ci/archive/20220810/202208101135.ajvZkTYp-lkp@intel.com/config)
compiler: mips64el-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/Xilinx/linux-xlnx/commit/db2754ae82e1526613a6ab5853d3cceeaed3920b
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS
git checkout db2754ae82e1526613a6ab5853d3cceeaed3920b
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/staging/uartlite-rs485/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
>> drivers/staging/uartlite-rs485/uartlite-rs485.c:32:33: error: 'CONFIG_SERIAL_UARTLITE_NR_UARTS' undeclared here (not in a function); did you mean 'CONFIG_SERIAL_UARTLITE_RS485'?
32 | #define ULITE_NR_UARTS CONFIG_SERIAL_UARTLITE_NR_UARTS
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/uartlite-rs485/uartlite-rs485.c:116:37: note: in expansion of macro 'ULITE_NR_UARTS'
116 | static struct uart_port ulite_ports[ULITE_NR_UARTS];
| ^~~~~~~~~~~~~~
drivers/staging/uartlite-rs485/uartlite-rs485.c:116:25: warning: 'ulite_ports' defined but not used [-Wunused-variable]
116 | static struct uart_port ulite_ports[ULITE_NR_UARTS];
| ^~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SERIAL_CORE
Depends on [n]: TTY [=n] && HAS_IOMEM [=y]
Selected by [y]:
- SERIAL_UARTLITE_RS485 [=y] && STAGING [=y] && HAS_IOMEM [=y]
vim +32 drivers/staging/uartlite-rs485/uartlite-rs485.c
27
28 #define ULITE_NAME "ttyULR"
29 #define ULITE_DRV_NAME "uartlite_rs485"
30 #define ULITE_MAJOR 205
31 #define ULITE_MINOR 187
> 32 #define ULITE_NR_UARTS CONFIG_SERIAL_UARTLITE_NR_UARTS
33
--
0-DAY CI Kernel Test Service
https://01.org/lkp
More information about the linux-arm-kernel
mailing list