From a890ae3b7b3459c0a57343ec029d8a42479cbca8 Mon Sep 17 00:00:00 2001 From: Ashok Vuyyuru Date: Sat, 5 Jun 2021 00:37:20 +0530 Subject: [PATCH] msm: ipa3: Fix to use right casting to avoid the compilation issue Caller function passing the constant value converting to int pointer will cause the problem. Adding changes to use right casting to avoid compilation issue. Change-Id: I8440f16e4e53e0788c2d1eae35f4b6ebf3178ead Signed-off-by: Ashok Vuyyuru --- drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal_hw_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal_hw_stats.c b/drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal_hw_stats.c index a1befe6700d6..815b51ab3b13 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal_hw_stats.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal_hw_stats.c @@ -225,7 +225,7 @@ static struct ipahal_stats_init_pyld *ipahal_generate_init_pyld_flt_rt_v4_5( void *params, bool is_atomic_ctx) { struct ipahal_stats_init_pyld *pyld; - int num = *((int *)(params)); + int num = (uintptr_t)(params); if (num > IPA_MAX_FLT_RT_CNT_INDEX || num <= 0) {