drm/xe: Fix xe_device.h
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 7 May 2024 11:09:59 +0000 (13:09 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 7 May 2024 21:21:21 +0000 (23:21 +0200)
Some explicit includes are needed only from the xe_device.c.
And there is no need for redundant forward declarations.

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-4-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_device.c
drivers/gpu/drm/xe/xe_device.h

index ca7a101bd34ef0c6aad7856a31398fb0eb4df611..f8eb477f359d3cdf563123cc81c94aac7fc5cc11 100644 (file)
@@ -16,6 +16,7 @@
 #include <drm/xe_drm.h>
 
 #include "display/xe_display.h"
+#include "regs/xe_gpu_commands.h"
 #include "regs/xe_gt_regs.h"
 #include "regs/xe_regs.h"
 #include "xe_bo.h"
@@ -26,6 +27,7 @@
 #include "xe_drv.h"
 #include "xe_exec.h"
 #include "xe_exec_queue.h"
+#include "xe_force_wake.h"
 #include "xe_ggtt.h"
 #include "xe_gsc_proxy.h"
 #include "xe_gt.h"
index 82317580f4bfc2c1c4f38f951ac1c67bd264b99e..3ed14072d8d1c77cf26988fb5e70e10debfd316e 100644 (file)
@@ -6,15 +6,9 @@
 #ifndef _XE_DEVICE_H_
 #define _XE_DEVICE_H_
 
-struct xe_exec_queue;
-struct xe_file;
-
 #include <drm/drm_util.h>
 
-#include "regs/xe_gpu_commands.h"
 #include "xe_device_types.h"
-#include "xe_force_wake.h"
-#include "xe_macros.h"
 
 static inline struct xe_device *to_xe_device(const struct drm_device *dev)
 {