Commit 109d101e authored by Jani Nikula's avatar Jani Nikula

drm/i915: include uapi/drm/i915_drm.h directly where needed

Remove the uapi/drm/i915_drm.h include from drm/i915_drm.h, and stop
being a proxy for uapi/drm/i915_drm.h. Include uapi/drm/i915_drm.h and
drm/i915_drm.h only where needed.
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/20220311100639.114685-2-jani.nikula@intel.com
parent 0438fd1a
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
* Copyright © 2019 Intel Corporation * Copyright © 2019 Intel Corporation
*/ */
#include <uapi/drm/i915_drm.h>
#include "intel_memory_region.h" #include "intel_memory_region.h"
#include "gem/i915_gem_region.h" #include "gem/i915_gem_region.h"
#include "gem/i915_gem_lmem.h" #include "gem/i915_gem_lmem.h"
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
* Copyright © 2019 Intel Corporation * Copyright © 2019 Intel Corporation
*/ */
#include <uapi/drm/i915_drm.h>
#include "intel_memory_region.h" #include "intel_memory_region.h"
#include "i915_gem_region.h" #include "i915_gem_region.h"
#include "i915_drv.h" #include "i915_drv.h"
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
#include <linux/prandom.h> #include <linux/prandom.h>
#include <uapi/drm/i915_drm.h>
#include "intel_memory_region.h" #include "intel_memory_region.h"
#include "i915_drv.h" #include "i915_drv.h"
#include "i915_ttm_buddy_manager.h" #include "i915_ttm_buddy_manager.h"
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/io-mapping.h> #include <linux/io-mapping.h>
#include <drm/drm_mm.h> #include <drm/drm_mm.h>
#include <drm/i915_drm.h> #include <uapi/drm/i915_drm.h>
struct drm_i915_private; struct drm_i915_private;
struct drm_i915_gem_object; struct drm_i915_gem_object;
......
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
* Copyright(c) 2020, Intel Corporation. All rights reserved. * Copyright(c) 2020, Intel Corporation. All rights reserved.
*/ */
#include <drm/i915_drm.h>
#include "i915_drv.h" #include "i915_drv.h"
#include "intel_pxp.h" #include "intel_pxp.h"
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#ifndef _I915_DRM_H_ #ifndef _I915_DRM_H_
#define _I915_DRM_H_ #define _I915_DRM_H_
#include <uapi/drm/i915_drm.h> #include <linux/types.h>
/* For use by IPS driver */ /* For use by IPS driver */
unsigned long i915_read_mch_val(void); unsigned long i915_read_mch_val(void);
......
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