From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88E0EECAAD3 for ; Thu, 15 Sep 2022 05:41:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229709AbiIOFli (ORCPT ); Thu, 15 Sep 2022 01:41:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbiIOFlg (ORCPT ); Thu, 15 Sep 2022 01:41:36 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 411F47CB4D for ; Wed, 14 Sep 2022 22:41:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663220495; x=1694756495; h=date:from:to:cc:subject:message-id:mime-version; bh=z5WtDjDuYhTg3gF+Ikc62wOFipSSQ6UZbUEy6e0JmUY=; b=BDYbevSLCosCj4i/zmvI7jAUhqE22Lhbs7BdXBvmoeZz+z3wu8LDlhvw b+bCD1ucfn03CPUGkB/C15bSsL/qsHt8XHY9SxVGp44Dte5AtsZPR9w5/ JUZBK8LTklrcPPUuUt9TzlSetr7eUPLNxxYyK03CYS4ECCtrrbIlrid8C Bs9Msmz+slus+4lULgOkMEbBn0/y+W2puQkzYoOMAoN0OFFOLL7aV36ta bjFDwSPHEp2iNsi4DDMSR1drHIxFMGns78VXVJhSsSY/FED52uWGwHrLS pnAhzF6X4/Z6nsjnsCQImwEXhye18NRN5+KBRD+EqLzj1b7Zf2yk5Au1J A==; X-IronPort-AV: E=McAfee;i="6500,9779,10470"; a="360358007" X-IronPort-AV: E=Sophos;i="5.93,317,1654585200"; d="scan'208";a="360358007" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2022 22:41:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,317,1654585200"; d="scan'208";a="617140700" Received: from lkp-server02.sh.intel.com (HELO 41300c7200ea) ([10.239.97.151]) by orsmga002.jf.intel.com with ESMTP; 14 Sep 2022 22:41:33 -0700 Received: from kbuild by 41300c7200ea with local (Exim 4.96) (envelope-from ) id 1oYhcz-00002J-0C; Thu, 15 Sep 2022 05:41:33 +0000 Date: Thu, 15 Sep 2022 13:40:47 +0800 From: kernel test robot To: Philipp Zabel 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' Message-ID: <202209151325.MvDE41LH-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 :::::: CC: Philipp Zabel -- 0-DAY CI Kernel Test Service https://01.org/lkp