]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
thermal: core: Remove duplicate struct declaration
authorxueqin Luo <luoxueqin@kylinos.cn>
Thu, 6 Feb 2025 08:14:36 +0000 (16:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:26 +0000 (14:39 +0200)
[ Upstream commit 9e6ec8cf64e2973f0ec74f09023988cabd218426 ]

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>
Link: https://lore.kernel.org/r/20250206081436.51785-1-luoxueqin@kylinos.cn
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/thermal.h

index 25ea8fe2313e6d0a53192974a80d92f50f0ff03e..0da2c257e32cf9472db4a108a8681117317e6b36 100644 (file)
@@ -83,8 +83,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  */