Messages in this thread | | | Date | Wed, 7 Sep 2022 04:38:54 +0800 | From | kernel test robot <> | Subject | drivers/reset/reset-ti-sci.c:229: undefined reference to `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: 53e99dcff61e1523ec1c3628b2d564ba15d32eb7 commit: a6af504184c981efd253f986e6fc54db57b1d39f reset: ti-sci: Allow building under COMPILE_TEST date: 5 months ago config: arm-randconfig-c042-20220906 (https://download.01.org/0day-ci/archive/20220907/202209070451.QaOZq6Qu-lkp@intel.com/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=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=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@intel.com>
All errors (new ones prefixed by >>):
arm-linux-gnueabi-ld: drivers/reset/reset-ti-sci.o: in function `ti_sci_reset_probe': >> drivers/reset/reset-ti-sci.c:229: undefined reference to `devm_ti_sci_get_handle' pahole: .tmp_vmlinux.btf: No such file or directory .btf.vmlinux.bin.o: file not recognized: file format not recognized
vim +229 drivers/reset/reset-ti-sci.c
28df169b9afa12 Andrew F. Davis 2017-05-24 217 28df169b9afa12 Andrew F. Davis 2017-05-24 218 static int ti_sci_reset_probe(struct platform_device *pdev) 28df169b9afa12 Andrew F. Davis 2017-05-24 219 { 28df169b9afa12 Andrew F. Davis 2017-05-24 220 struct ti_sci_reset_data *data; 28df169b9afa12 Andrew F. Davis 2017-05-24 221 28df169b9afa12 Andrew F. Davis 2017-05-24 222 if (!pdev->dev.of_node) 28df169b9afa12 Andrew F. Davis 2017-05-24 223 return -ENODEV; 28df169b9afa12 Andrew F. Davis 2017-05-24 224 28df169b9afa12 Andrew F. Davis 2017-05-24 225 data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); 28df169b9afa12 Andrew F. Davis 2017-05-24 226 if (!data) 28df169b9afa12 Andrew F. Davis 2017-05-24 227 return -ENOMEM; 28df169b9afa12 Andrew F. Davis 2017-05-24 228 28df169b9afa12 Andrew F. Davis 2017-05-24 @229 data->sci = devm_ti_sci_get_handle(&pdev->dev); 28df169b9afa12 Andrew F. Davis 2017-05-24 230 if (IS_ERR(data->sci)) 28df169b9afa12 Andrew F. Davis 2017-05-24 231 return PTR_ERR(data->sci); 28df169b9afa12 Andrew F. Davis 2017-05-24 232 28df169b9afa12 Andrew F. Davis 2017-05-24 233 data->rcdev.ops = &ti_sci_reset_ops; 28df169b9afa12 Andrew F. Davis 2017-05-24 234 data->rcdev.owner = THIS_MODULE; 28df169b9afa12 Andrew F. Davis 2017-05-24 235 data->rcdev.of_node = pdev->dev.of_node; 28df169b9afa12 Andrew F. Davis 2017-05-24 236 data->rcdev.of_reset_n_cells = 2; 28df169b9afa12 Andrew F. Davis 2017-05-24 237 data->rcdev.of_xlate = ti_sci_reset_of_xlate; 28df169b9afa12 Andrew F. Davis 2017-05-24 238 data->dev = &pdev->dev; 28df169b9afa12 Andrew F. Davis 2017-05-24 239 idr_init(&data->idr); 28df169b9afa12 Andrew F. Davis 2017-05-24 240 28df169b9afa12 Andrew F. Davis 2017-05-24 241 platform_set_drvdata(pdev, data); 28df169b9afa12 Andrew F. Davis 2017-05-24 242 28df169b9afa12 Andrew F. Davis 2017-05-24 243 return reset_controller_register(&data->rcdev); 28df169b9afa12 Andrew F. Davis 2017-05-24 244 } 28df169b9afa12 Andrew F. Davis 2017-05-24 245
:::::: The code at line 229 was first introduced by commit :::::: 28df169b9afa121153ef2a3ef4ceae72512cde6d reset: Add the TI SCI reset driver
:::::: TO: Andrew F. Davis <afd@ti.com> :::::: CC: Philipp Zabel <p.zabel@pengutronix.de>
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |