diff options
| author | Lv Zheng <lv.zheng@intel.com> | 2013-12-06 03:52:05 -0500 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-12-06 19:24:33 -0500 |
| commit | 27d50c82714f6477ac690034b37d202f76eb4f70 (patch) | |
| tree | 67a1d4e0e73b7e0167a7406ec962718ae2d58305 /drivers/gpu/drm/i915/Makefile | |
| parent | c099eacbcaec4475936fbf73e499507728ce47e1 (diff) | |
ACPI / i915: Fix incorrect <acpi/acpi.h> inclusions via <linux/acpi_io.h>
To avoid build problems and breaking dependencies between ACPI header
files, <acpi/acpi.h> should not be included directly by code outside
of the ACPI core subsystem. However, that is possible if
<linux/acpi_io.h> is included, because that file contains
a direct inclusion of <acpi/acpi.h>.
For this reason, remove the direct <acpi/acpi.h> inclusion from
<linux/acpi_io.h>, move that file from include/linux/ to include/acpi/
and make <linux/acpi.h> include it for CONFIG_ACPI set along with the
other ACPI header files. Accordingly, Remove the inclusions of
<linux/acpi_io.h> from everywhere.
Of course, that causes the contents of the new <acpi/acpi_io.h> file
to be available for CONFIG_ACPI set only, so intel_opregion.o that
depends on it should also depend on CONFIG_ACPI (and it really should
not be compiled for CONFIG_ACPI unset anyway).
References: https://01.org/linuxgraphics/sites/default/files/documentation/acpi_igd_opregion_spec.pdf
Cc: Matthew Garrett <mjg59@srcf.ucam.org>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
[rjw: Subject and changelog]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/Makefile')
| -rw-r--r-- | drivers/gpu/drm/i915/Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/Makefile b/drivers/gpu/drm/i915/Makefile index 41838eaa799c..d4ae48b04cf2 100644 --- a/drivers/gpu/drm/i915/Makefile +++ b/drivers/gpu/drm/i915/Makefile | |||
| @@ -38,7 +38,6 @@ i915-y := i915_drv.o i915_dma.o i915_irq.o \ | |||
| 38 | intel_ringbuffer.o \ | 38 | intel_ringbuffer.o \ |
| 39 | intel_overlay.o \ | 39 | intel_overlay.o \ |
| 40 | intel_sprite.o \ | 40 | intel_sprite.o \ |
| 41 | intel_opregion.o \ | ||
| 42 | intel_sideband.o \ | 41 | intel_sideband.o \ |
| 43 | intel_uncore.o \ | 42 | intel_uncore.o \ |
| 44 | dvo_ch7xxx.o \ | 43 | dvo_ch7xxx.o \ |
| @@ -51,7 +50,7 @@ i915-y := i915_drv.o i915_dma.o i915_irq.o \ | |||
| 51 | 50 | ||
| 52 | i915-$(CONFIG_COMPAT) += i915_ioc32.o | 51 | i915-$(CONFIG_COMPAT) += i915_ioc32.o |
| 53 | 52 | ||
| 54 | i915-$(CONFIG_ACPI) += intel_acpi.o | 53 | i915-$(CONFIG_ACPI) += intel_acpi.o intel_opregion.o |
| 55 | 54 | ||
| 56 | i915-$(CONFIG_DRM_I915_FBDEV) += intel_fbdev.o | 55 | i915-$(CONFIG_DRM_I915_FBDEV) += intel_fbdev.o |
| 57 | 56 | ||
