mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-26 12:30:23 +09:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user