Skip to content

Commit

Permalink
drm/vc4: Use correct path to trace include
Browse files Browse the repository at this point in the history
The header comment in include/trace/define_trace.h specifies that the
TRACE_INCLUDE_PATH needs to be relative to the define_trace.h header
rather than the trace file including it. Most instances get that wrong
and work around it by adding the $(src) directory to the include path.

While this works, it is preferable to refer to the correct path to the
trace file in the first place and avoid any workaround.

Acked-by: Christian König <[email protected]>
Acked-by: Daniel Vetter <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
thierryreding committed Sep 5, 2017
1 parent f23ef8e commit ff58a15
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/gpu/drm/vc4/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,3 @@ vc4-y := \
vc4-$(CONFIG_DEBUG_FS) += vc4_debugfs.o

obj-$(CONFIG_DRM_VC4) += vc4.o

CFLAGS_vc4_trace_points.o := -I$(src)
2 changes: 1 addition & 1 deletion drivers/gpu/drm/vc4/vc4_trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ TRACE_EVENT(vc4_wait_for_seqno_end,

/* This part must be outside protection */
#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH .
#define TRACE_INCLUDE_PATH ../../drivers/gpu/drm/vc4
#include <trace/define_trace.h>

0 comments on commit ff58a15

Please sign in to comment.