]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: make more headers self-contained
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 8 Nov 2019 09:41:42 +0000 (18:41 +0900)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Nov 2019 10:16:13 +0000 (10:16 +0000)
The headers in the gem/selftests/, gt/selftests, gvt/, selftests/
directories have never been compile-tested, but it would be possible
to make them self-contained.

This commit only addresses missing <linux/types.h> and forward
struct declarations.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20191108094142.25942-1-yamada.masahiro@socionext.com
15 files changed:
drivers/gpu/drm/i915/gem/selftests/mock_context.h
drivers/gpu/drm/i915/gt/selftests/mock_timeline.h
drivers/gpu/drm/i915/gvt/cmd_parser.h
drivers/gpu/drm/i915/gvt/display.h
drivers/gpu/drm/i915/gvt/edid.h
drivers/gpu/drm/i915/gvt/execlist.h
drivers/gpu/drm/i915/gvt/fb_decoder.h
drivers/gpu/drm/i915/gvt/hypercall.h
drivers/gpu/drm/i915/gvt/interrupt.h
drivers/gpu/drm/i915/gvt/mmio.h
drivers/gpu/drm/i915/gvt/page_track.h
drivers/gpu/drm/i915/gvt/sched_policy.h
drivers/gpu/drm/i915/selftests/mock_gtt.h
drivers/gpu/drm/i915/selftests/mock_region.h
drivers/gpu/drm/i915/selftests/mock_uncore.h

index 0b926653914f4924ef6f0cca9e27a42238623654..45de09ec28d1d939be794ff7eed3c09284581752 100644 (file)
@@ -7,6 +7,9 @@
 #ifndef __MOCK_CONTEXT_H
 #define __MOCK_CONTEXT_H
 
+struct drm_file;
+struct drm_i915_private;
+
 void mock_init_contexts(struct drm_i915_private *i915);
 
 struct i915_gem_context *
index 689efc66c9082ab5059021db35fa40f52d0c9e84..d2bcc3df6183935f3089d2d05877cf3e64a2a284 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef __MOCK_TIMELINE__
 #define __MOCK_TIMELINE__
 
+#include <linux/types.h>
+
 struct intel_timeline;
 
 void mock_timeline_init(struct intel_timeline *timeline, u64 context);
index 28670364300272c21d67dd89b17114034cb2ec45..ab25d151932ac276cb7b29d24bc256d547cbf0d2 100644 (file)
 
 #define GVT_CMD_HASH_BITS 7
 
+struct intel_gvt;
+struct intel_shadow_wa_ctx;
+struct intel_vgpu_workload;
+
 void intel_gvt_clean_cmd_parser(struct intel_gvt *gvt);
 
 int intel_gvt_init_cmd_parser(struct intel_gvt *gvt);
index a87f33e6a23ca46708a6dd321c02aac70104a76e..b59b34046e1e2d49bbd8ebd1bcaf8de3db07d0c8 100644 (file)
 #ifndef _GVT_DISPLAY_H_
 #define _GVT_DISPLAY_H_
 
+#include <linux/types.h>
+
+struct intel_gvt;
+struct intel_vgpu;
+
 #define SBI_REG_MAX    20
 #define DPCD_SIZE      0x700
 
index f6dfc8b795ec2f3d57d3314052b72dd98eabd599..dfe0cbc6aad85ca3a6f190df1b2c3d890a0ef793 100644 (file)
 #ifndef _GVT_EDID_H_
 #define _GVT_EDID_H_
 
+#include <linux/types.h>
+
+struct intel_vgpu;
+
 #define EDID_SIZE              128
 #define EDID_ADDR              0x50 /* Linux hvm EDID addr */
 
index 5ccc2c69584838ecb93960857f1c851589b13c87..5c0c1fd30c83e02cbe02df5a9acf39b0b2064723 100644 (file)
@@ -35,6 +35,8 @@
 #ifndef _GVT_EXECLIST_H_
 #define _GVT_EXECLIST_H_
 
