tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing head: 71404f653cf7858fdbb81dd5419a8a4ac4ffa20c commit: 9e8d5470325f25bed7d33f9faaae6d5e4f313650 [36/42] serial: sunplus-uart: Add Sunplus SoC UART Driver config: riscv-randconfig-r025-20220227 (https://download.01.org/0day-ci/archive/20220227/202202271439.QCMkeVQs-lkp@xxxxxxxxx/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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 # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/commit/?id=9e8d5470325f25bed7d33f9faaae6d5e4f313650 git remote add tty https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git git fetch --no-tags tty tty-testing git checkout 9e8d5470325f25bed7d33f9faaae6d5e4f313650 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): >> drivers/tty/serial/sunplus-uart.c:574:12: error: use of undeclared identifier 'sunplus_uart_console'; did you mean 'sunplus_uart_ops'? .cons = &sunplus_uart_console, ^~~~~~~~~~~~~~~~~~~~ sunplus_uart_ops drivers/tty/serial/sunplus-uart.c:479:30: note: 'sunplus_uart_ops' declared here static const struct uart_ops sunplus_uart_ops = { ^ >> drivers/tty/serial/sunplus-uart.c:574:11: error: incompatible pointer types initializing 'struct console *' with an expression of type 'const struct uart_ops *' [-Werror,-Wincompatible-pointer-types] .cons = &sunplus_uart_console, ^~~~~~~~~~~~~~~~~~~~~ 2 errors generated. vim +574 drivers/tty/serial/sunplus-uart.c 566 567 static struct uart_driver sunplus_uart_driver = { 568 .owner = THIS_MODULE, 569 .driver_name = "sunplus_uart", 570 .dev_name = "ttySUP", 571 .major = TTY_MAJOR, 572 .minor = 64, 573 .nr = SUP_UART_NR, > 574 .cons = &sunplus_uart_console, 575 }; 576 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx