]> Git Repo - J-linux.git/commitdiff
drm/xe: Fix cast on trace variable
authorLucas De Marchi <[email protected]>
Fri, 19 Jan 2024 00:16:11 +0000 (16:16 -0800)
committerLucas De Marchi <[email protected]>
Fri, 19 Jan 2024 21:09:04 +0000 (13:09 -0800)
Cast the pointer to unsigned long and let it be implicitly extended to
u64. This fixes the build on 32bits arch.

Cc: Matthew Brost <[email protected]>
Cc: Niranjana Vishwanathapura <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Reviewed-by: Matt Roper <[email protected]>
Signed-off-by: Lucas De Marchi <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/xe/xe_trace.h

index 95163c303f3e11694bdc1bafd18eb6386740eb01..e4e7262191adcbf87719cc34fd54dcffcf247041 100644 (file)
@@ -31,7 +31,7 @@ DECLARE_EVENT_CLASS(xe_gt_tlb_invalidation_fence,
                             ),
 
                    TP_fast_assign(
-                          __entry->fence = (u64)fence;
+                          __entry->fence = (unsigned long)fence;
                           __entry->seqno = fence->seqno;
                           ),
 
This page took 0.048735 seconds and 4 git commands to generate.