On 12/31/2025 4:56 PM, Jani Nikula wrote:
In this case, it's actually gvt.h that needs I915_MAX_PORTS etc. from
intel_display_limits.h. Make this more evident by moving the include
there, instead of getting it via fb_decoder.h.
Signed-off-by: Jani Nikula <[email protected]>
Reviewed-by: Ankit Nautiyal <[email protected]>
---
drivers/gpu/drm/i915/gvt/fb_decoder.h | 2 --
drivers/gpu/drm/i915/gvt/gvt.h | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/gvt/fb_decoder.h
b/drivers/gpu/drm/i915/gvt/fb_decoder.h
index 436d43c0087b..bc1e9d149e25 100644
--- a/drivers/gpu/drm/i915/gvt/fb_decoder.h
+++ b/drivers/gpu/drm/i915/gvt/fb_decoder.h
@@ -38,8 +38,6 @@
#include <linux/types.h>
-#include "display/intel_display_limits.h"
-
struct intel_vgpu;
#define _PLANE_CTL_FORMAT_SHIFT 24
diff --git a/drivers/gpu/drm/i915/gvt/gvt.h b/drivers/gpu/drm/i915/gvt/gvt.h
index 9adcdecadaa8..7fd2356f463c 100644
--- a/drivers/gpu/drm/i915/gvt/gvt.h
+++ b/drivers/gpu/drm/i915/gvt/gvt.h
@@ -38,6 +38,8 @@
#include <linux/vfio.h>
#include <asm/kvm_page_track.h>
+#include "display/intel_display_limits.h"
+
#include "gt/intel_gt.h"
#include "cmd_parser.h"