* [PATCH] thermal/core: Fix missing stub for devm_thermal_cooling_device_register
@ 2026-06-01 9:01 Daniel Lezcano
2026-06-01 12:09 ` Rafael J. Wysocki
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Lezcano @ 2026-06-01 9:01 UTC (permalink / raw)
To: rafael, daniel.lezcano; +Cc: linux-pm, linux-kernel, lukasz.luba, rui.zhang
Even it is very unlikely the thermal framework is disabled, the newly
added devm_thermal_cooling_device_register() function has not the stub
when the thermal framework is optout in the kernel.
Add it.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202605301554.S9n45bfQ-lkp@intel.com/
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
---
include/linux/thermal.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/thermal.h b/include/linux/thermal.h
index 81be6e6061b3..083b4f533933 100644
--- a/include/linux/thermal.h
+++ b/include/linux/thermal.h
@@ -344,7 +344,11 @@ static inline struct thermal_cooling_device *
thermal_cooling_device_register(const char *type, void *devdata,
const struct thermal_cooling_device_ops *ops)
{ return ERR_PTR(-ENODEV); }
+
static inline struct thermal_cooling_device *
+devm_thermal_cooling_device_register(struct device *dev, const char *type, void *devdata,
+ const struct thermal_cooling_device_ops *ops)
+{ return ERR_PTR(-ENODEV); }
static inline void thermal_cooling_device_unregister(
struct thermal_cooling_device *cdev)
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] thermal/core: Fix missing stub for devm_thermal_cooling_device_register
2026-06-01 9:01 [PATCH] thermal/core: Fix missing stub for devm_thermal_cooling_device_register Daniel Lezcano
@ 2026-06-01 12:09 ` Rafael J. Wysocki
0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2026-06-01 12:09 UTC (permalink / raw)
To: Daniel Lezcano; +Cc: rafael, linux-pm, linux-kernel, lukasz.luba, rui.zhang
On Mon, Jun 1, 2026 at 11:02 AM Daniel Lezcano
<daniel.lezcano@kernel.org> wrote:
>
> Even it is very unlikely the thermal framework is disabled, the newly
> added devm_thermal_cooling_device_register() function has not the stub
> when the thermal framework is optout in the kernel.
>
> Add it.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202605301554.S9n45bfQ-lkp@intel.com/
> Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
Acked-by: Rafael J. Wysocki (Intel) <rafael@kernel.org>
> ---
> include/linux/thermal.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/include/linux/thermal.h b/include/linux/thermal.h
> index 81be6e6061b3..083b4f533933 100644
> --- a/include/linux/thermal.h
> +++ b/include/linux/thermal.h
> @@ -344,7 +344,11 @@ static inline struct thermal_cooling_device *
> thermal_cooling_device_register(const char *type, void *devdata,
> const struct thermal_cooling_device_ops *ops)
> { return ERR_PTR(-ENODEV); }
> +
> static inline struct thermal_cooling_device *
> +devm_thermal_cooling_device_register(struct device *dev, const char *type, void *devdata,
> + const struct thermal_cooling_device_ops *ops)
> +{ return ERR_PTR(-ENODEV); }
>
> static inline void thermal_cooling_device_unregister(
> struct thermal_cooling_device *cdev)
> --
> 2.43.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-01 12:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-01 9:01 [PATCH] thermal/core: Fix missing stub for devm_thermal_cooling_device_register Daniel Lezcano
2026-06-01 12:09 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox