[Intel-xe] [PATCH v2 8/8] drm/xe: drop top level i915 from include path
Jani Nikula
jani.nikula at intel.com
Fri Mar 3 10:52:22 UTC 2023
Add stub headers under compat-i915-headers/ to be explicit about which
headers are needed from i915. These also act as a TODO list of what to
fix. Remove top level i915 from include path.
Since xe_reg_defs.h needs i915_reg_defs.h also for
CONFIG_DRM_XE_DISPLAY=n, include it via the relative include.
Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
drivers/gpu/drm/xe/Makefile | 1 -
drivers/gpu/drm/xe/compat-i915-headers/i915_fixed.h | 1 +
drivers/gpu/drm/xe/compat-i915-headers/i915_reg.h | 1 +
drivers/gpu/drm/xe/compat-i915-headers/i915_reg_defs.h | 1 +
drivers/gpu/drm/xe/compat-i915-headers/i915_utils.h | 1 +
drivers/gpu/drm/xe/compat-i915-headers/intel_mchbar_regs.h | 1 +
drivers/gpu/drm/xe/compat-i915-headers/intel_pci_config.h | 1 +
drivers/gpu/drm/xe/regs/xe_reg_defs.h | 2 +-
8 files changed, 7 insertions(+), 2 deletions(-)
create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/i915_fixed.h
create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/i915_reg.h
create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/i915_reg_defs.h
create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/i915_utils.h
create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/intel_mchbar_regs.h
create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/intel_pci_config.h
diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile
index f9e18e5d6ea6..b94e65c91101 100644
--- a/drivers/gpu/drm/xe/Makefile
+++ b/drivers/gpu/drm/xe/Makefile
@@ -101,7 +101,6 @@ subdir-ccflags-$(CONFIG_DRM_XE_DISPLAY) += \
-I$(srctree)/$(src)/compat-i915-headers \
-I$(srctree)/drivers/gpu/drm/xe/display/ \
-I$(srctree)/drivers/gpu/drm/i915/display/ \
- -I$(srctree)/drivers/gpu/drm/i915/ \
-DBUILD_FOR_XE=1 \
-Ddrm_i915_gem_object=xe_bo \
-Ddrm_i915_private=xe_device
diff --git a/drivers/gpu/drm/xe/compat-i915-headers/i915_fixed.h b/drivers/gpu/drm/xe/compat-i915-headers/i915_fixed.h
new file mode 100644
index 000000000000..e55fed3cbe9e
--- /dev/null
+++ b/drivers/gpu/drm/xe/compat-i915-headers/i915_fixed.h
@@ -0,0 +1 @@
+#include "../../i915/i915_fixed.h"
diff --git a/drivers/gpu/drm/xe/compat-i915-headers/i915_reg.h b/drivers/gpu/drm/xe/compat-i915-headers/i915_reg.h
new file mode 100644
index 000000000000..36d863f4848b
--- /dev/null
+++ b/drivers/gpu/drm/xe/compat-i915-headers/i915_reg.h
@@ -0,0 +1 @@
+#include "../../i915/i915_reg.h"
diff --git a/drivers/gpu/drm/xe/compat-i915-headers/i915_reg_defs.h b/drivers/gpu/drm/xe/compat-i915-headers/i915_reg_defs.h
new file mode 100644
index 000000000000..128a9a330c13
--- /dev/null
+++ b/drivers/gpu/drm/xe/compat-i915-headers/i915_reg_defs.h
@@ -0,0 +1 @@
+#include "../../i915/i915_reg_defs.h"
diff --git a/drivers/gpu/drm/xe/compat-i915-headers/i915_utils.h b/drivers/gpu/drm/xe/compat-i915-headers/i915_utils.h
new file mode 100644
index 000000000000..a88a5196c79d
--- /dev/null
+++ b/drivers/gpu/drm/xe/compat-i915-headers/i915_utils.h
@@ -0,0 +1 @@
+#include "../../i915/i915_utils.h"
diff --git a/drivers/gpu/drm/xe/compat-i915-headers/intel_mchbar_regs.h b/drivers/gpu/drm/xe/compat-i915-headers/intel_mchbar_regs.h
new file mode 100644
index 000000000000..f7c0585f277b
--- /dev/null
+++ b/drivers/gpu/drm/xe/compat-i915-headers/intel_mchbar_regs.h
@@ -0,0 +1 @@
+#include "../../i915/intel_mchbar_regs.h"
diff --git a/drivers/gpu/drm/xe/compat-i915-headers/intel_pci_config.h b/drivers/gpu/drm/xe/compat-i915-headers/intel_pci_config.h
new file mode 100644
index 000000000000..741ef99dc0e4
--- /dev/null
+++ b/drivers/gpu/drm/xe/compat-i915-headers/intel_pci_config.h
@@ -0,0 +1 @@
+#include "../../i915/intel_pci_config.h"
diff --git a/drivers/gpu/drm/xe/regs/xe_reg_defs.h b/drivers/gpu/drm/xe/regs/xe_reg_defs.h
index 5f6735697d9c..b5c25e31b889 100644
--- a/drivers/gpu/drm/xe/regs/xe_reg_defs.h
+++ b/drivers/gpu/drm/xe/regs/xe_reg_defs.h
@@ -6,6 +6,6 @@
#ifndef _XE_REG_DEFS_H_
#define _XE_REG_DEFS_H_
-#include "../../i915/i915_reg_defs.h"
+#include "compat-i915-headers/i915_reg_defs.h"
#endif
--
2.39.1
More information about the Intel-xe
mailing list