]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe/display: Prefer forward declarations
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 12 May 2026 18:33:38 +0000 (20:33 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 14 May 2026 18:43:50 +0000 (20:43 +0200)
There is no need to include xe_device.h in the xe_display.h header.
Include it in the xe_display.c file instead.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patch.msgid.link/20260512183342.3374-4-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/display/xe_display.c
drivers/gpu/drm/xe/display/xe_display.h

index 0747044f7c2a74f0180a85b47ed609e19e8b0b62..263e92203c9db1d42ccc6fea591b9fadc27b2e03 100644 (file)
@@ -36,6 +36,7 @@
 #include "intel_hotplug.h"
 #include "intel_opregion.h"
 #include "skl_watermark.h"
+#include "xe_device.h"
 #include "xe_display_bo.h"
 #include "xe_display_pcode.h"
 #include "xe_display_rpm.h"
index fb1db84db966b8f87dcd3a9102632068a945f5b3..95acf0fd8e7be0904e6b4d83f222434466215074 100644 (file)
@@ -6,9 +6,11 @@
 #ifndef _XE_DISPLAY_H_
 #define _XE_DISPLAY_H_
 
-#include "xe_device.h"
+#include <linux/types.h>
 
 struct drm_driver;
+struct pci_dev;
+struct xe_device;
 
 #if IS_ENABLED(CONFIG_DRM_XE_DISPLAY)