diff options
author | Ingo Molnar <[email protected]> | 2019-10-19 09:15:27 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2019-10-19 09:15:27 +0200 |
commit | ae79d5588a04aec9dc4b0c6df700d131447306e0 (patch) | |
tree | d0df27fdf5f3b27f4c54dd7dfeab83005ac76f90 /tools/perf/util/trace-event-scripting.c | |
parent | d7e78706e43107fa269fe34b1a69e653f5ec9f2c (diff) |
perf/core: Fix !CONFIG_PERF_EVENTS build warnings and failures
sparc64 runs into this warning:
include/linux/security.h:1913:52: warning: 'struct perf_event' declared inside parameter list will not be visible outside of this definition or declaration
which is escalated to a build error in some of the .c files due to -Werror.
Fix it via a forward declaration, like we do for perf_event_attr, the stub inlines
don't actually need to know the structure of this struct.
Fixes: da97e18458fb: ("perf_event: Add support for LSM and SELinux checks")
Cc: "Joel Fernandes (Google)" <[email protected]>
Cc: [email protected]
Cc: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions