Skip to contentSkip to conversation

drm/tegra: trace: Fix path to include

PATCH In review Thierry Reding 2 participants 2 messages Aug 23, 2017 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/tegra: trace: Fix path to include

From: Thierry Reding <[email protected]>

The TRACE_INCLUDE_FILE macro needs to specify the path relative to the define_trace.h header rather than relative to the file defining it.

---
 drivers/gpu/drm/tegra/trace.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/tegra/trace.h +1 -1
index e9b7cdad5c4c..5a1ab4046e92 100644
@@ -63,6 +63,6 @@ DEFINE_EVENT(register_access, sor_readl,
 
 /* This part must be outside protection */
 #undef TRACE_INCLUDE_PATH
-#define TRACE_INCLUDE_PATH .
+#define TRACE_INCLUDE_PATH ../../drivers/gpu/drm/tegra
 #define TRACE_INCLUDE_FILE trace
 #include <trace/define_trace.h>
Signature · 1 line
2.13.3
Tested-by
#2 lore raw
In reply to a message not in the archive
Quoted 17 lines · Thierry Reding

From: Thierry Reding <[email protected]>

The TRACE_INCLUDE_FILE macro needs to specify the path relative to the define_trace.h header rather than relative to the file defining it.

---
 drivers/gpu/drm/tegra/trace.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/tegra/trace.h +0 -0
index e9b7cdad5c4c..5a1ab4046e92 100644

drivers/gpu/drm/tegra/trace.h DEFINE_EVENT(register_access, sor_readl, · line 68

Quoted 7 lines
drivers/gpu/drm/tegra/trace.h +1 -1
@@ -63,6 +63,6 @@ DEFINE_EVENT(register_access, sor_readl,
 
 /* This part must be outside protection */
 #undef TRACE_INCLUDE_PATH
-#define TRACE_INCLUDE_PATH .
+#define TRACE_INCLUDE_PATH ../../drivers/gpu/drm/tegra
 #define TRACE_INCLUDE_FILE trace
 #include <trace/define_trace.h>

This variant works too!

Signature · 1 line
Dmitry