All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: dri-devel@lists.freedesktop.org
Cc: Kate Stewart <kstewart@linuxfoundation.org>,
	David Airlie <airlied@linux.ie>,
	Jilayne Lovejoy <opensource@jilayne.com>,
	Sam Ravnborg <sam@ravnborg.org>,
	Emil Lundmark <lndmrk@chromium.org>,
	Robert Tarasov <tutankhamen@chromium.org>,
	Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>,
	Dave Airlie <airlied@redhat.com>,
	Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>,
	Jani Nikula <jani.nikula@intel.com>,
	Alexios Zavras <alexios.zavras@intel.com>,
	Mikulas Patocka <mpatocka@redhat.com>,
	Thomas Gleixner <tglx@linutronix.de>, Sean Paul <sean@poorly.run>,
	Allison Randal <allison@lohutok.net>,
	Richard Fontana <rfontana@redhat.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	Alex Deucher <alexander.deucher@amd.com>
Subject: [PATCH v1 16/33] drm/udl: drop use of drmP.h
Date: Sun, 30 Jun 2019 08:19:05 +0200	[thread overview]
Message-ID: <20190630061922.7254-17-sam@ravnborg.org> (raw)
In-Reply-To: <20190630061922.7254-1-sam@ravnborg.org>

The drmP.h header file is depreacted.
Drop it from all files in the udl driver.

Made the header files self contained, which then
made it simpler to update the .c files.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Sean Paul <sean@poorly.run>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Robert Tarasov <tutankhamen@chromium.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jilayne Lovejoy <opensource@jilayne.com>
Cc: Allison Randal <allison@lohutok.net>
Cc: Kate Stewart <kstewart@linuxfoundation.org>
Cc: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: "Noralf Trønnes" <noralf@tronnes.org>
Cc: Richard Fontana <rfontana@redhat.com>
Cc: Eric Anholt <eric@anholt.net>
Cc: Mikulas Patocka <mpatocka@redhat.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Alexios Zavras <alexios.zavras@intel.com>
Cc: Emil Lundmark <lndmrk@chromium.org>
Cc: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
---
The list of cc: was too large to add all recipients to the cover letter.
Please find cover letter here:
https://lists.freedesktop.org/archives/dri-devel/2019-June/thread.html
Search for "drm: drop use of drmp.h in drm-misc"

        Sam

 drivers/gpu/drm/udl/udl_connector.c |  4 +---
 drivers/gpu/drm/udl/udl_connector.h |  2 ++
 drivers/gpu/drm/udl/udl_dmabuf.c    |  6 ++++--
 drivers/gpu/drm/udl/udl_drv.c       |  7 ++++++-
 drivers/gpu/drm/udl/udl_drv.h       |  8 +++++++-
 drivers/gpu/drm/udl/udl_encoder.c   |  6 +++---
 drivers/gpu/drm/udl/udl_fb.c        | 15 +++++++--------
 drivers/gpu/drm/udl/udl_gem.c       |  9 ++++++---
 drivers/gpu/drm/udl/udl_main.c      |  6 ++++--
 drivers/gpu/drm/udl/udl_modeset.c   |  6 +++---
 drivers/gpu/drm/udl/udl_transfer.c  |  4 ----
 11 files changed, 43 insertions(+), 30 deletions(-)

diff --git a/drivers/gpu/drm/udl/udl_connector.c b/drivers/gpu/drm/udl/udl_connector.c
index 921561875d7f..ddb61a60c610 100644
--- a/drivers/gpu/drm/udl/udl_connector.c
+++ b/drivers/gpu/drm/udl/udl_connector.c
@@ -7,11 +7,9 @@
  * Copyright (C) 2009 Bernie Thompson <bernie@plugable.com>
  */
 
-#include <drm/drmP.h>
-#include <drm/drm_crtc.h>
-#include <drm/drm_edid.h>
 #include <drm/drm_crtc_helper.h>
 #include <drm/drm_probe_helper.h>
+
 #include "udl_connector.h"
 #include "udl_drv.h"
 
