Skip to content

Commit 9eae297

Browse files
KAGA-KOKOIngo Molnar
authored andcommitted
perf/x86/amd/uncore: Fix __percpu annotation
The __percpu annotation in struct amd_uncore is confusing Sparse: uncore.c:649:10: sparse: warning: incorrect type in initializer (different address spaces) uncore.c:649:10: sparse: expected void const [noderef] __percpu *__vpp_verify uncore.c:649:10: sparse: got union amd_uncore_info * The reason is that the __percpu annotation sits between the '*' dereferencing operator and the member name. Move it before the dereferencing operator to cure this. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20240304005104.394845326@linutronix.de
1 parent 3c94ba5 commit 9eae297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/events/amd/uncore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ union amd_uncore_info {
7171
};
7272

7373
struct amd_uncore {
74-
union amd_uncore_info * __percpu info;
74+
union amd_uncore_info __percpu *info;
7575
struct amd_uncore_pmu *pmus;
7676
unsigned int num_pmus;
7777
bool init_done;

0 commit comments

Comments
 (0)