Skip to content

Commit 23e0832

Browse files
author
Philipp Stanner
committed
drm/sched: Fix preprocessor guard
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: 353da3c ("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
1 parent 1d2eabb commit 23e0832

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/scheduler/gpu_scheduler_trace.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
*/
2323

24-
#if !defined(_GPU_SCHED_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
24+
#if !defined(_GPU_SCHED_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
2525
#define _GPU_SCHED_TRACE_H_
2626

2727
#include <linux/stringify.h>
@@ -106,7 +106,7 @@ TRACE_EVENT(drm_sched_job_wait_dep,
106106
__entry->seqno)
107107
);
108108

109-
#endif
109+
#endif /* _GPU_SCHED_TRACE_H_ */
110110

111111
/* This part must be outside protection */
112112
#undef TRACE_INCLUDE_PATH

0 commit comments

Comments
 (0)