Commit e9b67ec2 authored by Jani Nikula's avatar Jani Nikula

drm/i915: include linux/highmem.h and linux/swap.h where needed

Include linux/highmem.h and linux/swap.h explicitly where needed so we
can drop the linux/i2c.h include from i915_drv.h where it pulled in the
dependencies implicitly.
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220303181931.1661767-5-jani.nikula@intel.com
parent 63a78bbb
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
* *
*/ */
#include <linux/highmem.h>
#include <linux/log2.h> #include <linux/log2.h>
#include <linux/nospec.h> #include <linux/nospec.h>
......
...@@ -4,8 +4,9 @@ ...@@ -4,8 +4,9 @@
* Copyright © 2008,2010 Intel Corporation * Copyright © 2008,2010 Intel Corporation
*/ */
#include <linux/intel-iommu.h>
#include <linux/dma-resv.h> #include <linux/dma-resv.h>
#include <linux/highmem.h>
#include <linux/intel-iommu.h>
#include <linux/sync_file.h> #include <linux/sync_file.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
* *
*/ */
#include <linux/highmem.h>
#include <linux/sched/mm.h> #include <linux/sched/mm.h>
#include <drm/drm_cache.h> #include <drm/drm_cache.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include <linux/prime_numbers.h> #include <linux/prime_numbers.h>
#include <linux/string_helpers.h> #include <linux/string_helpers.h>
#include <linux/swap.h>
#include "i915_selftest.h" #include "i915_selftest.h"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* Copyright © 2016 Intel Corporation * Copyright © 2016 Intel Corporation
*/ */
#include <linux/highmem.h>
#include <linux/prime_numbers.h> #include <linux/prime_numbers.h>
#include "gem/i915_gem_internal.h" #include "gem/i915_gem_internal.h"
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
* Copyright © 2008-2015 Intel Corporation * Copyright © 2008-2015 Intel Corporation
*/ */
#include <linux/highmem.h>
#include "i915_drv.h" #include "i915_drv.h"
#include "i915_reg.h" #include "i915_reg.h"
#include "i915_scatterlist.h" #include "i915_scatterlist.h"
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include <linux/bitfield.h> #include <linux/bitfield.h>
#include <linux/firmware.h> #include <linux/firmware.h>
#include <linux/highmem.h>
#include <drm/drm_cache.h> #include <drm/drm_cache.h>
#include <drm/drm_print.h> #include <drm/drm_print.h>
......
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
* *
*/ */
#include <linux/highmem.h>
#include <drm/drm_cache.h> #include <drm/drm_cache.h>
#include "gt/intel_engine.h" #include "gt/intel_engine.h"
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include <asm/hypervisor.h> #include <asm/hypervisor.h>
#include <linux/i2c.h>
#include <linux/intel-iommu.h> #include <linux/intel-iommu.h>
#include <linux/pm_qos.h> #include <linux/pm_qos.h>
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
*/ */
#include <linux/ascii85.h> #include <linux/ascii85.h>
#include <linux/highmem.h>
#include <linux/nmi.h> #include <linux/nmi.h>
#include <linux/pagevec.h> #include <linux/pagevec.h>
#include <linux/scatterlist.h> #include <linux/scatterlist.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment