2021-07-22 11:25:48

by kernel test robot

[permalink] [raw]
Subject: clk-hi3559a.c:undefined reference to `hisi_reset_exit'

Hi Dongjiu,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 3d5895cd351757f69c9a66fb5fc8cf19f454d773
commit: 6c81966107dc0caa5d2ebedbcebb5f10d865064d clk: hisilicon: Add clock driver for hi3559A SoC
date: 3 weeks ago
config: arm64-randconfig-p001-20210722 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 10.3.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=6c81966107dc0caa5d2ebedbcebb5f10d865064d
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 6c81966107dc0caa5d2ebedbcebb5f10d865064d
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>

All errors (new ones prefixed by >>):

aarch64-linux-ld: Unexpected GOT/PLT entries detected!
aarch64-linux-ld: Unexpected run-time procedure linkages detected!
aarch64-linux-ld: drivers/clk/hisilicon/clk-hi3559a.o: in function `hi3559av100_crg_remove':
>> clk-hi3559a.c:(.text+0x24c): undefined reference to `hisi_reset_exit'
aarch64-linux-ld: drivers/clk/hisilicon/clk-hi3559a.o: in function `hi3559av100_crg_probe':
>> clk-hi3559a.c:(.text+0x2c0): undefined reference to `hisi_reset_init'
>> aarch64-linux-ld: clk-hi3559a.c:(.text+0x318): undefined reference to `hisi_reset_exit'

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]


Attachments:
(No filename) (1.91 kB)
.config.gz (40.42 kB)
Download all attachments

2021-07-22 11:37:54

by Dongjiu Geng

[permalink] [raw]
Subject: Re: clk-hi3559a.c:undefined reference to `hisi_reset_exit'

kernel test robot <[email protected]> 于2021年7月22日周四 下午7:25写道:
>
> Hi Dongjiu,
>
> FYI, the error/warning still remains.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 3d5895cd351757f69c9a66fb5fc8cf19f454d773
> commit: 6c81966107dc0caa5d2ebedbcebb5f10d865064d clk: hisilicon: Add clock driver for hi3559A SoC
> date: 3 weeks ago
> config: arm64-randconfig-p001-20210722 (attached as .config)
> compiler: aarch64-linux-gcc (GCC) 10.3.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=6c81966107dc0caa5d2ebedbcebb5f10d865064d
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout 6c81966107dc0caa5d2ebedbcebb5f10d865064d
> # save the attached .config to linux build tree
> mkdir build_dir
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <[email protected]>
>
> All errors (new ones prefixed by >>):
>
> aarch64-linux-ld: Unexpected GOT/PLT entries detected!
> aarch64-linux-ld: Unexpected run-time procedure linkages detected!
> aarch64-linux-ld: drivers/clk/hisilicon/clk-hi3559a.o: in function `hi3559av100_crg_remove':
> >> clk-hi3559a.c:(.text+0x24c): undefined reference to `hisi_reset_exit'
> aarch64-linux-ld: drivers/clk/hisilicon/clk-hi3559a.o: in function `hi3559av100_crg_probe':
> >> clk-hi3559a.c:(.text+0x2c0): undefined reference to `hisi_reset_init'
> >> aarch64-linux-ld: clk-hi3559a.c:(.text+0x318): undefined reference to `hisi_reset_exit'


Hi Stephen,

Can we apply below patch to fix this issues today? Thanks a lot.
https://lore.kernel.org/lkml/[email protected]/

>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/[email protected]