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 <lkp@intel.com>
Signed-off-by: Qais Yousef <qais.yousef@arm.com>
Change-Id: Id87eac99913074b6d542822bd2b7fbdcb0da7b8a
This commit is contained in:
Qais Yousef
2021-04-06 15:55:30 +01:00
committed by Todd Kjos
parent 1f99f71f2c
commit 9905016d1b

View File

@@ -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;