All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: dri-devel@lists.freedesktop.org
Cc: spice-devel@lists.freedesktop.org,
	Dave Airlie <airlied@redhat.com>, Sam Ravnborg <sam@ravnborg.org>,
	virtualization@lists.linux-foundation.org
Subject: [PATCH v1 09/33] drm/qxl: drop use of drmP.h
Date: Sun, 30 Jun 2019 08:18:58 +0200	[thread overview]
Message-ID: <20190630061922.7254-10-sam@ravnborg.org> (raw)
In-Reply-To: <20190630061922.7254-1-sam@ravnborg.org>

Drop use of the deprecated drmP.h header file.
While touching the files divided includes in blocks,
and when needed sort the blocks.
Fix fallout.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: virtualization@lists.linux-foundation.org
Cc: spice-devel@lists.freedesktop.org
---
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/qxl/qxl_cmd.c     |  2 ++
 drivers/gpu/drm/qxl/qxl_debugfs.c |  4 ++--
 drivers/gpu/drm/qxl/qxl_display.c |  3 +++
 drivers/gpu/drm/qxl/qxl_draw.c    |  2 ++
 drivers/gpu/drm/qxl/qxl_drv.c     | 10 +++++++---
 drivers/gpu/drm/qxl/qxl_drv.h     |  7 +++----
 drivers/gpu/drm/qxl/qxl_gem.c     |  1 -
 drivers/gpu/drm/qxl/qxl_ioctl.c   |  3 +++
 drivers/gpu/drm/qxl/qxl_irq.c     |  4 ++++
 drivers/gpu/drm/qxl/qxl_kms.c     |  9 ++++++---
 drivers/gpu/drm/qxl/qxl_release.c |  6 +++++-
 drivers/gpu/drm/qxl/qxl_ttm.c     | 16 +++++++++-------
 12 files changed, 46 insertions(+), 21 deletions(-)

diff --git a/drivers/gpu/drm/qxl/qxl_cmd.c b/drivers/gpu/drm/qxl/qxl_cmd.c
index 0a2e51af1230..ac1081f55b51 100644
--- a/drivers/gpu/drm/qxl/qxl_cmd.c
+++ b/drivers/gpu/drm/qxl/qxl_cmd.c
@@ -25,6 +25,8 @@
 
 /* QXL cmd/ring handling */
 
+#include <linux/delay.h>
+
 #include <drm/drm_util.h>
 
 #include "qxl_drv.h"
diff --git a/drivers/gpu/drm/qxl/qxl_debugfs.c b/drivers/gpu/drm/qxl/qxl_debugfs.c
index 118422549828..a85ec100b0cc 100644
--- a/drivers/gpu/drm/qxl/qxl_debugfs.c
+++ b/drivers/gpu/drm/qxl/qxl_debugfs.c
@@ -28,9 +28,9 @@
  *  Alon Levy <alevy@redhat.com>
  */
 
-#include <linux/debugfs.h>
+#include <drm/drm_debugfs.h>
+#include <drm/drm_file.h>
 
-#include <drm/drmP.h>
 #include "qxl_drv.h"
 #include "qxl_object.h"
 
diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c
index 8b319ebbb0fb..023fb5a69af1 100644
--- a/drivers/gpu/drm/qxl/qxl_display.c
+++ b/drivers/gpu/drm/qxl/qxl_display.c
@@ -24,11 +24,14 @@
  */
 
 #include <linux/crc32.h>
+#include <linux/delay.h>
+
 #include <drm/drm_atomic.h>
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_gem_framebuffer_helper.h>
 #include <drm/drm_plane_helper.h>
 #include <drm/drm_probe_helper.h>
+#include <drm/drm_vblank.h>
 
 #include "qxl_drv.h"
 #include "qxl_object.h"
diff --git a/drivers/gpu/drm/qxl/qxl_draw.c b/drivers/gpu/drm/qxl/qxl_draw.c
index 97c3f1a95a32..5bebf1ea1c5d 100644
--- a/drivers/gpu/drm/qxl/qxl_draw.c
+++ b/drivers/gpu/drm/qxl/qxl_draw.c
@@ -20,6 +20,8 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
+#include <drm/drm_fourcc.h>
+
 #include "qxl_drv.h"
 #include "qxl_object.h"
 
diff --git a/drivers/gpu/drm/qxl/qxl_drv.c b/drivers/gpu/drm/qxl/qxl_drv.c
index d8f64886474b..b57a37543613 100644
--- a/drivers/gpu/drm/qxl/qxl_drv.c
+++ b/drivers/gpu/drm/qxl/qxl_drv.c
@@ -28,14 +28,18 @@
  *    Alon Levy <alevy@redhat.com>
  */
 
-#include <linux/module.h>
+#include "qxl_drv.h"
 #include <linux/console.h>
+#include <linux/module.h>
+#include <linux/pci.h>
 
-#include <drm/drmP.h>
 #include <drm/drm.h>
+#include <drm/drm_drv.h>
+#include <drm/drm_file.h>
 #include <drm/drm_modeset_helper.h>
+#include <drm/drm_prime.h>
 #include <drm/drm_probe_helper.h>