+#include <linux/types.h>
+
 struct execlist_ctx_descriptor_format {
        union {
                u32 ldw;
index 60c155085029cbb4742341a94d4d24a56da3d0c5..67b6ede9e707c8111d8575fa96c9ecf1a9b71238 100644 (file)
@@ -36,6 +36,8 @@
 #ifndef _GVT_FB_DECODER_H_
 #define _GVT_FB_DECODER_H_
 
+#include <linux/types.h>
+
 #define _PLANE_CTL_FORMAT_SHIFT                24
 #define _PLANE_CTL_TILED_SHIFT         10
 #define _PIPE_V_SRCSZ_SHIFT            0
index 4862fb12778e096fd35ee5e71b8b27dc87a1ba9e..9599c0a762b23b6138f6ed77148e4a49734e8305 100644 (file)
 #ifndef _GVT_HYPERCALL_H_
 #define _GVT_HYPERCALL_H_
 
+#include <linux/types.h>
+
+struct device;
+
 enum hypervisor_type {
        INTEL_GVT_HYPERVISOR_XEN = 0,
        INTEL_GVT_HYPERVISOR_KVM,
index 5313fb1b33e1adc20d5c227dd4b179209d14df20..fcd663811d3706e524d73c1afa4f23be93f71bb8 100644 (file)
@@ -32,6 +32,8 @@
 #ifndef _GVT_INTERRUPT_H_
 #define _GVT_INTERRUPT_H_
 
+#include <linux/types.h>
+
 enum intel_gvt_event_type {
        RCS_MI_USER_INTERRUPT = 0,
        RCS_DEBUG,
@@ -135,6 +137,7 @@ enum intel_gvt_event_type {
 
 struct intel_gvt_irq;
 struct intel_gvt;
+struct intel_vgpu;
 
 typedef void (*gvt_event_virt_handler_t)(struct intel_gvt_irq *irq,
        enum intel_gvt_event_type event, struct intel_vgpu *vgpu);
index 5874f1cb43062cdf39f2818c4b6340ec16c4bb03..2e68f4b02c940a793926a8e1fda6d3f746f20657 100644 (file)
@@ -36,6 +36,8 @@
 #ifndef _GVT_MMIO_H_
 #define _GVT_MMIO_H_
 
+#include <linux/types.h>
+
 struct intel_gvt;
 struct intel_vgpu;
 
index fa607a71c3c0010817866532b09b6c37d7a75c6e..f6eb7135583cad299a3461d42f5d05fea58eb9d3 100644 (file)
@@ -25,6 +25,9 @@
 #ifndef _GVT_PAGE_TRACK_H_
 #define _GVT_PAGE_TRACK_H_
 
+#include <linux/types.h>
+
+struct intel_vgpu;
 struct intel_vgpu_page_track;
 
 typedef int (*gvt_page_track_handler_t)(
index 7b59e3e88b8b869776c375181e7aceef884a95be..3dacdad5f529253f9a9553e5c05310d7137fbdbf 100644 (file)
@@ -34,6 +34,9 @@
 #ifndef __GVT_SCHED_POLICY__
 #define __GVT_SCHED_POLICY__
 
+struct intel_gvt;
+struct intel_vgpu;
+
 struct intel_gvt_sched_policy_ops {
        int (*init)(struct intel_gvt *gvt);
        void (*clean)(struct intel_gvt *gvt);
index 3387393286dec352ad95887a57398b948d604466..e3f224f43beb6fbd83bb07ce98a58dad315cee32 100644 (file)
@@ -25,6 +25,9 @@
 #ifndef __MOCK_GTT_H
 #define __MOCK_GTT_H
 
+struct drm_i915_private;
+struct i915_ggtt;
+
 void mock_init_ggtt(struct drm_i915_private *i915, struct i915_ggtt *ggtt);
 void mock_fini_ggtt(struct i915_ggtt *ggtt);
 
index 24608089d833a8b777f02e704c9efc3e999ff4a9..329bf74dfaca71e93d37bc0ae56c3ea2834117b6 100644 (file)
@@ -6,6 +6,11 @@
 #ifndef __MOCK_REGION_H
 #define __MOCK_REGION_H
 
+#include <linux/types.h>
+
+struct drm_i915_private;
+struct intel_memory_region;
+
 struct intel_memory_region *
 mock_region_create(struct drm_i915_private *i915,
                   resource_size_t start,
index 8a2cc553f466dde3af03f2b2e4f6280de6c4666b..7acf1ef4d48814f14be02f187c6d76a51f032634 100644 (file)
@@ -25,6 +25,9 @@
 #ifndef __MOCK_UNCORE_H
 #define __MOCK_UNCORE_H
 
+struct drm_i915_private;
+struct intel_uncore;
+
 void mock_uncore_init(struct intel_uncore *uncore,
                      struct drm_i915_private *i915);