Re: drivers/tty/serial/sunplus-uart.c:671: undefined reference to `uart_remove_one_port'
From: Randy Dunlap
Date: Thu Aug 18 2022 - 22:37:03 EST
On 8/16/22 01:59, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 568035b01cfb107af8d2e4bd2fb9aea22cf5b868
> commit: 0aa94eea8d955c82014e5368a843da93f1dc58f8 ARM: sunplus: Add initial support for Sunplus SP7021 SoC
> date: 6 weeks ago
> config: arm-randconfig-r012-20220815 (https://download.01.org/0day-ci/archive/20220816/202208161624.f6SCFLBq-lkp@xxxxxxxxx/config)
> compiler: arm-linux-gnueabi-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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0aa94eea8d955c82014e5368a843da93f1dc58f8
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout 0aa94eea8d955c82014e5368a843da93f1dc58f8
> # 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=arm SHELL=/bin/bash
>
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
Fix is here:
https://lore.kernel.org/lkml/20220806025705.7759-1-rdunlap@xxxxxxxxxxxxx/
>
> All errors (new ones prefixed by >>):
[snip]
>
> Kconfig warnings: (for reference only)
> WARNING: unmet direct dependencies detected for SERIAL_SUNPLUS
> Depends on [n]: TTY [=n] && HAS_IOMEM [=y] && (ARCH_SUNPLUS [=y] || COMPILE_TEST [=y])
> Selected by [y]:
> - SOC_SP7021 [=y] && ARCH_SUNPLUS [=y]
> WARNING: unmet direct dependencies detected for SERIAL_SUNPLUS_CONSOLE
> Depends on [n]: TTY [=n] && HAS_IOMEM [=y] && SERIAL_SUNPLUS [=y]
> Selected by [y]:
> - SOC_SP7021 [=y] && ARCH_SUNPLUS [=y]
No, this is the primary problem. The build error happen due to this.
--
~Randy