mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Philipp Zabel <p.zabel@pengutronix.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: drivers/reset/reset-ti-sci.c:229: undefined reference to `devm_ti_sci_get_handle'
Date: Thu, 15 Sep 2022 13:40:47 +0800	[thread overview]
Message-ID: <202209151325.MvDE41LH-lkp@intel.com> (raw)

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:   3245cb65fd91cd514801bf91f5a3066d562f0ac4
commit: a6af504184c981efd253f986e6fc54db57b1d39f reset: ti-sci: Allow building under COMPILE_TEST
date:   5 months ago
config: arm-buildonly-randconfig-r004-20220914 (https://download.01.org/0day-ci/archive/20220915/202209151325.MvDE41LH-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'


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

             reply	other threads:[~2022-09-15  5:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-15  5:40 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-09-06 20:38 kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202209151325.MvDE41LH-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=p.zabel@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®