Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/xe: Don't rely on xe_assert.h to be included elsewhere

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

+5
+1
drivers/gpu/drm/xe/xe_bb.c
··· 7 7 8 8 #include "instructions/xe_mi_commands.h" 9 9 #include "regs/xe_gpu_commands.h" 10 + #include "xe_assert.h" 10 11 #include "xe_device.h" 11 12 #include "xe_exec_queue_types.h" 12 13 #include "xe_gt.h"
+1
drivers/gpu/drm/xe/xe_gsc_submit.c
··· 8 8 #include <linux/poison.h> 9 9 10 10 #include "abi/gsc_command_header_abi.h" 11 + #include "xe_assert.h" 11 12 #include "xe_bb.h" 12 13 #include "xe_exec_queue.h" 13 14 #include "xe_gt_printk.h"
+1
drivers/gpu/drm/xe/xe_gt_clock.c
··· 7 7 8 8 #include "regs/xe_gt_regs.h" 9 9 #include "regs/xe_regs.h" 10 + #include "xe_assert.h" 10 11 #include "xe_device.h" 11 12 #include "xe_gt.h" 12 13 #include "xe_macros.h"
+1
drivers/gpu/drm/xe/xe_uc.c
··· 5 5 6 6 #include "xe_uc.h" 7 7 8 + #include "xe_assert.h" 8 9 #include "xe_device.h" 9 10 #include "xe_gsc.h" 10 11 #include "xe_gsc_proxy.h"
+1
drivers/gpu/drm/xe/xe_vm.h
··· 6 6 #ifndef _XE_VM_H_ 7 7 #define _XE_VM_H_ 8 8 9 + #include "xe_assert.h" 9 10 #include "xe_bo_types.h" 10 11 #include "xe_macros.h" 11 12 #include "xe_map.h"