diff options
author | Mukesh Ojha <mojha@codeaurora.org> | 2018-11-27 14:43:32 +0530 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-12-11 15:01:48 +0100 |
commit | 43b9e4febc66b98d83cc1560196d56ac7fef3c32 (patch) | |
tree | a989b4028fbd010c863a20a91dfe788192a050c0 /kernel/events | |
parent | fca0c116504e1c5c72963bf28b1ede0932228fef (diff) | |
download | linux-next-43b9e4febc66b98d83cc1560196d56ac7fef3c32.tar.gz |
perf/core: Declare the __percpu attribute on non-deref types
Sparse reports the current declaration of two perf percpu variables
with this warning:
warning: incorrect type in initializer (different address spaces)
expected void const [noderef] <asn:3>*__vpp_verify
got struct perf_cpu_context *<noident>
While it's normally perfectly fine to place GCC attributes anywhere
in the definition, this particular attribute is for a checking
compiler's such as Sparse's benefit, which doesn't want __percpu
on pointers.
So reorder the attribute to come after the structure type, not after
the pointer type.
[ mingo: Rewrote the changelog. ]
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/1543310012-7967-1-git-send-email-mojha@codeaurora.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/events')
0 files changed, 0 insertions, 0 deletions