From 635089add7f3bef18469fbc9980d66d89929306a Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Thu, 9 Jan 2020 14:21:30 +0900 Subject: [PATCH] thermal: Fix incompatible-pointer-types After the commit 6e9640753a86 ("thermal: Support dbus activation for thermal f/w"), function pointer for register_notifier() and unregister_notifier() type is incompatible. Fix the warning by casting inside the function. Change-Id: Iebc590cc1d3d9a7adaca1a896f6313a225ddb6ca Signed-off-by: Seung-Woo Kim --- src/pass/pass-thermal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pass/pass-thermal.c b/src/pass/pass-thermal.c index ff2ebae..095a4c1 100644 --- a/src/pass/pass-thermal.c +++ b/src/pass/pass-thermal.c @@ -130,8 +130,9 @@ static inline void *get_thermal_result(struct pass_resource *res) return pass_resmon_get_result(res, RESMON_SRC_THERMAL); } -static int thermal_get_scenario(void **scenario, void *user_data) +static int thermal_get_scenario(void *data, void *user_data) { + void **scenario = data; struct pass_resource *res = user_data; struct resmon_result_src_thermal *thermal_result; struct pass_thermal *thermal; -- 2.7.4