[PATCH] thermal: core: Remove duplicate struct declaration

xueqin Luo posted 1 patch 10 months, 1 week ago
include/linux/thermal.h | 2 --
1 file changed, 2 deletions(-)
[PATCH] thermal: core: Remove duplicate struct declaration
Posted by xueqin Luo 10 months, 1 week ago
The struct thermal_zone_device is already declared on line 32, so the
duplicate declaration has been removed.

Fixes: b1ae92dcfa8e ("thermal: core: Make struct thermal_zone_device definition internal")
Signed-off-by: xueqin Luo <luoxueqin@kylinos.cn>
---
 include/linux/thermal.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/linux/thermal.h b/include/linux/thermal.h
index 69f9bedd0ee8..0b5ed6821080 100644
--- a/include/linux/thermal.h
+++ b/include/linux/thermal.h
@@ -86,8 +86,6 @@ struct thermal_trip {
 #define THERMAL_TRIP_PRIV_TO_INT(_val_)	(uintptr_t)(_val_)
 #define THERMAL_INT_TO_TRIP_PRIV(_val_)	(void *)(uintptr_t)(_val_)
 
-struct thermal_zone_device;
-
 struct cooling_spec {
 	unsigned long upper;	/* Highest cooling state  */
 	unsigned long lower;	/* Lowest cooling state  */
-- 
2.34.1
Re: [PATCH] thermal: core: Remove duplicate struct declaration
Posted by Daniel Lezcano 10 months ago
On 06/02/2025 09:14, xueqin Luo wrote:
> The struct thermal_zone_device is already declared on line 32, so the
> duplicate declaration has been removed.
> 
> Fixes: b1ae92dcfa8e ("thermal: core: Make struct thermal_zone_device definition internal")
> Signed-off-by: xueqin Luo <luoxueqin@kylinos.cn>
> ---

Applied, thanks for the fix !

   -- D.


-- 
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog