Re: [jkirsher-next-queue:master 1/5] ld.lld: error: undefined symbol: qcom_smem_get

From: Christian Marangi
Date: Thu Jun 16 2022 - 17:02:48 EST


On Fri, Jun 17, 2022 at 04:55:55AM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue.git master
> head: 5dcb50c009c9f8ec1cfca6a81a05c0060a5bbf68
> commit: 9ec092d2feb69045dd289845024301fb91c064ee [1/5] net: ethernet: stmmac: add missing sgmii configure for ipq806x
> config: riscv-randconfig-r042-20220616 (https://download.01.org/0day-ci/archive/20220617/202206170405.fqVbBgOE-lkp@xxxxxxxxx/config)
> compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project f0e608de27b3d568000046eebf3712ab542979d6)
> 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/jkirsher/next-queue.git/commit/?id=9ec092d2feb69045dd289845024301fb91c064ee
> git remote add jkirsher-next-queue https://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue.git
> git fetch --no-tags jkirsher-next-queue master
> git checkout 9ec092d2feb69045dd289845024301fb91c064ee
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> 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 where applicable
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> All errors (new ones prefixed by >>):
>
> >> ld.lld: error: undefined symbol: qcom_smem_get
> >>> referenced by socinfo.c
> >>> soc/qcom/socinfo.o:(qcom_socinfo_probe) in archive drivers/built-in.a
> >>> referenced by socinfo.c
> >>> soc/qcom/socinfo.o:(qcom_socinfo_probe) in archive drivers/built-in.a
>
> Kconfig warnings: (for reference only)
> WARNING: unmet direct dependencies detected for QCOM_SOCINFO
> Depends on QCOM_SMEM
> Selected by
> - DWMAC_IPQ806X && NETDEVICES && ETHERNET && NET_VENDOR_STMICRO && STMMAC_ETH && STMMAC_PLATFORM && OF && (ARCH_QCOM || COMPILE_TEST
>
> --
> 0-DAY CI Kernel Test Service
> https://01.org/lkp

Mhhh is patch QCOM_SOCINFO to select QCOM_SMEM instead of depends on it
the correct fix for this?

(btw smem should always be selected for ipq806x as it's used for other
critical stuff like cpufreq speedbin and thermal)

--
Ansuel