Re: [PATCH v7 11/12] tty: serial: Add Nuvoton ma35d1 serial driver support

From: kernel test robot
Date: Tue Apr 18 2023 - 23:44:45 EST


Hi Jacky,

kernel test robot noticed the following build warnings:

[auto build test WARNING on robh/for-next]
[also build test WARNING on clk/clk-next linus/master pza/reset/next v6.3-rc7]
[cannot apply to pza/imx-drm/next next-20230418]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Jacky-Huang/arm64-Kconfig-platforms-Add-config-for-Nuvoton-MA35-platform/20230412-134123
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link: https://lore.kernel.org/r/20230412053824.106-12-ychuang570808%40gmail.com
patch subject: [PATCH v7 11/12] tty: serial: Add Nuvoton ma35d1 serial driver support
config: csky-randconfig-c041-20230419 (https://download.01.org/0day-ci/archive/20230419/202304191134.r0D17Yjq-lkp@xxxxxxxxx/config)
compiler: csky-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/intel-lab-lkp/linux/commit/7918adf6941fa4fe48d57dffbcc09eee92b88e26
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Jacky-Huang/arm64-Kconfig-platforms-Add-config-for-Nuvoton-MA35-platform/20230412-134123
git checkout 7918adf6941fa4fe48d57dffbcc09eee92b88e26
# 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=csky olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=csky SHELL=/bin/bash drivers/tty/serial/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Link: https://lore.kernel.org/oe-kbuild-all/202304191134.r0D17Yjq-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/tty/serial/ma35d1_serial.c:151:64: warning: excess elements in struct initializer
151 | static struct uart_ma35d1_port ma35d1serial_ports[UART_NR] = { 0 };
| ^
drivers/tty/serial/ma35d1_serial.c:151:64: note: (near initialization for 'ma35d1serial_ports[0].port.lock.<anonymous>.rlock.raw_lock')
drivers/tty/serial/ma35d1_serial.c:150:28: warning: 'ma35d1serial_uart_nodes' defined but not used [-Wunused-variable]
150 | static struct device_node *ma35d1serial_uart_nodes[UART_NR];
| ^~~~~~~~~~~~~~~~~~~~~~~


vim +151 drivers/tty/serial/ma35d1_serial.c

149
150 static struct device_node *ma35d1serial_uart_nodes[UART_NR];
> 151 static struct uart_ma35d1_port ma35d1serial_ports[UART_NR] = { 0 };
152

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