Re: ld.lld: error: undefined symbol: devm_ti_sci_get_handle

From: Philipp Zabel
Date: Tue Jan 03 2023 - 05:54:34 EST


On Do, 2022-12-22 at 16:40 -0800, Randy Dunlap wrote:
>
> On 12/22/22 06:45, kernel test robot wrote:
> > Hi Philipp,
> >
> > FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
> >
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head: 9d2f6060fe4c3b49d0cdc1dce1c99296f33379c8
> > commit: a6af504184c981efd253f986e6fc54db57b1d39f reset: ti-sci: Allow building under COMPILE_TEST
> > date: 8 months ago
> > config: arm-randconfig-r046-20221222
> > compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 98b13979fb05f3ed288a900deb843e7b27589e58)
> > 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 arm cross compiling tool for clang build
> >         # apt-get install binutils-arm-linux-gnueabi
> >         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a6af504184c981efd253f986e6fc54db57b1d39f
> >         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> >         git fetch --no-tags linus master
> >         git checkout a6af504184c981efd253f986e6fc54db57b1d39f
> >         # 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=arm olddefconfig
> >         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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>
> >
> > All errors (new ones prefixed by >>):
> >
> > > > ld.lld: error: undefined symbol: devm_ti_sci_get_handle
> >    >>> referenced by reset-ti-sci.c:229 (drivers/reset/reset-ti-sci.c:229)
> >    >>> reset/reset-ti-sci.o:(ti_sci_reset_probe) in archive drivers/built-in.a
>
> Two (2) patches have been posted for this build error (in chronological order):
>
> 2022-10-29:
>   https://lore.kernel.org/lkml/20221030055636.3139-1-rdunlap@xxxxxxxxxxxxx/
> 2022-12-15:
>   https://lore.kernel.org/all/20221215170036.2308972-1-arnd@xxxxxxxxxx/
>
> Can someone apply one of them or at least comment on them?
> Philipp?

Sorry for the delay, I've applied your patch and will send a pull
request shortly.

regards
Philipp