All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Zihuan Zhang <zhangzihuan@kylinos.cn>,
	"Rafael J . wysocki" <rafael@kernel.org>,
	Viresh Kumar <viresh.kumar@linaro.org>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will@kernel.org>, Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
	Michael Ellerman <mpe@ellerman.id.au>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	Alim Akhtar <alim.akhtar@samsung.com>,
	Thierry Reding <thierry.reding@gmail.com>,
	MyungJoo Ham <myungjoo.ham@samsung.com>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	Chanwoo Choi <cw00.choi@samsung.com>,
	Jani Nikula <jani.nikula@linux.intel.com>,
	Rodrigo Vivi <rodrigo.vivi@intel.com>,
	Tvrtko Ursulin <tursulin@ursulin.net>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
	Daniel Lezcano <daniel.lezcano@kernel.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Shawn Guo <shawnguo@kernel.org>,
	Eduardo Valentin <edubezval@gmail.com>,
	Keerthy <j-keerthy@ti.com>
Cc: oe-kbuild-all@lists.linux.dev, Ben Horgan <ben.horgan@arm.com>,
	zhenglifeng <zhenglifeng1@huawei.com>,
	Zhang Rui <rui.zhang@intel.com>, Len Brown <lenb@kernel.org>,
	Lukasz Luba <lukasz.luba@arm.com>,
	Pengutronix Kernel Team <kernel@pengutronix.de>
Subject: Re: [PATCH v3 10/12] thermal: imx: Use scope-based cleanup helper
Date: Tue, 2 Sep 2025 14:30:39 +0800	[thread overview]
Message-ID: <202509021413.o9U55mo6-lkp@intel.com> (raw)
In-Reply-To: <20250901085748.36795-11-zhangzihuan@kylinos.cn>

Hi Zihuan,

kernel test robot noticed the following build errors:

