Skip to content

Commit c9be1a6

Browse files
YueHaibingKalle Valo
authored andcommitted
ath11k: fix compiler warnings without CONFIG_THERMAL
drivers/net/wireless/ath/ath11k/thermal.h:45:1: warning: no return statement in function returning non-void [-Wreturn-type] drivers/net/wireless/ath/ath11k/core.c:416:28: error: passing argument 1 of 'ath11k_thermal_unregister' from incompatible pointer type [-Werror=incompatible-pointer-types] Add missing return 0 in ath11k_thermal_set_throttling, and fix ath11k_thermal_unregister param type. Fixes: 2a63bbc ("ath11k: add thermal cooling device support") Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 5bf8e60 commit c9be1a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/wireless/ath/ath11k/thermal.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ static inline int ath11k_thermal_register(struct ath11k_base *sc)
3636
return 0;
3737
}
3838

39-
static inline void ath11k_thermal_unregister(struct ath11k *ar)
39+
static inline void ath11k_thermal_unregister(struct ath11k_base *sc)
4040
{
4141
}
4242

4343
static inline int ath11k_thermal_set_throttling(struct ath11k *ar, u32 throttle_state)
4444
{
45+
return 0;
4546
}
4647

4748
static inline void ath11k_thermal_event_temperature(struct ath11k *ar,

0 commit comments

Comments
 (0)