ARM: msm: Fix sparse warnings due to incorrect type
Subsystems (3)
PATCH 1/1 ARM: msm: Fix sparse warnings due to incorrect type
arch/arm/mach-msm/timer.c:153:3: warning: incorrect type in initializer (different address spaces)arch/arm/mach-msm/timer.c:153:3: expected void const [noderef] <asn:3>*__vpp_verifyarch/arm/mach-msm/timer.c:153:3: got struct clock_event_device [noderef] <asn:3>**<noident>arch/arm/mach-msm/timer.c:153:38: warning: incorrect type in assignment (different address spaces)arch/arm/mach-msm/timer.c:153:38: expected struct clock_event_device [noderef] <asn:3>*<noident>arch/arm/mach-msm/timer.c:153:38: got struct clock_event_device *evtarch/arm/mach-msm/timer.c:191:22: warning: incorrect type in assignment (different address spaces)arch/arm/mach-msm/timer.c:191:22: expected struct clock_event_device [noderef] <asn:3>**static [toplevel] percpu_evtarch/arm/mach-msm/timer.c:191:22: got struct clock_event_device *[noderef] <asn:3>*<noident>arch/arm/mach-msm/timer.c:196:4: warning: incorrect type in initializer (different address spaces)arch/arm/mach-msm/timer.c:196:4: expected void const [noderef] <asn:3>*__vpp_verifyarch/arm/mach-msm/timer.c:196:4: got struct clock_event_device [noderef] <asn:3>**<noident>arch/arm/mach-msm/timer.c:196:39: warning: incorrect type in assignment (different address spaces)arch/arm/mach-msm/timer.c:196:39: expected struct clock_event_device [noderef] <asn:3>*<noident>arch/arm/mach-msm/timer.c:196:39: got struct clock_event_device *cearch/arm/mach-msm/timer.c:198:24: warning: incorrect type in argument 4 (different address spaces)arch/arm/mach-msm/timer.c:198:24: expected void [noderef] <asn:3>*percpu_dev_idarch/arm/mach-msm/timer.c:198:24: got struct clock_event_device [noderef] <asn:3>**static [toplevel] percpu_evt
--- arch/arm/mach-msm/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-msm/timer.c +1 -1
@@ -101,7 +101,7 @@ static struct clock_event_device msm_clockevent = {static union {struct clock_event_device *evt; -struct clock_event_device __percpu **percpu_evt; +struct clock_event_device *__percpu *percpu_evt; } msm_evt;static void __iomem *source_base;
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation