2022-12-22 15:08:13

by kernel test robot

[permalink] [raw]
Subject: ld.lld: error: undefined symbol: devm_ti_sci_get_handle

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 <[email protected]>

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

--
0-DAY CI Kernel Test Service
https://01.org/lkp


Attachments:
(No filename) (1.84 kB)
config (166.32 kB)
Download all attachments

2022-12-23 00:58:28

by Randy Dunlap

[permalink] [raw]
Subject: Re: ld.lld: error: undefined symbol: devm_ti_sci_get_handle



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 <[email protected]>
>
> 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/[email protected]/
2022-12-15:
https://lore.kernel.org/all/[email protected]/

Can someone apply one of them or at least comment on them?
Philipp?

thanks.
--
~Randy

2023-01-03 11:21:39

by Philipp Zabel

[permalink] [raw]
Subject: Re: ld.lld: error: undefined symbol: devm_ti_sci_get_handle

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 <[email protected]>
> >
> > 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/[email protected]/
> 2022-12-15:
>   https://lore.kernel.org/all/[email protected]/
>
> 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