]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/sched: Fix preprocessor guard
authorPhilipp Stanner <phasta@kernel.org>
Tue, 18 Feb 2025 12:41:50 +0000 (13:41 +0100)
committerPhilipp Stanner <phasta@kernel.org>
Mon, 3 Mar 2025 15:03:48 +0000 (16:03 +0100)
When writing the header guard for gpu_scheduler_trace.h, a typo,
apparently, occurred.

Fix the typo and document the scope of the guard.

Fixes: 353da3c520b4 ("drm/amdgpu: add tracepoint for scheduler (v2)")
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Signed-off-by: Philipp Stanner <phasta@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20250218124149.118002-2-phasta@kernel.org
drivers/gpu/drm/scheduler/gpu_scheduler_trace.h

index c75302ca3427ce84d892056e3b40135d3922b878..f56e77e7f6d0221d9779effcaaf9d35a84a99cdd 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#if !defined(_GPU_SCHED_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
+#if !defined(_GPU_SCHED_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
 #define _GPU_SCHED_TRACE_H_
 
 #include <linux/stringify.h>
@@ -106,7 +106,7 @@ TRACE_EVENT(drm_sched_job_wait_dep,
                      __entry->seqno)
 );
 
-#endif
+#endif /* _GPU_SCHED_TRACE_H_ */
 
 /* This part must be outside protection */
 #undef TRACE_INCLUDE_PATH