[auto build test ERROR on rafael-pm/linux-next]
[also build test ERROR on rafael-pm/bleeding-edge rafael-pm/thermal arm64/for-next/core linus/master v6.17-rc4 next-20250901]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Zihuan-Zhang/arm64-topology-Use-scope-based-cleanup-helper/20250901-170106
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
patch link:    https://lore.kernel.org/r/20250901085748.36795-11-zhangzihuan%40kylinos.cn
patch subject: [PATCH v3 10/12] thermal: imx: Use scope-based cleanup helper
config: arm-randconfig-001-20250902 (https://download.01.org/0day-ci/archive/20250902/202509021413.o9U55mo6-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250902/202509021413.o9U55mo6-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/202509021413.o9U55mo6-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/thermal/imx_thermal.c: In function 'imx_thermal_register_legacy_cooling':
>> drivers/thermal/imx_thermal.c:554:59: error: 'struct imx_thermal_data' has no member named 'policy'
     554 |                 data->cdev = cpufreq_cooling_register(data->policy);
         |                                                           ^~


vim +554 drivers/thermal/imx_thermal.c

3c94f17e72a7bc Anson Huang     2014-08-06  534  
c589c56671c914 Anson Huang     2018-11-21  535  #ifdef CONFIG_CPU_FREQ
a1d00154239206 Bastian Stender 2018-06-08  536  /*
a1d00154239206 Bastian Stender 2018-06-08  537   * Create cooling device in case no #cooling-cells property is available in
a1d00154239206 Bastian Stender 2018-06-08  538   * CPU node
a1d00154239206 Bastian Stender 2018-06-08  539   */
a1d00154239206 Bastian Stender 2018-06-08  540  static int imx_thermal_register_legacy_cooling(struct imx_thermal_data *data)
a1d00154239206 Bastian Stender 2018-06-08  541  {
c589c56671c914 Anson Huang     2018-11-21  542  	struct device_node *np;
a4c062c2956958 Zihuan Zhang    2025-09-01  543  	struct cpufreq_policy *policy __free(put_cpufreq_policy) = cpufreq_cpu_get(0);
b45fd13be340e4 Anson Huang     2020-03-26  544  	int ret = 0;
a1d00154239206 Bastian Stender 2018-06-08  545  
a4c062c2956958 Zihuan Zhang    2025-09-01  546  	if (!policy) {
c589c56671c914 Anson Huang     2018-11-21  547  		pr_debug("%s: CPUFreq policy not found\n", __func__);
c589c56671c914 Anson Huang     2018-11-21  548  		return -EPROBE_DEFER;
c589c56671c914 Anson Huang     2018-11-21  549  	}
c589c56671c914 Anson Huang     2018-11-21  550  
a4c062c2956958 Zihuan Zhang    2025-09-01  551  	np = of_get_cpu_node(policy->cpu, NULL);
c589c56671c914 Anson Huang     2018-11-21  552  
86df7d19083c66 Rob Herring     2023-03-10  553  	if (!np || !of_property_present(np, "#cooling-cells")) {
a1d00154239206 Bastian Stender 2018-06-08 @554  		data->cdev = cpufreq_cooling_register(data->policy);
a4c062c2956958 Zihuan Zhang    2025-09-01  555  		if (IS_ERR(data->cdev))
a1d00154239206 Bastian Stender 2018-06-08  556  			ret = PTR_ERR(data->cdev);
a1d00154239206 Bastian Stender 2018-06-08  557  	}
a1d00154239206 Bastian Stender 2018-06-08  558  
b45fd13be340e4 Anson Huang     2020-03-26  559  	of_node_put(np);
b45fd13be340e4 Anson Huang     2020-03-26  560  
b45fd13be340e4 Anson Huang     2020-03-26  561  	return ret;
a1d00154239206 Bastian Stender 2018-06-08  562  }
a1d00154239206 Bastian Stender 2018-06-08  563  

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

  reply	other threads:[~2025-09-02  6:33 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-01  8:57 [PATCH v3 00/12] cpufreq: use __free() for all cpufreq_cpu_get() references Zihuan Zhang
2025-09-01  8:57 ` [PATCH v3 01/12] arm64: topology: Use scope-based cleanup helper Zihuan Zhang
2025-09-02  5:26   ` kernel test robot
2025-09-01  8:57 ` [PATCH v3 02/12] ACPI: processor: thermal: " Zihuan Zhang
2025-09-03 11:07   ` Rafael J. Wysocki
2025-09-01  8:57 ` [PATCH v3 03/12] cpufreq: intel_pstate: " Zihuan Zhang
2025-09-01 15:17   ` Rafael J. Wysocki
2025-09-02 10:32     ` Zihuan Zhang
2025-09-02 11:47       ` Rafael J. Wysocki
2025-09-03  0:51         ` Zihuan Zhang
2025-09-03 11:04           ` Rafael J. Wysocki
2025-09-01  8:57 ` [PATCH v3 04/12] cpufreq: longhaul: " Zihuan Zhang
2025-09-02 15:58   ` Krzysztof Kozlowski
2025-09-01  8:57 ` [PATCH v3 05/12] cpufreq: powernv: " Zihuan Zhang
2025-09-01  8:57 ` [PATCH v3 06/12] PM / devfreq: " Zihuan Zhang
2025-09-01  8:57 ` [PATCH v3 07/12] drm/i915: " Zihuan Zhang
2025-09-01  8:57 ` [PATCH v3 08/12] cpufreq: powerpc: macintosh: " Zihuan Zhang
2025-09-02 15:59   ` Krzysztof Kozlowski
2025-09-01  8:57 ` [PATCH v3 09/12] powercap: dtpm_cpu: " Zihuan Zhang
2025-09-03 11:43   ` Rafael J. Wysocki
2025-09-01  8:57 ` [PATCH v3 10/12] thermal: imx: " Zihuan Zhang
2025-09-02  6:30   ` kernel test robot [this message]
2025-09-01  8:57 ` [PATCH v3 11/12] thermal/drivers/ti-soc-thermal: " Zihuan Zhang
2025-09-02  6:19   ` kernel test robot
2025-09-01  8:57 ` [PATCH v3 12/12] PM: EM: " Zihuan Zhang
2025-09-02 15:57   ` Krzysztof Kozlowski
2025-09-03  2:12     ` Zihuan Zhang
2025-09-03  6:11       ` Krzysztof Kozlowski
2025-09-02 16:44 ` ✓ i915.CI.BAT: success for cpufreq: use __free() for all cpufreq_cpu_get() references (rev3) Patchwork
2025-09-03  0:41 ` ✗ i915.CI.Full: failure " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2025-09-02 15:25 [PATCH v3 12/12] PM: EM: Use scope-based cleanup helper kernel test robot
2025-09-02 15:53 ` Dan Carpenter
2025-09-03  2:30 ` Zihuan Zhang

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=202509021413.o9U55mo6-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=airlied@gmail.com \
    --cc=alim.akhtar@samsung.com \
    --cc=ben.horgan@arm.com \
    --cc=bp@alien8.de \
    --cc=catalin.marinas@arm.com \
    --cc=cw00.choi@samsung.com \
    --cc=daniel.lezcano@kernel.org \
    --cc=dave.hansen@linux.intel.com \
    --cc=edubezval@gmail.com \
    --cc=j-keerthy@ti.com \
    --cc=jani.nikula@linux.intel.com \
    --cc=kernel@pengutronix.de \
    --cc=krzk@kernel.org \
    --cc=kyungmin.park@samsung.com \
    --cc=lenb@kernel.org \
    --cc=lukasz.luba@arm.com \
    --cc=mpe@ellerman.id.au \
    --cc=myungjoo.ham@samsung.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rafael@kernel.org \
    --cc=rodrigo.vivi@intel.com \
    --cc=rui.zhang@intel.com \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=srinivas.pandruvada@linux.intel.com \
    --cc=thierry.reding@gmail.com \
    --cc=tursulin@ursulin.net \
    --cc=viresh.kumar@linaro.org \
    --cc=will@kernel.org \
    --cc=zhangzihuan@kylinos.cn \
    --cc=zhenglifeng1@huawei.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.