Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit 7c3584e

Browse files
Christoph Hellwigzhiwang1
authored andcommitted
drm/i915/gvt: merge gvt.c into kvmgvt.c
The code in both files is deeply interconnected, so merge it and keep a bunch of structures and functions static. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Zhi Wang <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Jason Gunthorpe <[email protected]> Reviewed-by: Zhi Wang <[email protected]>
1 parent 6dc92e2 commit 7c3584e

File tree

4 files changed

+260
-302
lines changed

4 files changed

+260
-302
lines changed

drivers/gpu/drm/i915/gvt/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ kvmgt-$(CONFIG_DRM_I915_GVT) += \
1212
gvt/fb_decoder.o \
1313
gvt/firmware.o \
1414
gvt/gtt.o \
15-
gvt/gvt.o \
1615
gvt/handlers.o \
1716
gvt/interrupt.o \
1817
gvt/kvmgt.o \

drivers/gpu/drm/i915/gvt/gvt.c

Lines changed: 0 additions & 291 deletions
This file was deleted.

drivers/gpu/drm/i915/gvt/gvt.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -765,12 +765,6 @@ int intel_gvt_dma_map_guest_page(struct intel_vgpu *vgpu, unsigned long gfn,
765765
void intel_gvt_dma_unmap_guest_page(struct intel_vgpu *vgpu,
766766
dma_addr_t dma_addr);
767767

768-
int intel_gvt_init_vgpu_type_groups(struct intel_gvt *gvt);
769-
void intel_gvt_cleanup_vgpu_type_groups(struct intel_gvt *gvt);
770-
771768
#include "trace.h"
772769

773-
extern const struct intel_vgpu_ops intel_gvt_vgpu_ops;
774-
extern const struct mdev_parent_ops intel_vgpu_mdev_ops;
775-
776770
#endif

0 commit comments

Comments
 (0)