From 9905016d1bcf636c0000444266a452bc4c9f9b8c Mon Sep 17 00:00:00 2001 From: Qais Yousef Date: Tue, 6 Apr 2021 15:55:30 +0100 Subject: [PATCH] ANDROID: arm64: coresight: Fix a sparse warning A bunch of these sparse warnings were reported: >> drivers/hwtracing/coresight/coresight-trbe.c:134:10: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got struct perf_output_handle [noderef] __percpu ** @@ drivers/hwtracing/coresight/coresight-trbe.c:134:10: sparse: expected void const [noderef] __percpu *__vpp_verify drivers/hwtracing/coresight/coresight-trbe.c:134:10: sparse: got struct perf_output_handle [noderef] __percpu ** Which is complaining about mismatch between __percpu type passed and expected. It wants '* __percpu *'. Bug: 174685394 Reported-by: kernel test robot Signed-off-by: Qais Yousef Change-Id: Id87eac99913074b6d542822bd2b7fbdcb0da7b8a --- drivers/hwtracing/coresight/coresight-trbe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-trbe.c b/drivers/hwtracing/coresight/coresight-trbe.c index 41a012b525bb..a7484abda325 100644 --- a/drivers/hwtracing/coresight/coresight-trbe.c +++ b/drivers/hwtracing/coresight/coresight-trbe.c @@ -73,7 +73,7 @@ struct trbe_cpudata { struct trbe_drvdata { struct trbe_cpudata __percpu *cpudata; - struct perf_output_handle __percpu **handle; + struct perf_output_handle * __percpu *handle; struct hlist_node hotplug_node; int irq; cpumask_t supported_cpus;