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: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220303181931.1661767-5-jani.nikula@intel.com
This commit is contained in:
Jani Nikula 2022-03-03 20:19:31 +02:00
parent 63a78bbb41
commit e9b67ec2d3
10 changed files with 12 additions and 2 deletions

View File

@ -64,6 +64,7 @@
*
*/
#include <linux/highmem.h>
#include <linux/log2.h>
#include <linux/nospec.h>

View File

@ -4,8 +4,9 @@
* Copyright © 2008,2010 Intel Corporation
*/
#include <linux/intel-iommu.h>
#include <linux/dma-resv.h>
#include <linux/highmem.h>
#include <linux/intel-iommu.h>
#include <linux/sync_file.h>
#include <linux/uaccess.h>

View File

@ -22,6 +22,7 @@
*
*/
#include <linux/highmem.h>
#include <linux/sched/mm.h>
#include <drm/drm_cache.h>

View File

@ -6,6 +6,7 @@
#include <linux/prime_numbers.h>
#include <linux/string_helpers.h>
#include <linux/swap.h>
#include "i915_selftest.h"

View File

@ -4,6 +4,7 @@
* Copyright © 2016 Intel Corporation
*/
#include <linux/highmem.h>
#include <linux/prime_numbers.h>
#include "gem/i915_gem_internal.h"

View File

@ -3,6 +3,8 @@
* Copyright © 2008-2015 Intel Corporation
*/
#include <linux/highmem.h>
#include "i915_drv.h"
#include "i915_reg.h"
#include "i915_scatterlist.h"

View File

@ -5,6 +5,7 @@
#include <linux/bitfield.h>
#include <linux/firmware.h>
#include <linux/highmem.h>
#include <drm/drm_cache.h>
#include <drm/drm_print.h>

View File

@ -25,6 +25,8 @@
*
*/
#include <linux/highmem.h>
#include <drm/drm_cache.h>
#include "gt/intel_engine.h"

View File

@ -34,7 +34,6 @@
#include <asm/hypervisor.h>
#include <linux/i2c.h>
#include <linux/intel-iommu.h>
#include <linux/pm_qos.h>

View File

@ -28,6 +28,7 @@
*/
#include <linux/ascii85.h>
#include <linux/highmem.h>
#include <linux/nmi.h>
#include <linux/pagevec.h>
#include <linux/scatterlist.h>