diff --git a/drivers/gpu/drm/udl/udl_connector.h b/drivers/gpu/drm/udl/udl_connector.h
index 0fb0db5c4612..7f2d392df173 100644
--- a/drivers/gpu/drm/udl/udl_connector.h
+++ b/drivers/gpu/drm/udl/udl_connector.h
@@ -3,6 +3,8 @@
 
 #include <drm/drm_crtc.h>
 
+struct edid;
+
 struct udl_drm_connector {
 	struct drm_connector connector;
 	/* last udl_detect edid */
diff --git a/drivers/gpu/drm/udl/udl_dmabuf.c b/drivers/gpu/drm/udl/udl_dmabuf.c
index 10a60e7e93d6..3108e9a9234b 100644
--- a/drivers/gpu/drm/udl/udl_dmabuf.c
+++ b/drivers/gpu/drm/udl/udl_dmabuf.c
@@ -5,11 +5,13 @@
  * Copyright (c) 2014 The Chromium OS Authors
  */
 
-#include <drm/drmP.h>
-#include "udl_drv.h"
 #include <linux/shmem_fs.h>
 #include <linux/dma-buf.h>
 
+#include <drm/drm_prime.h>
+
+#include "udl_drv.h"
+
 struct udl_drm_dmabuf_attachment {
 	struct sg_table sgt;
 	enum dma_data_direction dir;
diff --git a/drivers/gpu/drm/udl/udl_drv.c b/drivers/gpu/drm/udl/udl_drv.c
index ae53bf75c1d6..8426669433e4 100644
--- a/drivers/gpu/drm/udl/udl_drv.c
+++ b/drivers/gpu/drm/udl/udl_drv.c
@@ -4,9 +4,14 @@
  */
 
 #include <linux/module.h>
-#include <drm/drmP.h>
+
 #include <drm/drm_crtc_helper.h>
+#include <drm/drm_drv.h>
+#include <drm/drm_file.h>
+#include <drm/drm_ioctl.h>
 #include <drm/drm_probe_helper.h>
+#include <drm/drm_print.h>
+
 #include "udl_drv.h"
 
 static int udl_usb_suspend(struct usb_interface *interface,
diff --git a/drivers/gpu/drm/udl/udl_drv.h b/drivers/gpu/drm/udl/udl_drv.h
index 9d0790be544f..12a970fd9a87 100644
--- a/drivers/gpu/drm/udl/udl_drv.h
+++ b/drivers/gpu/drm/udl/udl_drv.h
@@ -11,9 +11,15 @@
 #ifndef UDL_DRV_H
 #define UDL_DRV_H
 
+#include <linux/mm_types.h>
 #include <linux/usb.h>
+
+#include <drm/drm_device.h>
+#include <drm/drm_framebuffer.h>
 #include <drm/drm_gem.h>
-#include <linux/mm_types.h>
+
+struct drm_encoder;
+struct drm_mode_create_dumb;
 
 #define DRIVER_NAME		"udl"
 #define DRIVER_DESC		"DisplayLink"
diff --git a/drivers/gpu/drm/udl/udl_encoder.c b/drivers/gpu/drm/udl/udl_encoder.c
index f87989e6ee51..203f041e737c 100644
--- a/drivers/gpu/drm/udl/udl_encoder.c
+++ b/drivers/gpu/drm/udl/udl_encoder.c
@@ -7,9 +7,9 @@
  * Copyright (C) 2009 Bernie Thompson <bernie@plugable.com>
  */
 
-#include <drm/drmP.h>
-#include <drm/drm_crtc.h>
-#include <drm/drm_crtc_helper.h>
+#include <drm/drm_encoder.h>
+#include <drm/drm_modeset_helper_vtables.h>
+
 #include "udl_drv.h"
 
 /* dummy encoder */
diff --git a/drivers/gpu/drm/udl/udl_fb.c b/drivers/gpu/drm/udl/udl_fb.c
index e1116bf7b9d7..ef3504d06343 100644
--- a/drivers/gpu/drm/udl/udl_fb.c
+++ b/drivers/gpu/drm/udl/udl_fb.c
@@ -7,18 +7,17 @@
  * Copyright (C) 2009 Jaya Kumar <jayakumar.lkml@gmail.com>
  * Copyright (C) 2009 Bernie Thompson <bernie@plugable.com>
  */
-#include <linux/module.h>
-#include <linux/slab.h>
-#include <linux/fb.h>
+
+#include <linux/moduleparam.h>
 #include <linux/dma-buf.h>
-#include <linux/mem_encrypt.h>
 
-#include <drm/drmP.h>
-#include <drm/drm_crtc.h>
 #include <drm/drm_crtc_helper.h>
-#include "udl_drv.h"
-
+#include <drm/drm_drv.h>
 #include <drm/drm_fb_helper.h>
+#include <drm/drm_fourcc.h>
+#include <drm/drm_modeset_helper.h>
+
+#include "udl_drv.h"
 
 #define DL_DEFIO_WRITE_DELAY    (HZ/20) /* fb_deferred_io.delay in jiffies */
 
diff --git a/drivers/gpu/drm/udl/udl_gem.c b/drivers/gpu/drm/udl/udl_gem.c
index c6ca2c09bc97..b23a5c2fcd80 100644
--- a/drivers/gpu/drm/udl/udl_gem.c
+++ b/drivers/gpu/drm/udl/udl_gem.c
@@ -3,10 +3,13 @@
  * Copyright (C) 2012 Red Hat
  */
 
-#include <drm/drmP.h>
-#include "udl_drv.h"
-#include <linux/shmem_fs.h>
 #include <linux/dma-buf.h>
+#include <linux/vmalloc.h>
+
+#include <drm/drm_mode.h>
+#include <drm/drm_prime.h>
+
+#include "udl_drv.h"
 
 struct udl_gem_object *udl_gem_alloc_object(struct drm_device *dev,
 					    size_t size)
diff --git a/drivers/gpu/drm/udl/udl_main.c b/drivers/gpu/drm/udl/udl_main.c
index 1a99c7647444..4e854e017390 100644
--- a/drivers/gpu/drm/udl/udl_main.c
+++ b/drivers/gpu/drm/udl/udl_main.c
@@ -7,9 +7,11 @@
  * Copyright (C) 2009 Jaya Kumar <jayakumar.lkml@gmail.com>
  * Copyright (C) 2009 Bernie Thompson <bernie@plugable.com>
  */
-#include <drm/drmP.h>
-#include <drm/drm_crtc_helper.h>
+
+#include <drm/drm.h>
+#include <drm/drm_print.h>
 #include <drm/drm_probe_helper.h>
+
 #include "udl_drv.h"
 
 /* -BULK_SIZE as per usb-skeleton. Can we get full page and avoid overhead? */
diff --git a/drivers/gpu/drm/udl/udl_modeset.c b/drivers/gpu/drm/udl/udl_modeset.c
index 793722d0c8cd..bc1ab6060dc6 100644
--- a/drivers/gpu/drm/udl/udl_modeset.c
+++ b/drivers/gpu/drm/udl/udl_modeset.c
@@ -9,10 +9,10 @@
 
  */
 
-#include <drm/drmP.h>
-#include <drm/drm_crtc.h>
 #include <drm/drm_crtc_helper.h>
-#include <drm/drm_plane_helper.h>
+#include <drm/drm_modeset_helper_vtables.h>
+#include <drm/drm_vblank.h>
+
 #include "udl_drv.h"
 
 /*
diff --git a/drivers/gpu/drm/udl/udl_transfer.c b/drivers/gpu/drm/udl/udl_transfer.c
index 6837f592f6ba..1973a4c1e358 100644
--- a/drivers/gpu/drm/udl/udl_transfer.c
+++ b/drivers/gpu/drm/udl/udl_transfer.c
@@ -7,12 +7,8 @@
  * Copyright (C) 2009 Bernie Thompson <bernie@plugable.com>
  */
 
-#include <linux/module.h>
-#include <linux/slab.h>
-#include <linux/fb.h>
 #include <asm/unaligned.h>
 
-#include <drm/drmP.h>
 #include "udl_drv.h"
 
 #define MAX_CMD_PIXELS		255
-- 
2.20.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2019-06-30  6:19 UTC|newest]

Thread overview: 90+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20190630061922.7254-1-sam@ravnborg.org>
2019-06-30  6:18 ` [PATCH v1 01/33] drm/meson: drop use of drmP.h Sam Ravnborg
2019-06-30  6:18   ` Sam Ravnborg
2019-06-30  6:18   ` Sam Ravnborg
2019-06-30  6:18 ` [PATCH v1 02/33] drm/xen: " Sam Ravnborg
2019-06-30  6:18   ` [Xen-devel] " Sam Ravnborg
2019-07-01  5:57   ` Oleksandr Andrushchenko
2019-07-01  5:57     ` [Xen-devel] " Oleksandr Andrushchenko
2019-07-01  6:05     ` Sam Ravnborg
2019-07-01  6:05       ` [Xen-devel] " Sam Ravnborg
2019-07-15 16:26       ` Sam Ravnborg
2019-07-15 16:26         ` [Xen-devel] " Sam Ravnborg
2019-06-30  6:18 ` [PATCH v1 03/33] drm/stm: " Sam Ravnborg
2019-06-30  6:18   ` Sam Ravnborg
2019-07-01  8:52   ` Benjamin Gaignard
2019-07-01  8:52     ` Benjamin Gaignard
2019-06-30  6:18 ` [PATCH v1 04/33] drm/tve200: " Sam Ravnborg
2019-07-04  7:32   ` Linus Walleij
2019-07-15 16:26     ` Sam Ravnborg
2019-06-30  6:18 ` [PATCH v1 05/33] drm/mxsfb: " Sam Ravnborg
2019-06-30  6:18   ` Sam Ravnborg
2019-07-05 20:47   ` Stefan Agner
2019-07-05 20:47     ` Stefan Agner
2019-07-15 16:28     ` Sam Ravnborg
2019-07-15 16:28       ` Sam Ravnborg
2019-07-17 21:51       ` Stefan Agner
2019-07-17 21:51         ` Stefan Agner
2019-06-30  6:18 ` [PATCH v1 06/33] drm/v3d: " Sam Ravnborg
2019-06-30  6:18 ` [PATCH v1 07/33] drm/pl111: " Sam Ravnborg
2019-06-30  6:18 ` [PATCH v1 08/33] drm/fsl-dcu: " Sam Ravnborg
2019-07-05 20:46   ` Stefan Agner
2019-07-15 16:28     ` Sam Ravnborg
2019-06-30  6:18 ` [PATCH v1 09/33] drm/qxl: " Sam Ravnborg
2019-07-01  6:38   ` Gerd Hoffmann
2019-07-15 16:29     ` Sam Ravnborg
2019-07-15 16:29     ` Sam Ravnborg
2019-07-01  6:38   ` Gerd Hoffmann
2019-06-30  6:18 ` [PATCH v1 10/33] drm/zte: " Sam Ravnborg
2019-07-18  8:07   ` Shawn Guo
2019-06-30  6:19 ` [PATCH v1 11/33] drm/sun4i: " Sam Ravnborg
2019-06-30  6:19   ` Sam Ravnborg
2019-06-30  6:19 ` [PATCH v1 12/33] drm/vkms: " Sam Ravnborg
2019-07-09 15:00   ` Rodrigo Siqueira
2019-07-15 16:29     ` Sam Ravnborg
2019-06-30  6:19 ` [PATCH v1 13/33] drm/vc4: " Sam Ravnborg
2019-06-30  6:19 ` [PATCH v1 14/33] drm/atmel_hlcdc: " Sam Ravnborg
2019-06-30  6:19   ` Sam Ravnborg
2019-07-15  8:15   ` Boris Brezillon
2019-07-15  8:15     ` Boris Brezillon
2019-07-15 16:29     ` Sam Ravnborg
2019-07-15 16:29       ` Sam Ravnborg
2019-06-30  6:19 ` [PATCH v1 15/33] drm/r128: " Sam Ravnborg
2019-06-30  6:19 ` Sam Ravnborg [this message]
2019-06-30  6:19 ` [PATCH v1 17/33] drm/omapdrm: " Sam Ravnborg
2019-06-30  6:19 ` [PATCH v1 18/33] drm/selftests: " Sam Ravnborg
2019-06-30  6:19 ` [PATCH v1 21/33] drm/i810: " Sam Ravnborg
2019-06-30  6:19 ` [PATCH v1 22/33] drm/tilcdc: " Sam Ravnborg
2019-08-02 10:03   ` Jyri Sarha
2019-08-03 14:46     ` Sam Ravnborg
2019-06-30  6:19 ` [PATCH v1 23/33] drm/i2c/ch7006: " Sam Ravnborg
2019-06-30  6:19 ` [PATCH v1 24/33] drm/i2c/sil164: " Sam Ravnborg
2019-06-30  6:19   ` Sam Ravnborg
2019-06-30  6:19 ` [PATCH v1 25/33] drm/scheduler: " Sam Ravnborg
2019-06-30 12:08   ` Koenig, Christian
2019-07-15 16:30     ` Sam Ravnborg
2019-06-30  6:19 ` [PATCH v1 26/33] drm/imx: " Sam Ravnborg
2019-06-30  6:19   ` Sam Ravnborg
2019-06-30  6:19 ` [PATCH v1 27/33] drm/virtgpu: " Sam Ravnborg
2019-07-01  6:38   ` Gerd Hoffmann
2019-07-01  6:38   ` Gerd Hoffmann
2019-07-15 16:30     ` Sam Ravnborg
2019-07-15 16:30     ` Sam Ravnborg
2019-06-30  6:19 ` [PATCH v1 28/33] drm/rockchip: " Sam Ravnborg
2019-06-30  6:19   ` Sam Ravnborg
2019-06-30  6:19 ` [PATCH v1 29/33] drm/mediatek: " Sam Ravnborg
2019-06-30  6:19   ` Sam Ravnborg
2019-06-30  6:19 ` [PATCH v1 31/33] drm/bochs: " Sam Ravnborg
2019-07-01  6:39   ` Gerd Hoffmann
2019-07-15 16:32     ` Sam Ravnborg
2019-07-15 16:32     ` Sam Ravnborg
2019-07-01  6:39   ` Gerd Hoffmann
2019-06-30  6:19 ` [PATCH v1 33/33] drm/hisilicon: " Sam Ravnborg
2019-07-01 10:44   ` Emil Velikov
2019-07-15  8:19     ` Sam Ravnborg
2019-07-15 10:34       ` Emil Velikov
2019-07-15 16:35         ` Sam Ravnborg
     [not found] ` <20190630061922.7254-33-sam@ravnborg.org>
2019-06-30  7:34   ` [PATCH v1 32/33] drm/ast: " Thomas Zimmermann
2019-07-15 16:32     ` Sam Ravnborg
     [not found] ` <20190630061922.7254-31-sam@ravnborg.org>
2019-07-02 13:35   ` [PATCH v1 30/33] drm: add missing include to drm_vram_mm_helper.h Daniel Vetter
2019-07-15 16:31     ` Sam Ravnborg
2019-07-09 19:37 ` [PATCH v1 0/33] drm: drop use of drmp.h in drm-misc Sam Ravnborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190630061922.7254-17-sam@ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=Eugeniy.Paltsev@synopsys.com \
    --cc=airlied@linux.ie \
    --cc=airlied@redhat.com \
    --cc=alexander.deucher@amd.com \
    --cc=alexios.zavras@intel.com \
    --cc=allison@lohutok.net \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jani.nikula@intel.com \
    --cc=kstewart@linuxfoundation.org \
    --cc=lndmrk@chromium.org \
    --cc=mpatocka@redhat.com \
    --cc=oleksandr_andrushchenko@epam.com \
    --cc=opensource@jilayne.com \
    --cc=rfontana@redhat.com \
    --cc=sean@poorly.run \
    --cc=tglx@linutronix.de \
    --cc=tutankhamen@chromium.org \
    --cc=tzimmermann@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.