drm/tegra: trace: Fix path to include
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.
Reported-by Dmitry Osipenko <[email protected]>
Signed-off-by Thierry Reding <[email protected]>
--- drivers/gpu/drm/tegra/trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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>
Signature · 1 line
2.13.3
Dmitry Osipenko
Tested-byQuoted 17 lines · Thierry Reding
From: Thierry Reding <[email protected]>
The
TRACE_INCLUDE_FILEmacro needs to specify the path relative to thedefine_trace.hheader rather than relative to the file defining it.Reported-by Dmitry Osipenko <[email protected]>Signed-off-by Thierry Reding <[email protected]>--- drivers/gpu/drm/tegra/trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/tegra/trace.h +0
-0
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!
Tested-by Dmitry Osipenko <[email protected]>
Signature · 1 line
Dmitry