drm/amdgpu: Use correct path to trace include
authorThierry Reding <treding@nvidia.com>
Fri, 1 Sep 2017 16:54:01 +0000 (12:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 1 Sep 2017 19:01:20 +0000 (15:01 -0400)
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.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/Makefile
drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h

index 658bac0cdc5e96094499a13c2183de9f56e6f12f..25a95c95df14dba680cab9d337bd1d5371e047fc 100644 (file)
@@ -133,5 +133,3 @@ include $(FULL_AMD_PATH)/powerplay/Makefile
 amdgpu-y += $(AMD_POWERPLAY_FILES)
 
 obj-$(CONFIG_DRM_AMDGPU)+= amdgpu.o
-
-CFLAGS_amdgpu_trace_points.o := -I$(src)
index b1f97417241d02d656a337d87343d5e5c1d9b45b..213988f336eddeba7f19816f4dde80f2a272d134 100644 (file)
@@ -417,5 +417,5 @@ TRACE_EVENT(amdgpu_ttm_bo_move,
 
 /* This part must be outside protection */
 #undef TRACE_INCLUDE_PATH
-#define TRACE_INCLUDE_PATH .
+#define TRACE_INCLUDE_PATH ../../drivers/gpu/drm/amd/amdgpu
 #include <trace/define_trace.h>