drm/xe: Don't rely on xe_assert.h to be included elsewhere
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 7 May 2024 11:09:57 +0000 (13:09 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 7 May 2024 21:21:15 +0000 (23:21 +0200)
While xe_assert.h is now included and used by the xe_force_wake.h,
we want to stop include xe_force_wake.h from xe_device.h as it's
not needed there.  Explicitly include xe_assert.h where needed.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240507110959.2747-2-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_bb.c
drivers/gpu/drm/xe/xe_gsc_submit.c
drivers/gpu/drm/xe/xe_gt_clock.c
drivers/gpu/drm/xe/xe_uc.c
drivers/gpu/drm/xe/xe_vm.h

index 541361c..37e056f 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "instructions/xe_mi_commands.h"
 #include "regs/xe_gpu_commands.h"
+#include "xe_assert.h"
 #include "xe_device.h"
 #include "xe_exec_queue_types.h"
 #include "xe_gt.h"
index d34d032..9ede483 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/poison.h>
 
 #include "abi/gsc_command_header_abi.h"
+#include "xe_assert.h"
 #include "xe_bb.h"
 #include "xe_exec_queue.h"
 #include "xe_gt_printk.h"
index c7bca20..9ff2061 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "regs/xe_gt_regs.h"
 #include "regs/xe_regs.h"
+#include "xe_assert.h"
 #include "xe_device.h"
 #include "xe_gt.h"
 #include "xe_macros.h"
index 0f6cfe0..45035e3 100644 (file)
@@ -5,6 +5,7 @@
 
 #include "xe_uc.h"
 
+#include "xe_assert.h"
 #include "xe_device.h"
 #include "xe_gsc.h"
 #include "xe_gsc_proxy.h"
index 204a4ff..3ac9021 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef _XE_VM_H_
 #define _XE_VM_H_
 
+#include "xe_assert.h"
 #include "xe_bo_types.h"
 #include "xe_macros.h"
 #include "xe_map.h"