public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Pengyu Luo" <mitltlatltl@gmail.com>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Bjorn Andersson" <andersson@kernel.org>,
	"Konrad Dybcio" <konradybcio@kernel.org>,
	"Hans de Goede" <hdegoede@redhat.com>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Bryan O'Donoghue" <bryan.odonoghue@linaro.org>,
	"Jean Delvare" <jdelvare@suse.com>,
	"Guenter Roeck" <linux@roeck-us.net>
Cc: oe-kbuild-all@lists.linux.dev, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	platform-driver-x86@vger.kernel.org, linux-hwmon@vger.kernel.org,
	Pengyu Luo <mitltlatltl@gmail.com>
Subject: Re: [PATCH RESEND v6 2/3] platform: arm64: add Huawei Matebook E Go EC driver
Date: Sat, 1 Feb 2025 04:07:19 +0800	[thread overview]
Message-ID: <202502010344.KWDBQUG9-lkp@intel.com> (raw)
In-Reply-To: <20250131092139.6065-3-mitltlatltl@gmail.com>

Hi Pengyu,

kernel test robot noticed the following build errors:

[auto build test ERROR on 853d1f41ba73e78d22e7075d9a95670aab187eba]

url:    https://github.com/intel-lab-lkp/linux/commits/Pengyu-Luo/dt-bindings-platform-Add-Huawei-Matebook-E-Go-EC/20250131-172427
base:   853d1f41ba73e78d22e7075d9a95670aab187eba
patch link:    https://lore.kernel.org/r/20250131092139.6065-3-mitltlatltl%40gmail.com
patch subject: [PATCH RESEND v6 2/3] platform: arm64: add Huawei Matebook E Go EC driver
config: powerpc64-randconfig-003-20250201 (https://download.01.org/0day-ci/archive/20250201/202502010344.KWDBQUG9-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250201/202502010344.KWDBQUG9-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502010344.KWDBQUG9-lkp@intel.com/

All errors (new ones prefixed by >>):

   powerpc64-linux-ld: warning: discarding dynamic section .glink
   powerpc64-linux-ld: warning: discarding dynamic section .plt
   powerpc64-linux-ld: linkage table error against `devm_hwmon_device_register_with_info'
   powerpc64-linux-ld: stubs don't match calculated size
   powerpc64-linux-ld: can not build stubs: bad value
   powerpc64-linux-ld: drivers/platform/arm64/huawei-gaokun-ec.o: in function `gaokun_ec_probe':
>> drivers/platform/arm64/huawei-gaokun-ec.c:786:(.text+0x16ac): undefined reference to `devm_hwmon_device_register_with_info'


vim +786 drivers/platform/arm64/huawei-gaokun-ec.c

   740	
   741	static int gaokun_ec_probe(struct i2c_client *client)
   742	{
   743		struct device *dev = &client->dev;
   744		struct gaokun_ec *ec;
   745		int ret;
   746	
   747		ec = devm_kzalloc(dev, sizeof(*ec), GFP_KERNEL);
   748		if (!ec)
   749			return -ENOMEM;
   750	
   751		ret = devm_mutex_init(dev, &ec->lock);
   752		if (ret)
   753			return ret;
   754	
   755		ec->client = client;
   756		i2c_set_clientdata(client, ec);
   757		BLOCKING_INIT_NOTIFIER_HEAD(&ec->notifier_list);
   758	
   759		/* Lid switch */
   760		ec->idev = devm_input_allocate_device(dev);
   761		if (!ec->idev)
   762			return -ENOMEM;
   763	
   764		ec->idev->name = "LID";
   765		ec->idev->phys = "gaokun-ec/input0";
   766		input_set_capability(ec->idev, EV_SW, SW_LID);
   767	
   768		ret = input_register_device(ec->idev);
   769		if (ret)
   770			return dev_err_probe(dev, ret, "Failed to register input device\n");
   771	
   772		ret = gaokun_aux_init(dev, GAOKUN_DEV_PSY, ec);
   773		if (ret)
   774			return ret;
   775	
   776		ret = gaokun_aux_init(dev, GAOKUN_DEV_UCSI, ec);
   777		if (ret)
   778			return ret;
   779	
   780		ret = devm_request_threaded_irq(dev, client->irq, NULL,
   781						gaokun_ec_irq_handler, IRQF_ONESHOT,
   782						dev_name(dev), ec);
   783		if (ret)
   784			return dev_err_probe(dev, ret, "Failed to request IRQ\n");
   785	
 > 786		ec->hwmon_dev = devm_hwmon_device_register_with_info(dev, "gaokun_ec_hwmon",
   787								     ec, &gaokun_ec_hwmon_chip_info, NULL);
   788		if (IS_ERR(ec->hwmon_dev))
   789			return dev_err_probe(dev, PTR_ERR(ec->hwmon_dev),
   790					     "Failed to register hwmon device\n");
   791	
   792		return 0;
   793	}
   794	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2025-01-31 20:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-31  9:21 [PATCH RESEND v6 0/3] platform: arm64: Huawei Matebook E Go embedded controller Pengyu Luo
2025-01-31  9:21 ` [PATCH RESEND v6 1/3] dt-bindings: platform: Add Huawei Matebook E Go EC Pengyu Luo
2025-01-31  9:21 ` [PATCH RESEND v6 2/3] platform: arm64: add Huawei Matebook E Go EC driver Pengyu Luo
2025-01-31 20:07   ` kernel test robot [this message]
2025-01-31  9:21 ` [PATCH RESEND v6 3/3] arm64: dts: qcom: gaokun3: Add Embedded Controller node Pengyu Luo
2025-01-31 21:20 ` [PATCH RESEND v6 0/3] platform: arm64: Huawei Matebook E Go embedded controller Krzysztof Kozlowski
2025-02-01  7:38   ` Pengyu Luo
2025-02-01 15:34     ` Konrad Dybcio
2025-02-01 16:34       ` Pengyu Luo
2025-02-02 14:19     ` Krzysztof Kozlowski

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=202502010344.KWDBQUG9-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andersson@kernel.org \
    --cc=bryan.odonoghue@linaro.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=hdegoede@redhat.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=jdelvare@suse.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=mitltlatltl@gmail.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=robh@kernel.org \
    /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