Skip to content

Commit

Permalink
tracing: Fix header include guards in trace event headers
Browse files Browse the repository at this point in the history
These include guards are broken.

Match the #if !define() and #define lines so that they work correctly.

Link: http://lkml.kernel.org/r/20190720103943.16982-1-yamada.masahiro@socionext.com

Fixes: f54d186 ("dma-buf: Rename struct fence to dma_fence")
Fixes: 2e26ca7 ("tracing: Fix tracepoint.h DECLARE_TRACE() to allow more than one header")
Fixes: e543002 ("qdisc: add tracepoint qdisc:qdisc_dequeue for dequeued SKBs")
Fixes: 95f295f ("dmaengine: tegra: add tracepoints to driver")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
  • Loading branch information
Masahiro Yamada authored and Steven Rostedt (VMware) committed Jul 31, 2019
1 parent 609488b commit b1d45c2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion include/trace/events/dma_fence.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#undef TRACE_SYSTEM
#define TRACE_SYSTEM dma_fence

#if !defined(_TRACE_FENCE_H) || defined(TRACE_HEADER_MULTI_READ)
#if !defined(_TRACE_DMA_FENCE_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_DMA_FENCE_H

#include <linux/tracepoint.h>
Expand Down
4 changes: 2 additions & 2 deletions include/trace/events/napi.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#define TRACE_SYSTEM napi

#if !defined(_TRACE_NAPI_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_NAPI_H_
#define _TRACE_NAPI_H

#include <linux/netdevice.h>
#include <linux/tracepoint.h>
Expand Down Expand Up @@ -38,7 +38,7 @@ TRACE_EVENT(napi_poll,

#undef NO_DEV

#endif /* _TRACE_NAPI_H_ */
#endif /* _TRACE_NAPI_H */

/* This part must be outside protection */
#include <trace/define_trace.h>
4 changes: 2 additions & 2 deletions include/trace/events/qdisc.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define TRACE_SYSTEM qdisc

#if !defined(_TRACE_QDISC_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_QDISC_H_
#define _TRACE_QDISC_H

#include <linux/skbuff.h>
#include <linux/netdevice.h>
Expand Down Expand Up @@ -44,7 +44,7 @@ TRACE_EVENT(qdisc_dequeue,
__entry->txq_state, __entry->packets, __entry->skbaddr )
);

#endif /* _TRACE_QDISC_H_ */
#endif /* _TRACE_QDISC_H */

/* This part must be outside protection */
#include <trace/define_trace.h>
4 changes: 2 additions & 2 deletions include/trace/events/tegra_apb_dma.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if !defined(_TRACE_TEGRA_APB_DMA_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_TEGRA_APM_DMA_H
#define _TRACE_TEGRA_APB_DMA_H

#include <linux/tracepoint.h>
#include <linux/dmaengine.h>
Expand Down Expand Up @@ -55,7 +55,7 @@ TRACE_EVENT(tegra_dma_isr,
TP_printk("%s: irq %d\n", __get_str(chan), __entry->irq)
);

#endif /* _TRACE_TEGRADMA_H */
#endif /* _TRACE_TEGRA_APB_DMA_H */

/* This part must be outside protection */
#include <trace/define_trace.h>

0 comments on commit b1d45c2

Please sign in to comment.