Skip to content

Commit 0748934

Browse files
Rik van Rielgregkh
authored andcommitted
tracing: Add #undef to fix compile error
commit bf7165c upstream. There are several trace include files that define TRACE_INCLUDE_FILE. Include several of them in the same .c file (as I currently have in some code I am working on), and the compile will blow up with a "warning: "TRACE_INCLUDE_FILE" redefined #define TRACE_INCLUDE_FILE syscalls" Every other include file in include/trace/events/ avoids that issue by having a #undef TRACE_INCLUDE_FILE before the #define; syscalls.h should have one, too. Link: http://lkml.kernel.org/r/[email protected] Fixes: b8007ef ("tracing: Separate raw syscall from syscall tracer") Signed-off-by: Rik van Riel <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 1276510 commit 0748934

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/trace/events/syscalls.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#undef TRACE_SYSTEM
22
#define TRACE_SYSTEM raw_syscalls
3+
#undef TRACE_INCLUDE_FILE
34
#define TRACE_INCLUDE_FILE syscalls
45

56
#if !defined(_TRACE_EVENTS_SYSCALLS_H) || defined(TRACE_HEADER_MULTI_READ)

0 commit comments

Comments
 (0)