-#include "qxl_drv.h"
+
 #include "qxl_object.h"
 
 static const struct pci_device_id pciidlist[] = {
diff --git a/drivers/gpu/drm/qxl/qxl_drv.h b/drivers/gpu/drm/qxl/qxl_drv.h
index 2896bb6fdbf4..ae82e5fab09c 100644
--- a/drivers/gpu/drm/qxl/qxl_drv.h
+++ b/drivers/gpu/drm/qxl/qxl_drv.h
@@ -31,22 +31,21 @@
  */
 
 #include <linux/dma-fence.h>
-#include <linux/workqueue.h>
 #include <linux/firmware.h>
 #include <linux/platform_device.h>
+#include <linux/workqueue.h>
 
 #include <drm/drm_crtc.h>
 #include <drm/drm_encoder.h>
 #include <drm/drm_fb_helper.h>
+#include <drm/drm_ioctl.h>
 #include <drm/drm_gem.h>
-#include <drm/drmP.h>
+#include <drm/qxl_drm.h>
 #include <drm/ttm/ttm_bo_api.h>
 #include <drm/ttm/ttm_bo_driver.h>
-/* just for ttm_validate_buffer */
 #include <drm/ttm/ttm_execbuf_util.h>
 #include <drm/ttm/ttm_module.h>
 #include <drm/ttm/ttm_placement.h>
-#include <drm/qxl_drm.h>
 
 #include "qxl_dev.h"
 
diff --git a/drivers/gpu/drm/qxl/qxl_gem.c b/drivers/gpu/drm/qxl/qxl_gem.c
index 89606c819d82..89e4f9a7249c 100644
--- a/drivers/gpu/drm/qxl/qxl_gem.c
+++ b/drivers/gpu/drm/qxl/qxl_gem.c
@@ -23,7 +23,6 @@
  *          Alon Levy
  */
 
-#include <drm/drmP.h>
 #include <drm/drm.h>
 
 #include "qxl_drv.h"
diff --git a/drivers/gpu/drm/qxl/qxl_ioctl.c b/drivers/gpu/drm/qxl/qxl_ioctl.c
index d410e2925162..8117a45b3610 100644
--- a/drivers/gpu/drm/qxl/qxl_ioctl.c
+++ b/drivers/gpu/drm/qxl/qxl_ioctl.c
@@ -23,6 +23,9 @@
  *          Alon Levy
  */
 
+#include <linux/pci.h>
+#include <linux/uaccess.h>
+
 #include "qxl_drv.h"
 #include "qxl_object.h"
 
diff --git a/drivers/gpu/drm/qxl/qxl_irq.c b/drivers/gpu/drm/qxl/qxl_irq.c
index 3bb31add6350..8435af108632 100644
--- a/drivers/gpu/drm/qxl/qxl_irq.c
+++ b/drivers/gpu/drm/qxl/qxl_irq.c
@@ -23,6 +23,10 @@
  *          Alon Levy
  */
 
+#include <linux/pci.h>
+
+#include <drm/drm_irq.h>
+
 #include "qxl_drv.h"
 
 irqreturn_t qxl_irq_handler(int irq, void *arg)
diff --git a/drivers/gpu/drm/qxl/qxl_kms.c b/drivers/gpu/drm/qxl/qxl_kms.c
index bee61fa2c9bc..611cbe7aee69 100644
--- a/drivers/gpu/drm/qxl/qxl_kms.c
+++ b/drivers/gpu/drm/qxl/qxl_kms.c
@@ -23,11 +23,14 @@
  *          Alon Levy
  */
 
-#include "qxl_drv.h"
-#include "qxl_object.h"
+#include <linux/io-mapping.h>
+#include <linux/pci.h>
 
+#include <drm/drm_drv.h>
 #include <drm/drm_probe_helper.h>
-#include <linux/io-mapping.h>
+
+#include "qxl_drv.h"
+#include "qxl_object.h"
 
 int qxl_log_level;
 
diff --git a/drivers/gpu/drm/qxl/qxl_release.c b/drivers/gpu/drm/qxl/qxl_release.c
index 49f9a9385393..b805bfa87b68 100644
--- a/drivers/gpu/drm/qxl/qxl_release.c
+++ b/drivers/gpu/drm/qxl/qxl_release.c
@@ -19,9 +19,13 @@
  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
+
+#include <linux/delay.h>
+
+#include <trace/events/dma_fence.h>
+
 #include "qxl_drv.h"
 #include "qxl_object.h"
-#include <trace/events/dma_fence.h>
 
 /*
  * drawable cmd cache - allocate a bunch of VRAM pages, suballocate
diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c
index 0234f8556ada..663e59fd1e8c 100644
--- a/drivers/gpu/drm/qxl/qxl_ttm.c
+++ b/drivers/gpu/drm/qxl/qxl_ttm.c
@@ -23,19 +23,21 @@
  *          Alon Levy
  */
 
+#include <linux/delay.h>
+
+#include <drm/drm.h>
+#include <drm/drm_file.h>
+#include <drm/drm_debugfs.h>
+#include <drm/qxl_drm.h>
 #include <drm/ttm/ttm_bo_api.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/drmP.h>
-#include <drm/drm.h>
-#include <drm/qxl_drm.h>
+#include <drm/ttm/ttm_page_alloc.h>
+#include <drm/ttm/ttm_placement.h>
+
 #include "qxl_drv.h"
 #include "qxl_object.h"
 
-#include <linux/delay.h>
-
 static struct qxl_device *qxl_get_qdev(struct ttm_bo_device *bdev)
 {
 	struct qxl_mman *mman;
-- 
2.20.1

  parent reply	other threads:[~2019-06-30  6:18 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 ` Sam Ravnborg [this message]
2019-07-01  6:38   ` [PATCH v1 09/33] drm/qxl: " 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 ` [PATCH v1 16/33] drm/udl: " Sam Ravnborg
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-10-sam@ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=airlied@redhat.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=spice-devel@lists.freedesktop.org \
    --cc=virtualization@lists.linux-foundation.org \
    /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.