Commit a3d63977 authored by Sam Ravnborg's avatar Sam Ravnborg

drm/virtgpu: drop use of drmP.h

Drop use of the deprecated drmP.h header file.
Fix fallout by adding missing include files.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Acked-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Acked-by: default avatarEmil Velikov <emil.velikov@collabora.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: virtualization@lists.linux-foundation.org
Link: https://patchwork.freedesktop.org/patch/msgid/20190630061922.7254-28-sam@ravnborg.org
parent 7c1be93c
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <linux/debugfs.h> #include <drm/drm_debugfs.h>
#include <drm/drmP.h> #include <drm/drm_file.h>
#include "virtgpu_drv.h" #include "virtgpu_drv.h"
......
...@@ -25,11 +25,14 @@ ...@@ -25,11 +25,14 @@
* OTHER DEALINGS IN THE SOFTWARE. * OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include "virtgpu_drv.h"
#include <drm/drm_atomic_helper.h> #include <drm/drm_atomic_helper.h>
#include <drm/drm_damage_helper.h>
#include <drm/drm_fourcc.h>
#include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_gem_framebuffer_helper.h>
#include <drm/drm_probe_helper.h> #include <drm/drm_probe_helper.h>
#include <drm/drm_damage_helper.h> #include <drm/drm_vblank.h>
#include "virtgpu_drv.h"
#define XRES_MIN 32 #define XRES_MIN 32
#define YRES_MIN 32 #define YRES_MIN 32
......
...@@ -29,10 +29,13 @@ ...@@ -29,10 +29,13 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/console.h> #include <linux/console.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <drm/drmP.h>
#include <drm/drm.h> #include <drm/drm.h>
#include <drm/drm_drv.h>
#include <drm/drm_file.h>
#include "virtgpu_drv.h" #include "virtgpu_drv.h"
static struct drm_driver driver; static struct drm_driver driver;
static int virtio_gpu_modeset = -1; static int virtio_gpu_modeset = -1;
......
...@@ -31,16 +31,16 @@ ...@@ -31,16 +31,16 @@
#include <linux/virtio_config.h> #include <linux/virtio_config.h>
#include <linux/virtio_gpu.h> #include <linux/virtio_gpu.h>
#include <drm/drmP.h>
#include <drm/drm_gem.h>
#include <drm/drm_atomic.h> #include <drm/drm_atomic.h>
#include <drm/drm_encoder.h> #include <drm/drm_encoder.h>
#include <drm/drm_fb_helper.h> #include <drm/drm_fb_helper.h>
#include <drm/drm_gem.h>
#include <drm/drm_ioctl.h>
#include <drm/drm_probe_helper.h> #include <drm/drm_probe_helper.h>
#include <drm/ttm/ttm_bo_api.h> #include <drm/ttm/ttm_bo_api.h>
#include <drm/ttm/ttm_bo_driver.h> #include <drm/ttm/ttm_bo_driver.h>
#include <drm/ttm/ttm_placement.h>
#include <drm/ttm/ttm_module.h> #include <drm/ttm/ttm_module.h>
#include <drm/ttm/ttm_placement.h>
#define DRIVER_NAME "virtio_gpu" #define DRIVER_NAME "virtio_gpu"
#define DRIVER_DESC "virtio GPU" #define DRIVER_DESC "virtio GPU"
......
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <drm/drmP.h>
#include <trace/events/dma_fence.h> #include <trace/events/dma_fence.h>
#include "virtgpu_drv.h" #include "virtgpu_drv.h"
static const char *virtio_get_driver_name(struct dma_fence *f) static const char *virtio_get_driver_name(struct dma_fence *f)
......
...@@ -23,7 +23,9 @@ ...@@ -23,7 +23,9 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <drm/drmP.h> #include <drm/drm_file.h>
#include <drm/drm_fourcc.h>
#include "virtgpu_drv.h" #include "virtgpu_drv.h"
void virtio_gpu_gem_free_object(struct drm_gem_object *gem_obj) void virtio_gpu_gem_free_object(struct drm_gem_object *gem_obj)
......
...@@ -25,11 +25,13 @@ ...@@ -25,11 +25,13 @@
* OTHER DEALINGS IN THE SOFTWARE. * OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <drm/drmP.h> #include <linux/file.h>
#include <drm/virtgpu_drm.h>
#include <drm/ttm/ttm_execbuf_util.h>
#include <linux/sync_file.h> #include <linux/sync_file.h>
#include <drm/drm_file.h>
#include <drm/ttm/ttm_execbuf_util.h>
#include <drm/virtgpu_drm.h>
#include "virtgpu_drv.h" #include "virtgpu_drv.h"
static void convert_to_hw_box(struct virtio_gpu_box *dst, static void convert_to_hw_box(struct virtio_gpu_box *dst,
......
...@@ -25,7 +25,9 @@ ...@@ -25,7 +25,9 @@
#include <linux/virtio.h> #include <linux/virtio.h>
#include <linux/virtio_config.h> #include <linux/virtio_config.h>
#include <drm/drmP.h>
#include <drm/drm_file.h>
#include "virtgpu_drv.h" #include "virtgpu_drv.h"
static void virtio_gpu_config_changed_work_func(struct work_struct *work) static void virtio_gpu_config_changed_work_func(struct work_struct *work)
......
...@@ -23,9 +23,11 @@ ...@@ -23,9 +23,11 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include "virtgpu_drv.h"
#include <drm/drm_plane_helper.h>
#include <drm/drm_atomic_helper.h> #include <drm/drm_atomic_helper.h>
#include <drm/drm_fourcc.h>
#include <drm/drm_plane_helper.h>
#include "virtgpu_drv.h"
static const uint32_t virtio_gpu_formats[] = { static const uint32_t virtio_gpu_formats[] = {
DRM_FORMAT_HOST_XRGB8888, DRM_FORMAT_HOST_XRGB8888,
......
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
* Authors: Andreas Pokorny * Authors: Andreas Pokorny
*/ */
#include <drm/drm_prime.h>
#include "virtgpu_drv.h" #include "virtgpu_drv.h"
/* Empty Implementations as there should not be any other driver for a virtual /* Empty Implementations as there should not be any other driver for a virtual
......
...@@ -25,17 +25,18 @@ ...@@ -25,17 +25,18 @@
* OTHER DEALINGS IN THE SOFTWARE. * OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <linux/delay.h>
#include <drm/drm.h>
#include <drm/drm_file.h>
#include <drm/ttm/ttm_bo_api.h> #include <drm/ttm/ttm_bo_api.h>
#include <drm/ttm/ttm_bo_driver.h> #include <drm/ttm/ttm_bo_driver.h>
#include <drm/ttm/ttm_placement.h>
#include <drm/ttm/ttm_page_alloc.h>
#include <drm/ttm/ttm_module.h> #include <drm/ttm/ttm_module.h>
#include <drm/drmP.h> #include <drm/ttm/ttm_page_alloc.h>
#include <drm/drm.h> #include <drm/ttm/ttm_placement.h>
#include <drm/virtgpu_drm.h> #include <drm/virtgpu_drm.h>
#include "virtgpu_drv.h"
#include <linux/delay.h> #include "virtgpu_drv.h"
static struct static struct
virtio_gpu_device *virtio_gpu_get_vgdev(struct ttm_bo_device *bdev) virtio_gpu_device *virtio_gpu_get_vgdev(struct ttm_bo_device *bdev)
......
...@@ -26,13 +26,14 @@ ...@@ -26,13 +26,14 @@
* OTHER DEALINGS IN THE SOFTWARE. * OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <drm/drmP.h> #include <linux/dma-mapping.h>
#include "virtgpu_drv.h"
#include "virtgpu_trace.h"
#include <linux/virtio.h> #include <linux/virtio.h>
#include <linux/virtio_config.h> #include <linux/virtio_config.h>
#include <linux/virtio_ring.h> #include <linux/virtio_ring.h>
#include "virtgpu_drv.h"
#include "virtgpu_trace.h"
#define MAX_INLINE_CMD_SIZE 96 #define MAX_INLINE_CMD_SIZE 96
#define MAX_INLINE_RESP_SIZE 24 #define MAX_INLINE_RESP_SIZE 24
#define VBUFFER_SIZE (sizeof(struct virtio_gpu_vbuffer) \ #define VBUFFER_SIZE (sizeof(struct virtio_gpu_vbuffer) \
......
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