drm/qxl: drop use of drmP.h
Subsystems (33)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/33 drm/meson: drop use of drmP.h
Drop use of the deprecated drmP.h header. While doing so used the opportunity
to clean up a little so includes are now sorted and removed unused include files. In a few cases added some forwards to allow header files to built in different include order.
---
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/meson/meson_crtc.c | 16 ++++++-------- drivers/gpu/drm/meson/meson_drv.c | 27 ++++++++++-------------- drivers/gpu/drm/meson/meson_drv.h | 11 ++++++---- drivers/gpu/drm/meson/meson_dw_hdmi.c | 19 +++++++++-------- drivers/gpu/drm/meson/meson_overlay.c | 13 +++++------- drivers/gpu/drm/meson/meson_plane.c | 16 ++++++-------- drivers/gpu/drm/meson/meson_registers.h | 2 ++ drivers/gpu/drm/meson/meson_vclk.c | 7 +++--- drivers/gpu/drm/meson/meson_vclk.h | 4 ++++ drivers/gpu/drm/meson/meson_venc.c | 10 ++++----- drivers/gpu/drm/meson/meson_venc.h | 2 ++ drivers/gpu/drm/meson/meson_venc_cvbs.c | 11 +++++----- drivers/gpu/drm/meson/meson_viu.c | 7 ++---- drivers/gpu/drm/meson/meson_vpp.c | 7 +++--- drivers/gpu/drm/meson/meson_vpp.h | 3 +++ include/linux/soc/amlogic/meson-canvas.h | 1 + 16 files changed, 77 insertions(+), 79 deletions(-)
drivers/gpu/drm/meson/meson_crtc.c +7 -9
@@ -9,23 +9,21 @@* Jasper St. Pierre <[email protected]> */ -#include <linux/kernel.h> -#include <linux/module.h> -#include <linux/mutex.h> -#include <linux/platform_device.h> #include <linux/bitfield.h> -#include <drm/drmP.h> -#include <drm/drm_atomic.h> +#include <linux/soc/amlogic/meson-canvas.h> +#include <drm/drm_atomic_helper.h> -#include <drm/drm_flip_work.h> +#include <drm/drm_device.h> +#include <drm/drm_print.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> #include "meson_crtc.h" #include "meson_plane.h" +#include "meson_registers.h" #include "meson_venc.h" -#include "meson_vpp.h" #include "meson_viu.h" -#include "meson_registers.h" +#include "meson_vpp.h" #define MESON_G12A_VIU_OFFSET 0x5ec0
drivers/gpu/drm/meson/meson_drv.c +11 -16
@@ -8,35 +8,30 @@* Jasper St. Pierre <[email protected]> */ -#include <linux/kernel.h> -#include <linux/module.h> -#include <linux/mutex.h> -#include <linux/platform_device.h> #include <linux/component.h> +#include <linux/module.h> #include <linux/of_graph.h> +#include <linux/platform_device.h> +#include <linux/soc/amlogic/meson-canvas.h> -#include <drm/drmP.h> -#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> -#include <drm/drm_fb_cma_helper.h> +#include <drm/drm_drv.h> #include <drm/drm_fb_helper.h> -#include <drm/drm_flip_work.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> -#include <drm/drm_plane_helper.h> +#include <drm/drm_irq.h> +#include <drm/drm_modeset_helper_vtables.h> #include <drm/drm_probe_helper.h> -#include <drm/drm_rect.h> +#include <drm/drm_vblank.h> +#include "meson_crtc.h" #include "meson_drv.h" -#include "meson_plane.h" #include "meson_overlay.h" -#include "meson_crtc.h" +#include "meson_plane.h" +#include "meson_registers.h" #include "meson_venc_cvbs.h" - -#include "meson_vpp.h" #include "meson_viu.h" -#include "meson_venc.h" -#include "meson_registers.h" +#include "meson_vpp.h" #define DRIVER_NAME "meson"#define DRIVER_DESC "Amlogic Meson DRM driver"
drivers/gpu/drm/meson/meson_drv.h +7 -4
@@ -7,11 +7,14 @@ #ifndef __MESON_DRV_H #define __MESON_DRV_H -#include <linux/platform_device.h> -#include <linux/regmap.h> +#include <linux/device.h> #include <linux/of.h> -#include <linux/soc/amlogic/meson-canvas.h> -#include <drm/drmP.h> +#include <linux/regmap.h> + +struct drm_crtc; +struct drm_device; +struct drm_plane; +struct meson_drm; struct meson_drm { struct device *dev;
drivers/gpu/drm/meson/meson_dw_hdmi.c +10 -9
@@ -5,29 +5,30 @@* Copyright (C) 2015 Amlogic, Inc. All rights reserved. */ +#include <linux/clk.h> +#include <linux/component.h> #include <linux/kernel.h> #include <linux/module.h> -#include <linux/component.h> #include <linux/of_device.h> #include <linux/of_graph.h> -#include <linux/reset.h> -#include <linux/clk.h> #include <linux/regulator/consumer.h> +#include <linux/reset.h> -#include <drm/drmP.h> +#include <drm/bridge/dw_hdmi.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_device.h> #include <drm/drm_edid.h> #include <drm/drm_probe_helper.h> -#include <drm/bridge/dw_hdmi.h> +#include <drm/drm_print.h> -#include <uapi/linux/media-bus-format.h> -#include <uapi/linux/videodev2.h> +#include <linux/media-bus-format.h> +#include <linux/videodev2.h> #include "meson_drv.h" -#include "meson_venc.h" -#include "meson_vclk.h" #include "meson_dw_hdmi.h" #include "meson_registers.h" +#include "meson_vclk.h" +#include "meson_venc.h" #define DRIVER_NAME "meson-dw-hdmi"#define DRIVER_DESC "Amlogic Meson HDMI-TX DRM driver"
drivers/gpu/drm/meson/meson_overlay.c +5 -8
@@ -5,24 +5,21 @@* Copyright (C) 2015 Amlogic, Inc. All rights reserved. */ -#include <linux/kernel.h> -#include <linux/module.h> -#include <linux/mutex.h> #include <linux/bitfield.h> -#include <linux/platform_device.h> -#include <drm/drmP.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_device.h> +#include <drm/drm_fourcc.h> #include <drm/drm_plane_helper.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_fb_cma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> -#include <drm/drm_rect.h> #include "meson_overlay.h" -#include "meson_vpp.h" -#include "meson_viu.h" #include "meson_registers.h" +#include "meson_viu.h" +#include "meson_vpp.h" /* VD1_IF0_GEN_REG */ #define VD_URGENT_CHROMA BIT(28)
drivers/gpu/drm/meson/meson_plane.c +6 -10
@@ -9,24 +9,20 @@* Jasper St. Pierre <[email protected]> */ -#include <linux/kernel.h> -#include <linux/module.h> -#include <linux/mutex.h> #include <linux/bitfield.h> -#include <linux/platform_device.h> -#include <drm/drmP.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> -#include <drm/drm_plane_helper.h> -#include <drm/drm_gem_cma_helper.h> +#include <drm/drm_device.h> #include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fourcc.h> +#include <drm/drm_gem_cma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> -#include <drm/drm_rect.h> +#include <drm/drm_plane_helper.h> #include "meson_plane.h" -#include "meson_vpp.h" -#include "meson_viu.h" #include "meson_registers.h" +#include "meson_viu.h" /* OSD_SCI_WH_M1 */ #define SCI_WH_M1_W (w) FIELD_PREP(GENMASK(28, 16), w)
drivers/gpu/drm/meson/meson_registers.h +2 -0
@@ -6,6 +6,8 @@#ifndef __MESON_REGISTERS_H#define __MESON_REGISTERS_H +#include <linux/io.h> +/* Shift all registers by 2 */ #define _REG (reg) ((reg) << 2)
drivers/gpu/drm/meson/meson_vclk.c +4 -3
@@ -5,9 +5,10 @@* Copyright (C) 2015 Amlogic, Inc. All rights reserved. */ -#include <linux/kernel.h> -#include <linux/module.h> -#include <drm/drmP.h> +#include <linux/export.h> + +#include <drm/drm_print.h> +#include "meson_drv.h" #include "meson_vclk.h"
drivers/gpu/drm/meson/meson_vclk.h +4 -0
@@ -9,6 +9,10 @@#ifndef __MESON_VCLK_H#define __MESON_VCLK_H +#include <drm/drm_modes.h> + +struct meson_drm ; +enum {MESON_VCLK_TARGET_CVBS =0 , MESON_VCLK_TARGET_HDMI = 1,
drivers/gpu/drm/meson/meson_venc.c +5 -5
@@ -5,14 +5,14 @@* Copyright (C) 2015 Amlogic, Inc. All rights reserved. */ -#include <linux/kernel.h> -#include <linux/module.h> -#include <drm/drmP.h> +#include <linux/export.h> + +#include <drm/drm_modes.h> +#include "meson_drv.h" +#include "meson_registers.h" #include "meson_venc.h" #include "meson_vpp.h" -#include "meson_vclk.h" -#include "meson_registers.h" /** * DOC: Video Encoder
drivers/gpu/drm/meson/meson_venc.h +2 -0
@@ -14,6 +14,8 @@#ifndef __MESON_VENC_H#define __MESON_VENC_H +struct drm_display_mode ; +enum {MESON_VENC_MODE_NONE =0 , MESON_VENC_MODE_CVBS_PAL,
drivers/gpu/drm/meson/meson_venc_cvbs.c +5 -6
@@ -9,19 +9,18 @@* Jasper St. Pierre <[email protected]> */ -#include <linux/kernel.h> -#include <linux/module.h> +#include <linux/export.h> #include <linux/of_graph.h> -#include <drm/drmP.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_device.h> #include <drm/drm_edid.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_print.h> -#include "meson_venc_cvbs.h" -#include "meson_venc.h" -#include "meson_vclk.h" #include "meson_registers.h" +#include "meson_vclk.h" +#include "meson_venc_cvbs.h" /* HHI VDAC Registers */ #define HHI_VDAC_CNTL0 0x2F4/* 0xbd offset in data sheet */
drivers/gpu/drm/meson/meson_viu.c +2 -5
@@ -6,13 +6,10 @@* Copyright (C) 2014 Endless Mobile */ -#include <linux/kernel.h> -#include <linux/module.h> -#include <drm/drmP.h> +#include <linux/export.h> +#include "meson_drv.h" #include "meson_viu.h" -#include "meson_vpp.h" -#include "meson_venc.h" #include "meson_registers.h" /**
drivers/gpu/drm/meson/meson_vpp.c +3 -4
@@ -6,12 +6,11 @@* Copyright (C) 2014 Endless Mobile */ -#include <linux/kernel.h> -#include <linux/module.h> -#include <drm/drmP.h> +#include <linux/export.h> +#include "meson_drv.h" -#include "meson_vpp.h" #include "meson_registers.h" +#include "meson_vpp.h" /** * DOC: Video Post Processing
drivers/gpu/drm/meson/meson_vpp.h +3 -0
@@ -9,6 +9,9 @@#ifndef __MESON_VPP_H#define __MESON_VPP_H +struct drm_rect ; +struct meson_drm ; +/* Mux VIU/VPP to ENCI */ #define MESON_VIU_VPP_MUX_ENCI 0x5/* Mux VIU/VPP to ENCP */
include/linux/soc/amlogic/meson-canvas.h +1 -0
@@ -20,6 +20,7 @@#define MESON_CANVAS_ENDIAN_SWAP64 0x7#define MESON_CANVAS_ENDIAN_SWAP128 0xf +struct device ;struct meson_canvas ;/**
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/33 drm/xen: drop use of drmP.h
In reply to a message not in the archiveThe drmP.h header is deprecated. Drop all uses. Added includes/forwards to the header files and then fixed fallout in the .c files.
---
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/xen/xen_drm_front.c | 11 ++++++++--- drivers/gpu/drm/xen/xen_drm_front.h | 12 +++++++++--- drivers/gpu/drm/xen/xen_drm_front_cfg.c | 4 ++-- drivers/gpu/drm/xen/xen_drm_front_conn.c | 1 + drivers/gpu/drm/xen/xen_drm_front_conn.h | 7 +++---- drivers/gpu/drm/xen/xen_drm_front_evtchnl.c | 4 ++-- drivers/gpu/drm/xen/xen_drm_front_gem.c | 11 +++++------ drivers/gpu/drm/xen/xen_drm_front_gem.h | 7 ++++++- drivers/gpu/drm/xen/xen_drm_front_kms.c | 7 ++++--- 9 files changed, 40 insertions(+), 24 deletions(-)
drivers/gpu/drm/xen/xen_drm_front.c +8 -3
@@ -8,13 +8,18 @@* Author: Oleksandr Andrushchenko <[email protected]> */ -#include <drm/drmP.h> +#include <linux/delay.h> +#include <linux/dma-mapping.h> +#include <linux/module.h> +#include <linux/of_device.h> +#include <drm/drm_atomic_helper.h> +#include <drm/drm_drv.h> +#include <drm/drm_ioctl.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_file.h> #include <drm/drm_gem.h> -#include <linux/of_device.h> -#include <xen/platform_pci.h> #include <xen/xen.h> #include <xen/xenbus.h>
drivers/gpu/drm/xen/xen_drm_front.h +9 -3
@@ -11,13 +11,19 @@#ifndef __XEN_DRM_FRONT_H_#define __XEN_DRM_FRONT_H_ -#include <drm/drmP.h> -#include <drm/drm_simple_kms_helper.h> -#include <linux/scatterlist.h> +#include <drm/drm_connector.h> +#include <drm/drm_simple_kms_helper.h> +#include <drm/drm_simple_kms_helper.h> +#include "xen_drm_front_cfg.h" +struct drm_device ; +struct drm_framebuffer ; +struct drm_gem_object ; +struct drm_pending_vblank_event ; +/** * DOC: Driver modes of operation in terms of display buffers used *
drivers/gpu/drm/xen/xen_drm_front_cfg.c +2 -2
@@ -8,10 +8,10 @@* Author: Oleksandr Andrushchenko <[email protected]> */ -#include <drm/drmP.h> -#include <linux/device.h> +#include <drm/drm_print.h> +#include <xen/interface/io/displif.h> #include <xen/xenbus.h>
drivers/gpu/drm/xen/xen_drm_front_conn.c +1 -0
@@ -9,6 +9,7 @@*/ #include <drm/drm_atomic_helper.h> +#include <drm/drm_drv.h> #include <drm/drm_probe_helper.h> #include <video/videomode.h>
drivers/gpu/drm/xen/xen_drm_front_conn.h +3 -4
@@ -11,11 +11,10 @@#ifndef __XEN_DRM_FRONT_CONN_H_#define __XEN_DRM_FRONT_CONN_H_ -#include <drm/drmP.h> -#include <drm/drm_crtc.h> -#include <drm/drm_encoder.h> +#include <linux/types.h> -#include <linux/wait.h> +struct drm_connector ; +struct xen_drm_front_drm_info ;struct xen_drm_front_drm_info ;
drivers/gpu/drm/xen/xen_drm_front_evtchnl.c +2 -2
@@ -8,11 +8,11 @@* Author: Oleksandr Andrushchenko <[email protected]> */ -#include <drm/drmP.h> -#include <linux/errno.h> #include <linux/irq.h> +#include <drm/drm_print.h> +#include <xen/xenbus.h> #include <xen/events.h> #include <xen/grant_table.h>
drivers/gpu/drm/xen/xen_drm_front_gem.c +5 -6
@@ -8,20 +8,19 @@* Author: Oleksandr Andrushchenko <[email protected]> */ -#include "xen_drm_front_gem.h" +#include <linux/dma-buf.h> +#include <linux/scatterlist.h> +#include <linux/shmem_fs.h> -#include <drm/drmP.h> #include <drm/drm_fb_helper.h> #include <drm/drm_gem.h> +#include <drm/drm_prime.h> #include <drm/drm_probe_helper.h> -#include <linux/dma-buf.h> -#include <linux/scatterlist.h> -#include <linux/shmem_fs.h> -#include <xen/balloon.h> #include "xen_drm_front.h" +#include "xen_drm_front_gem.h" struct xen_gem_object {struct drm_gem_object base;
drivers/gpu/drm/xen/xen_drm_front_gem.h +6 -1
@@ -11,7 +11,12 @@#ifndef __XEN_DRM_FRONT_GEM_H#define __XEN_DRM_FRONT_GEM_H -#include <drm/drmP.h> +struct dma_buf_attachment ; +struct drm_device ; +struct drm_gem_object ; +struct file ; +struct sg_table ; +struct vm_area_struct ;struct drm_gem_object *xen_drm_front_gem_create (struct drm_device *dev,size_t size);
drivers/gpu/drm/xen/xen_drm_front_kms.c +4 -3
@@ -8,17 +8,18 @@* Author: Oleksandr Andrushchenko <[email protected]> */ -#include "xen_drm_front_kms.h" - -#include <drm/drmP.h> #include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_drv.h> +#include <drm/drm_fourcc.h> #include <drm/drm_gem.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> #include "xen_drm_front.h" #include "xen_drm_front_conn.h" +#include "xen_drm_front_kms.h" /* * Timeout in ms to wait for frame done event from the backend:
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v1 02/33] drm/xen: drop use of drmP.h
Quoted 58 lines · Sam Ravnborg
The
drmP.hheader is deprecated. Drop all uses. Added includes/forwards to the header files and then fixed fallout in the .c files.Signed-off-by Sam Ravnborg <[email protected]>Cc Oleksandr Andrushchenko <[email protected]>---
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 ofdrmp.hin drm-misc"Sam
drivers/gpu/drm/xen/xen_drm_front.c | 11 ++++++++--- drivers/gpu/drm/xen/xen_drm_front.h | 12 +++++++++--- drivers/gpu/drm/xen/xen_drm_front_cfg.c | 4 ++-- drivers/gpu/drm/xen/xen_drm_front_conn.c | 1 + drivers/gpu/drm/xen/xen_drm_front_conn.h | 7 +++---- drivers/gpu/drm/xen/xen_drm_front_evtchnl.c | 4 ++-- drivers/gpu/drm/xen/xen_drm_front_gem.c | 11 +++++------ drivers/gpu/drm/xen/xen_drm_front_gem.h | 7 ++++++- drivers/gpu/drm/xen/xen_drm_front_kms.c | 7 ++++--- 9 files changed, 40 insertions(+), 24 deletions(-)drivers/gpu/drm/xen/xen_drm_front.c +8
-3@@ -8,13 +8,18 @@* Author: Oleksandr Andrushchenko <[email protected]> */ -#include <drm/drmP.h> +#include <linux/delay.h> +#include <linux/dma-mapping.h> +#include <linux/module.h> +#include <linux/of_device.h> +#include <drm/drm_atomic_helper.h> +#include <drm/drm_drv.h> +#include <drm/drm_ioctl.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_file.h> #include <drm/drm_gem.h> -#include <linux/of_device.h> -#include <xen/platform_pci.h> #include <xen/xen.h> #include <xen/xenbus.h> drivers/gpu/drm/xen/xen_drm_front.h +0
-0@@ -11,13 +11,19 @@#ifndef __XEN_DRM_FRONT_H_
drivers/gpu/drm/xen/xen_drm_front.h line 18
Quoted 10 lines
drivers/gpu/drm/xen/xen_drm_front.h +3
-3#define __XEN_DRM_FRONT_H_ -#include <drm/drmP.h> -#include <drm/drm_simple_kms_helper.h> -#include <linux/scatterlist.h> +#include <drm/drm_connector.h> +#include <drm/drm_simple_kms_helper.h> +#include <drm/drm_simple_kms_helper.h>
no need to include twice
with that fixed:
Quoted 141 lines
drivers/gpu/drm/xen/xen_drm_front.h +6
-0+#include "xen_drm_front_cfg.h" +struct drm_device ; +struct drm_framebuffer ; +struct drm_gem_object ; +struct drm_pending_vblank_event ; +/** * DOC: Driver modes of operation in terms of display buffers used * drivers/gpu/drm/xen/xen_drm_front_cfg.c +2
-2@@ -8,10 +8,10 @@* Author: Oleksandr Andrushchenko <[email protected]> */ -#include <drm/drmP.h> -#include <linux/device.h> +#include <drm/drm_print.h> +#include <xen/interface/io/displif.h> #include <xen/xenbus.h> drivers/gpu/drm/xen/xen_drm_front_conn.c +1
-0@@ -9,6 +9,7 @@*/ #include <drm/drm_atomic_helper.h> +#include <drm/drm_drv.h> #include <drm/drm_probe_helper.h> #include <video/videomode.h> drivers/gpu/drm/xen/xen_drm_front_conn.h +3
-4@@ -11,11 +11,10 @@#ifndef __XEN_DRM_FRONT_CONN_H_#define __XEN_DRM_FRONT_CONN_H_ -#include <drm/drmP.h> -#include <drm/drm_crtc.h> -#include <drm/drm_encoder.h> +#include <linux/types.h> -#include <linux/wait.h> +struct drm_connector ; +struct xen_drm_front_drm_info ;struct xen_drm_front_drm_info ;drivers/gpu/drm/xen/xen_drm_front_evtchnl.c +2
-2@@ -8,11 +8,11 @@* Author: Oleksandr Andrushchenko <[email protected]> */ -#include <drm/drmP.h> -#include <linux/errno.h> #include <linux/irq.h> +#include <drm/drm_print.h> +#include <xen/xenbus.h> #include <xen/events.h> #include <xen/grant_table.h> drivers/gpu/drm/xen/xen_drm_front_gem.c +5
-6@@ -8,20 +8,19 @@* Author: Oleksandr Andrushchenko <[email protected]> */ -#include "xen_drm_front_gem.h" +#include <linux/dma-buf.h> +#include <linux/scatterlist.h> +#include <linux/shmem_fs.h> -#include <drm/drmP.h> #include <drm/drm_fb_helper.h> #include <drm/drm_gem.h> +#include <drm/drm_prime.h> #include <drm/drm_probe_helper.h> -#include <linux/dma-buf.h> -#include <linux/scatterlist.h> -#include <linux/shmem_fs.h> -#include <xen/balloon.h> #include "xen_drm_front.h" +#include "xen_drm_front_gem.h" struct xen_gem_object {struct drm_gem_object base;drivers/gpu/drm/xen/xen_drm_front_gem.h +6
-1@@ -11,7 +11,12 @@#ifndef __XEN_DRM_FRONT_GEM_H#define __XEN_DRM_FRONT_GEM_H -#include <drm/drmP.h> +struct dma_buf_attachment ; +struct drm_device ; +struct drm_gem_object ; +struct file ; +struct sg_table ; +struct vm_area_struct ;struct drm_gem_object *xen_drm_front_gem_create (struct drm_device *dev,size_t size);drivers/gpu/drm/xen/xen_drm_front_kms.c +2
-3@@ -8,17 +8,18 @@* Author: Oleksandr Andrushchenko <[email protected]> */ -#include "xen_drm_front_kms.h" - -#include <drm/drmP.h> #include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_drv.h> +#include <drm/drm_fourcc.h> #include <drm/drm_gem.h>
drivers/gpu/drm/xen/xen_drm_front_kms.c line 25
Quoted 10 lines
drivers/gpu/drm/xen/xen_drm_front_kms.c +2
-0#include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> #include "xen_drm_front.h" #include "xen_drm_front_conn.h" +#include "xen_drm_front_kms.h" /* * Timeout in ms to wait for frame done event from the backend:
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v1 02/33] drm/xen: drop use of drmP.h
Hi Oleksandr
Quoted 14 lines
drivers/gpu/drm/xen/xen_drm_front.h line 16
Quoted 12 lines
drivers/gpu/drm/xen/xen_drm_front.h +3
-3@@ -11,13 +11,19 @@#ifndef __XEN_DRM_FRONT_H_#define __XEN_DRM_FRONT_H_ -#include <drm/drmP.h> -#include <drm/drm_simple_kms_helper.h> -#include <linux/scatterlist.h> +#include <drm/drm_connector.h> +#include <drm/drm_simple_kms_helper.h> +#include <drm/drm_simple_kms_helper.h> no need to include twice
with that fixed:
Quoted 1 line
Ups, thanks for spotting this. Will run the checkinclude script to check if there are more duplicates added by accident.
Sam
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Sam Ravnborg
AppliedRe: [PATCH v1 02/33] drm/xen: drop use of drmP.h
Quoted 17 lines · Sam Ravnborg
Hi Oleksandr
Quoted 15 lines
drivers/gpu/drm/xen/xen_drm_front.h line 16
Quoted 12 lines
drivers/gpu/drm/xen/xen_drm_front.h +3
-3@@ -11,13 +11,19 @@#ifndef __XEN_DRM_FRONT_H_#define __XEN_DRM_FRONT_H_ -#include <drm/drmP.h> -#include <drm/drm_simple_kms_helper.h> -#include <linux/scatterlist.h> +#include <drm/drm_connector.h> +#include <drm/drm_simple_kms_helper.h> +#include <drm/drm_simple_kms_helper.h> no need to include twice
with that fixed:
Applied, thanks.
Sam
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 3/33 drm/stm: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated header file drmP.h from the sole user in the stm driver. Replace with necessary include files.
---
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/stm/dw_mipi_dsi-stm.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
drivers/gpu/drm/stm/dw_mipi_dsi-stm.c +7 -3
@@ -8,13 +8,17 @@#include <linux/clk.h> #include <linux/iopoll.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> +#include <linux/platform_device.h> #include <linux/regulator/consumer.h> -#include <drm/drmP.h> -#include <drm/drm_mipi_dsi.h> -#include <drm/bridge/dw_mipi_dsi.h> +#include <video/mipi_display.h> +#include <drm/bridge/dw_mipi_dsi.h> +#include <drm/drm_mipi_dsi.h> +#include <drm/drm_print.h> +#define HWVER_130 0x31333000/* IP version 1.30 */ #define HWVER_131 0x31333100/* IP version 1.31 */
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v1 03/33] drm/stm: drop use of drmP.h
Quoted 4 lines · Sam Ravnborg
Drop use of the deprecated header file
drmP.hfrom the sole user in the stm driver. Replace with necessary include files.
Applied on drm-misc-next.
Thanks,
Benjamin
Quoted 51 lines
Signed-off-by Sam Ravnborg <[email protected]>Cc Yannick Fertre <[email protected]>Cc Philippe Cornu <[email protected]>Cc Benjamin Gaignard <[email protected]>Cc Vincent Abriou <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Maxime Coquelin <[email protected]>Cc Alexandre Torgue <[email protected]>---
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 ofdrmp.hin drm-misc"Sam
drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)drivers/gpu/drm/stm/dw_mipi_dsi-stm.c +7
-4@@ -8,13 +8,17 @@#include <linux/clk.h> #include <linux/iopoll.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> +#include <linux/platform_device.h> #include <linux/regulator/consumer.h> -#include <drm/drmP.h> -#include <drm/drm_mipi_dsi.h> -#include <drm/bridge/dw_mipi_dsi.h> +#include <video/mipi_display.h> +#include <drm/bridge/dw_mipi_dsi.h> +#include <drm/drm_mipi_dsi.h> +#include <drm/drm_print.h> +#define HWVER_130 0x31333000/* IP version 1.30 */ #define HWVER_131 0x31333100/* IP version 1.31 */ --
Quoted 2 lines
2.20.1
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 4/33 drm/tve200: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated header drmP.h.
Fix so header file became self-contained, and then fixed fallout in the other files.
---
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/tve200/tve200_display.c | 8 +++++--- drivers/gpu/drm/tve200/tve200_drm.h | 15 ++++++++++++--- drivers/gpu/drm/tve200/tve200_drv.c | 3 ++- 3 files changed, 19 insertions(+), 7 deletions(-)
drivers/gpu/drm/tve200/tve200_display.c +5 -3
@@ -9,16 +9,18 @@* Copyright (C) 2011 Texas Instruments * Copyright (C) 2017 Eric Anholt */ +#include <linux/clk.h> #include <linux/version.h> #include <linux/dma-buf.h> #include <linux/of_graph.h> -#include <drm/drmP.h> -#include <drm/drm_panel.h> +#include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fourcc.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> -#include <drm/drm_fb_cma_helper.h> +#include <drm/drm_panel.h> +#include <drm/drm_vblank.h> #include "tve200_drm.h"
drivers/gpu/drm/tve200/tve200_drm.h +12 -3
@@ -13,6 +13,18 @@#ifndef _TVE200_DRM_H_#define _TVE200_DRM_H_ +#include <linux/irqreturn.h> + +#include <drm/drm_simple_kms_helper.h> + +struct clk ; +struct drm_bridge ; +struct drm_connector ; +struct drm_device ; +struct drm_file ; +struct drm_mode_create_dumb ; +struct drm_panel ; +/* Bits 2-31 are valid physical base addresses */ #define TVE200_Y_FRAME_BASE_ADDR 0x00#define TVE200_U_FRAME_BASE_ADDR 0x04
@@ -89,9 +101,6 @@#define TVE200_CTRL_4 0x24#define TVE200_CTRL_4_RESET BIT(0)/* triggers reset of TVE200 */ -#include <drm/drm_gem.h> -#include <drm/drm_simple_kms_helper.h> -struct tve200_drm_dev_private {struct drm_device *drm;
drivers/gpu/drm/tve200/tve200_drv.c +2 -1
@@ -37,9 +37,9 @@#include <linux/slab.h> #include <linux/version.h> -#include <drm/drmP.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_bridge.h> +#include <drm/drm_drv.h> #include <drm/drm_fb_cma_helper.h> #include <drm/drm_fb_helper.h> #include <drm/drm_gem_cma_helper.h>
@@ -47,6 +47,7 @@#include <drm/drm_of.h> #include <drm/drm_panel.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> #include "tve200_drm.h"
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v1 04/33] drm/tve200: drop use of drmP.h
Quoted 9 lines · Sam Ravnborg
Drop use of the deprecated header
drmP.h.Fix so header file became self-contained, and then fixed fallout in the other files.
Signed-off-by Sam Ravnborg <[email protected]>Cc Linus Walleij <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>
Yours,
Linus Walleij
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Sam Ravnborg
AppliedRe: [PATCH v1 04/33] drm/tve200: drop use of drmP.h
Quoted 7 lines · Linus Walleij
Quoted 5 lines · Sam Ravnborg
Drop use of the deprecated header
drmP.h.Fix so header file became self-contained, and then fixed fallout in the other files.
Quoted 6 lines
Quoted 4 lines
Signed-off-by Sam Ravnborg <[email protected]>Cc Linus Walleij <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Reviewed-by Linus Walleij <[email protected]>
Applied, thanks.
Sam
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 5/33 drm/mxsfb: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated drmP.h header file.
While touching the list of include files divided them in blocks and sort them within each block. Fixed fallout in the relevant files.
---
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/mxsfb/mxsfb_crtc.c | 16 +++++++++------- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 11 +++++++---- drivers/gpu/drm/mxsfb/mxsfb_out.c | 1 - 3 files changed, 16 insertions(+), 12 deletions(-)
drivers/gpu/drm/mxsfb/mxsfb_crtc.c +9 -7
@@ -8,21 +8,23 @@* Copyright (C) 2008 Embedded Alley Solutions, Inc All Rights Reserved. */ -#include <drm/drmP.h> +#include <linux/clk.h> +#include <linux/iopoll.h> +#include <linux/of_graph.h> +#include <linux/platform_data/simplefb.h> + +#include <video/videomode.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fb_helper.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_of.h> #include <drm/drm_plane_helper.h> #include <drm/drm_probe_helper.h> #include <drm/drm_simple_kms_helper.h> -#include <linux/clk.h> -#include <linux/iopoll.h> -#include <linux/of_graph.h> -#include <linux/platform_data/simplefb.h> -#include <video/videomode.h> +#include <drm/drm_vblank.h> #include "mxsfb_drv.h" #include "mxsfb_regs.h"
drivers/gpu/drm/mxsfb/mxsfb_drv.c +7 -4
@@ -8,29 +8,32 @@* Copyright (C) 2008 Embedded Alley Solutions, Inc All Rights Reserved. */ -#include <linux/module.h> -#include <linux/spinlock.h> #include <linux/clk.h> #include <linux/component.h> +#include <linux/dma-mapping.h> #include <linux/list.h> +#include <linux/module.h> #include <linux/of_device.h> #include <linux/of_graph.h> #include <linux/of_reserved_mem.h> #include <linux/pm_runtime.h> #include <linux/reservation.h> +#include <linux/spinlock.h> -#include <drm/drmP.h> #include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_drv.h> #include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fb_helper.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> +#include <drm/drm_irq.h> #include <drm/drm_of.h> #include <drm/drm_panel.h> #include <drm/drm_probe_helper.h> #include <drm/drm_simple_kms_helper.h> +#include <drm/drm_vblank.h> #include "mxsfb_drv.h" #include "mxsfb_regs.h"
drivers/gpu/drm/mxsfb/mxsfb_out.c +0 -1
@@ -15,7 +15,6 @@#include <drm/drm_plane_helper.h> #include <drm/drm_probe_helper.h> #include <drm/drm_simple_kms_helper.h> -#include <drm/drmP.h> #include "mxsfb_drv.h"
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v1 05/33] drm/mxsfb: drop use of drmP.h
Quoted 6 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader file.While touching the list of include files divided them in blocks and sort them within each block. Fixed fallout in the relevant files.
Quoted 11 lines
Signed-off-by Sam Ravnborg <[email protected]>Cc Marek Vasut <[email protected]>Cc Stefan Agner <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Shawn Guo <[email protected]>Cc Sascha Hauer <[email protected]>Cc Pengutronix Kernel Team <[email protected]>Cc Fabio Estevam <[email protected]>Cc NXP Linux Team <[email protected]>
--
Stefan
Quoted 97 lines
---
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 ofdrmp.hin drm-misc"Sam
drivers/gpu/drm/mxsfb/mxsfb_crtc.c | 16 +++++++++------- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 11 +++++++---- drivers/gpu/drm/mxsfb/mxsfb_out.c | 1 - 3 files changed, 16 insertions(+), 12 deletions(-)drivers/gpu/drm/mxsfb/mxsfb_crtc.c +9
-7@@ -8,21 +8,23 @@* Copyright (C) 2008 Embedded Alley Solutions, Inc All Rights Reserved. */ -#include <drm/drmP.h> +#include <linux/clk.h> +#include <linux/iopoll.h> +#include <linux/of_graph.h> +#include <linux/platform_data/simplefb.h> + +#include <video/videomode.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fb_helper.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_of.h> #include <drm/drm_plane_helper.h> #include <drm/drm_probe_helper.h> #include <drm/drm_simple_kms_helper.h> -#include <linux/clk.h> -#include <linux/iopoll.h> -#include <linux/of_graph.h> -#include <linux/platform_data/simplefb.h> -#include <video/videomode.h> +#include <drm/drm_vblank.h> #include "mxsfb_drv.h" #include "mxsfb_regs.h" drivers/gpu/drm/mxsfb/mxsfb_drv.c +7
-4@@ -8,29 +8,32 @@* Copyright (C) 2008 Embedded Alley Solutions, Inc All Rights Reserved. */ -#include <linux/module.h> -#include <linux/spinlock.h> #include <linux/clk.h> #include <linux/component.h> +#include <linux/dma-mapping.h> #include <linux/list.h> +#include <linux/module.h> #include <linux/of_device.h> #include <linux/of_graph.h> #include <linux/of_reserved_mem.h> #include <linux/pm_runtime.h> #include <linux/reservation.h> +#include <linux/spinlock.h> -#include <drm/drmP.h> #include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_drv.h> #include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fb_helper.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> +#include <drm/drm_irq.h> #include <drm/drm_of.h> #include <drm/drm_panel.h> #include <drm/drm_probe_helper.h> #include <drm/drm_simple_kms_helper.h> +#include <drm/drm_vblank.h> #include "mxsfb_drv.h" #include "mxsfb_regs.h" drivers/gpu/drm/mxsfb/mxsfb_out.c +0
-0
drivers/gpu/drm/mxsfb/mxsfb_out.c line 19
Quoted 6 lines
drivers/gpu/drm/mxsfb/mxsfb_out.c +0
-1@@ -15,7 +15,6 @@#include <drm/drm_plane_helper.h> #include <drm/drm_probe_helper.h> #include <drm/drm_simple_kms_helper.h> -#include <drm/drmP.h> #include "mxsfb_drv.h"
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Sam Ravnborg
AppliedRe: [PATCH v1 05/33] drm/mxsfb: drop use of drmP.h
Quoted 20 lines · Stefan Agner
Quoted 6 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader file.While touching the list of include files divided them in blocks and sort them within each block. Fixed fallout in the relevant files.
Quoted 11 lines
Signed-off-by Sam Ravnborg <[email protected]>Cc Marek Vasut <[email protected]>Cc Stefan Agner <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Shawn Guo <[email protected]>Cc Sascha Hauer <[email protected]>Cc Pengutronix Kernel Team <[email protected]>Cc Fabio Estevam <[email protected]>Cc NXP Linux Team <[email protected]>
Quoted 1 line
Acked-by Stefan Agner <[email protected]>
Applied, thanks.
As a strange note, this mail also showed up in my gmail account. Maybe because I send mails out using gmail but the mail address is not visible anywhere. Anyway - just a note.
Sam
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Stefan Agner
maintainerRe: [PATCH v1 05/33] drm/mxsfb: drop use of drmP.h
Quoted 21 lines · Sam Ravnborg
Quoted 20 lines · Stefan Agner
Quoted 17 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader file.While touching the list of include files divided them in blocks and sort them within each block. Fixed fallout in the relevant files.
Signed-off-by Sam Ravnborg <[email protected]>Cc Marek Vasut <[email protected]>Cc Stefan Agner <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Shawn Guo <[email protected]>Cc Sascha Hauer <[email protected]>Cc Pengutronix Kernel Team <[email protected]>Cc Fabio Estevam <[email protected]>Cc NXP Linux Team <[email protected]>
Quoted 7 lines
Quoted 1 line
Acked-by Stefan Agner <[email protected]>Applied, thanks.
As a strange note, this mail also showed up in my gmail account. Maybe because I send mails out using gmail but the mail address is not visible anywhere. Anyway - just a note.
In the email I received your gmail was in the header as "Sender", and the other email in "From". Not sure what is the right address to answer to, but it seems that my client chose "Sender"...?
--
Stefan
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 6/33 drm/v3d: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated drmP.h header file. Made v3d_drv.h self-contained with only sufficient include files.
Fixed fallout in remaining files.
---
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/v3d/v3d_debugfs.c | 3 ++- drivers/gpu/drm/v3d/v3d_drv.c | 5 ++++- drivers/gpu/drm/v3d/v3d_drv.h | 13 +++++++++++-- drivers/gpu/drm/v3d/v3d_gem.c | 12 +++++++----- drivers/gpu/drm/v3d/v3d_irq.c | 2 ++ 5 files changed, 26 insertions(+), 9 deletions(-)
drivers/gpu/drm/v3d/v3d_debugfs.c +2 -1
@@ -6,7 +6,8 @@#include <linux/debugfs.h> #include <linux/pm_runtime.h> #include <linux/seq_file.h> -#include <drm/drmP.h> + +#include <drm/drm_debugfs.h> #include "v3d_drv.h" #include "v3d_regs.h"
drivers/gpu/drm/v3d/v3d_drv.c +4 -1
@@ -14,16 +14,19 @@#include <linux/clk.h> #include <linux/device.h> +#include <linux/dma-mapping.h> #include <linux/io.h> #include <linux/module.h> #include <linux/of_platform.h> #include <linux/platform_device.h> #include <linux/pm_runtime.h> #include <linux/reset.h> + +#include <drm/drm_drv.h> #include <drm/drm_fb_cma_helper.h> #include <drm/drm_fb_helper.h> +#include <uapi/drm/v3d_drm.h> -#include "uapi/drm/v3d_drm.h" #include "v3d_drv.h" #include "v3d_regs.h"
drivers/gpu/drm/v3d/v3d_drv.h +11 -2
@@ -1,14 +1,23 @@// SPDX-License-Identifier: GPL-2.0+ /* Copyright (C) 2015-2018 Broadcom */ -#include <linux/mm_types.h> -#include <drm/drmP.h> +#include <linux/delay.h> +#include <linux/mutex.h> +#include <linux/spinlock_types.h> +#include <linux/workqueue.h> +#include <drm/drm_encoder.h> #include <drm/drm_gem.h> #include <drm/drm_gem_shmem_helper.h> #include <drm/gpu_scheduler.h> +#include "uapi/drm/v3d_drm.h" +struct clk ; +struct device ; +struct platform_device ; +struct reset_control ; +#define GMP_GRANULARITY (128 * 1024)/* Enum for each of the V3D queues. */
drivers/gpu/drm/v3d/v3d_gem.c +7 -5
@@ -1,17 +1,19 @@// SPDX-License-Identifier: GPL-2.0+ /* Copyright (C) 2014-2018 Broadcom */ -#include <drm/drmP.h> -#include <drm/drm_syncobj.h> +#include <linux/device.h> +#include <linux/dma-mapping.h> +#include <linux/io.h> #include <linux/module.h> #include <linux/platform_device.h> #include <linux/pm_runtime.h> #include <linux/reset.h> -#include <linux/device.h> -#include <linux/io.h> #include <linux/sched/signal.h> +#include <linux/uaccess.h> + +#include <drm/drm_syncobj.h> +#include <uapi/drm/v3d_drm.h> -#include "uapi/drm/v3d_drm.h" #include "v3d_drv.h" #include "v3d_regs.h" #include "v3d_trace.h"
drivers/gpu/drm/v3d/v3d_irq.c +2 -0
@@ -13,6 +13,8 @@* current job can make progress. */ +#include <linux/platform_device.h> +#include "v3d_drv.h" #include "v3d_regs.h" #include "v3d_trace.h"
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 7/33 drm/pl111: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated drmP.h header. Sort includes in blocks while touching the files.
---
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/pl111/pl111_debugfs.c | 4 +++- drivers/gpu/drm/pl111/pl111_display.c | 6 ++++-- drivers/gpu/drm/pl111/pl111_drm.h | 11 ++++++----- drivers/gpu/drm/pl111/pl111_drv.c | 9 +++++---- drivers/gpu/drm/pl111/pl111_nomadik.h | 3 ++- drivers/gpu/drm/pl111/pl111_versatile.c | 9 +++++---- drivers/gpu/drm/pl111/pl111_versatile.h | 3 +++ 7 files changed, 28 insertions(+), 17 deletions(-)
drivers/gpu/drm/pl111/pl111_debugfs.c +3 -1
@@ -8,8 +8,10 @@#include <linux/amba/clcd-regs.h> #include <linux/seq_file.h> +#include <drm/drm_debugfs.h> -#include <drm/drmP.h> +#include <drm/drm_file.h> +#include "pl111_drm.h" #define REGDEF (reg) { reg, #reg }
drivers/gpu/drm/pl111/pl111_display.c +4 -2
@@ -11,14 +11,16 @@#include <linux/amba/clcd-regs.h> #include <linux/clk.h> +#include <linux/delay.h> #include <linux/version.h> #include <linux/dma-buf.h> #include <linux/of_graph.h> -#include <drm/drmP.h> +#include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fourcc.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> -#include <drm/drm_fb_cma_helper.h> +#include <drm/drm_vblank.h> #include "pl111_drm.h"
drivers/gpu/drm/pl111/pl111_drm.h +6 -5
@@ -13,14 +13,15 @@#ifndef _PL111_DRM_H_#define _PL111_DRM_H_ -#include <drm/drm_gem.h> -#include <drm/drm_simple_kms_helper.h> +#include <linux/clk-provider.h> +#include <linux/interrupt.h> + +#include <drm/drm_bridge.h> #include <drm/drm_connector.h> #include <drm/drm_encoder.h> +#include <drm/drm_gem.h> #include <drm/drm_panel.h> -#include <drm/drm_bridge.h> -#include <linux/clk-provider.h> -#include <linux/interrupt.h> +#include <drm/drm_simple_kms_helper.h> #define CLCD_IRQ_NEXTBASE_UPDATE BIT(2)
drivers/gpu/drm/pl111/pl111_drv.c +5 -4
@@ -48,18 +48,18 @@#include <linux/amba/bus.h> #include <linux/amba/clcd-regs.h> -#include <linux/version.h> -#include <linux/shmem_fs.h> #include <linux/dma-buf.h> #include <linux/module.h> -#include <linux/slab.h> #include <linux/of.h> #include <linux/of_graph.h> #include <linux/of_reserved_mem.h> +#include <linux/shmem_fs.h> +#include <linux/slab.h> +#include <linux/version.h> -#include <drm/drmP.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_bridge.h> +#include <drm/drm_drv.h> #include <drm/drm_fb_cma_helper.h> #include <drm/drm_fb_helper.h> #include <drm/drm_gem_cma_helper.h>
@@ -67,6 +67,7 @@#include <drm/drm_of.h> #include <drm/drm_panel.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> #include "pl111_drm.h" #include "pl111_versatile.h"
drivers/gpu/drm/pl111/pl111_nomadik.h +2 -1
@@ -1,10 +1,11 @@// SPDX-License-Identifier: GPL-2.0+ -#include <linux/device.h> #ifndef PL111_NOMADIK_H #define PL111_NOMADIK_H #endif +struct device ; +#ifdef CONFIG_ARCH_NOMADIK void pl111_nomadik_init (struct device *dev);
drivers/gpu/drm/pl111/pl111_versatile.c +5 -4
@@ -1,13 +1,14 @@// SPDX-License-Identifier: GPL-2.0-only +#include <linux/amba/clcd-regs.h> +#include <linux/bitops.h> #include <linux/device.h> +#include <linux/mfd/syscon.h> +#include <linux/module.h> #include <linux/of.h> #include <linux/of_platform.h> #include <linux/regmap.h> -#include <linux/mfd/syscon.h> -#include <linux/bitops.h> -#include <linux/module.h> -#include <drm/drmP.h> +#include "pl111_versatile.h" #include "pl111_vexpress.h" #include "pl111_drm.h"
drivers/gpu/drm/pl111/pl111_versatile.h +3 -0
@@ -4,6 +4,9 @@#ifndef PL111_VERSATILE_H #define PL111_VERSATILE_H +struct device ; +struct pl111_drm_dev_private ; +int pl111_versatile_init (struct device *dev,struct pl111_drm_dev_private *priv);#endif
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 8/33 drm/fsl-dcu: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated drmP.h header file.
Fix fallout.
---
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/fsl-dcu/fsl_dcu_drm_crtc.c | 5 +++-- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 4 +++- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_kms.c | 1 - drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c | 2 +- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c | 1 - 5 files changed, 7 insertions(+), 6 deletions(-)
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c +3 -2
@@ -8,12 +8,13 @@#include <linux/clk.h> #include <linux/regmap.h> -#include <drm/drmP.h> +#include <video/videomode.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> #include <drm/drm_probe_helper.h> -#include <video/videomode.h> +#include <drm/drm_vblank.h> #include "fsl_dcu_drm_crtc.h" #include "fsl_dcu_drm_drv.h"
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c +3 -1
@@ -18,13 +18,15 @@#include <linux/pm_runtime.h> #include <linux/regmap.h> -#include <drm/drmP.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_drv.h> #include <drm/drm_fb_cma_helper.h> #include <drm/drm_fb_helper.h> #include <drm/drm_gem_cma_helper.h> +#include <drm/drm_irq.h> #include <drm/drm_modeset_helper.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> #include "fsl_dcu_drm_crtc.h" #include "fsl_dcu_drm_drv.h"
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_kms.c +0 -1
@@ -5,7 +5,6 @@* Freescale DCU drm device driver */ -#include <drm/drmP.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_fb_cma_helper.h> #include <drm/drm_gem_framebuffer_helper.h>
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c +1 -1
@@ -7,10 +7,10 @@#include <linux/regmap.h> -#include <drm/drmP.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> #include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fourcc.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_plane_helper.h> #include <drm/drm_probe_helper.h>
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c +0 -1
@@ -8,7 +8,6 @@#include <linux/backlight.h> #include <linux/of_graph.h> -#include <drm/drmP.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_of.h> #include <drm/drm_panel.h>
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v1 08/33] drm/fsl-dcu: drop use of drmP.h
Quoted 6 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader file.
Fix fallout.Signed-off-by Sam Ravnborg <[email protected]>Cc Stefan Agner <[email protected]>Cc Alison Wang <[email protected]>
--
Stefan
Quoted 94 lines
---
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 ofdrmp.hin drm-misc"Sam
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c | 5 +++-- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 4 +++- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_kms.c | 1 - drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c | 2 +- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c | 1 - 5 files changed, 7 insertions(+), 6 deletions(-)drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c +3
-2@@ -8,12 +8,13 @@#include <linux/clk.h> #include <linux/regmap.h> -#include <drm/drmP.h> +#include <video/videomode.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> #include <drm/drm_probe_helper.h> -#include <video/videomode.h> +#include <drm/drm_vblank.h> #include "fsl_dcu_drm_crtc.h" #include "fsl_dcu_drm_drv.h" drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c +3
-1@@ -18,13 +18,15 @@#include <linux/pm_runtime.h> #include <linux/regmap.h> -#include <drm/drmP.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_drv.h> #include <drm/drm_fb_cma_helper.h> #include <drm/drm_fb_helper.h> #include <drm/drm_gem_cma_helper.h> +#include <drm/drm_irq.h> #include <drm/drm_modeset_helper.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> #include "fsl_dcu_drm_crtc.h" #include "fsl_dcu_drm_drv.h" drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_kms.c +0
-1@@ -5,7 +5,6 @@* Freescale DCU drm device driver */ -#include <drm/drmP.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_fb_cma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c +1
-1@@ -7,10 +7,10 @@#include <linux/regmap.h> -#include <drm/drmP.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> #include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fourcc.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_plane_helper.h> #include <drm/drm_probe_helper.h> drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c +0
-0
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c line 13
Quoted 7 lines
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c +0
-1@@ -8,7 +8,6 @@#include <linux/backlight.h> #include <linux/of_graph.h> -#include <drm/drmP.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_of.h> #include <drm/drm_panel.h>
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Sam Ravnborg
AppliedRe: [PATCH v1 08/33] drm/fsl-dcu: drop use of drmP.h
Quoted 9 lines · Stefan Agner
Quoted 6 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader file.
Fix fallout.Signed-off-by Sam Ravnborg <[email protected]>Cc Stefan Agner <[email protected]>Cc Alison Wang <[email protected]>Acked-by Stefan Agner <[email protected]>
Thanks, applied.
Sam
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 9/33 drm/qxl: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated drmP.h header file. While touching the files divided includes in blocks, and when needed sort the blocks.
Fix fallout.
---
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(-)
drivers/gpu/drm/qxl/qxl_cmd.c +2 -0
@@ -25,6 +25,8 @@/* QXL cmd/ring handling */ +#include <linux/delay.h> +#include <drm/drm_util.h> #include "qxl_drv.h"
drivers/gpu/drm/qxl/qxl_debugfs.c +2 -2
@@ -28,9 +28,9 @@* Alon Levy <[email protected]> */ -#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"
drivers/gpu/drm/qxl/qxl_display.c +3 -0
@@ -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"
drivers/gpu/drm/qxl/qxl_draw.c +2 -0
@@ -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"
drivers/gpu/drm/qxl/qxl_drv.c +7 -3
@@ -28,14 +28,18 @@* Alon Levy <[email protected]> */ -#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[] = {
drivers/gpu/drm/qxl/qxl_drv.h +3 -4
@@ -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"
drivers/gpu/drm/qxl/qxl_gem.c +0 -1
@@ -23,7 +23,6 @@* Alon Levy */ -#include <drm/drmP.h> #include <drm/drm.h> #include "qxl_drv.h"
drivers/gpu/drm/qxl/qxl_ioctl.c +3 -0
@@ -23,6 +23,9 @@* Alon Levy */ +#include <linux/pci.h> +#include <linux/uaccess.h> +#include "qxl_drv.h" #include "qxl_object.h"
drivers/gpu/drm/qxl/qxl_irq.c +4 -0
@@ -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)
drivers/gpu/drm/qxl/qxl_kms.c +6 -3
@@ -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;
drivers/gpu/drm/qxl/qxl_release.c +5 -1
@@ -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
drivers/gpu/drm/qxl/qxl_ttm.c +9 -7
@@ -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;
Signature · 1 line
2.20.1
Quoted 10 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader file. While touching the files divided includes in blocks, and when needed sort the blocks.
Fix fallout.Signed-off-by Sam Ravnborg <[email protected]>Cc Dave Airlie <[email protected]>Cc Gerd Hoffmann <[email protected]>
_______________________________________________
Spice-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/spice-devel
Sam Ravnborg
AppliedQuoted 6 lines · Gerd Hoffmann
Quoted 5 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader file. While touching the files divided includes in blocks, and when needed sort the blocks.
Fix fallout.
Quoted 7 lines
Quoted 5 lines
Signed-off-by Sam Ravnborg <[email protected]>Cc Dave Airlie <[email protected]>Cc Gerd Hoffmann <[email protected]>Acked-by Gerd Hoffmann <[email protected]>
Thanks, applied.
Sam
_______________________________________________
Spice-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/spice-devel
Sam Ravnborg
AppliedQuoted 6 lines · Gerd Hoffmann
Quoted 5 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader file. While touching the files divided includes in blocks, and when needed sort the blocks.
Fix fallout.
Quoted 7 lines
Quoted 5 lines
Signed-off-by Sam Ravnborg <[email protected]>Cc Dave Airlie <[email protected]>Cc Gerd Hoffmann <[email protected]>Acked-by Gerd Hoffmann <[email protected]>
Thanks, applied.
Sam
Quoted 10 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader file. While touching the files divided includes in blocks, and when needed sort the blocks.
Fix fallout.Signed-off-by Sam Ravnborg <[email protected]>Cc Dave Airlie <[email protected]>Cc Gerd Hoffmann <[email protected]>
PATCH 10/33 drm/zte: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated drmP.h header file. Fix fallout.
---
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/zte/zx_drm_drv.c | 3 ++- drivers/gpu/drm/zte/zx_hdmi.c | 2 +- drivers/gpu/drm/zte/zx_plane.c | 2 +- drivers/gpu/drm/zte/zx_tvenc.c | 4 +++- drivers/gpu/drm/zte/zx_vga.c | 4 +++- drivers/gpu/drm/zte/zx_vou.c | 5 ++++- 6 files changed, 14 insertions(+), 6 deletions(-)
drivers/gpu/drm/zte/zx_drm_drv.c +2 -1
@@ -18,13 +18,14 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> +#include <drm/drm_drv.h> #include <drm/drm_fb_cma_helper.h> #include <drm/drm_fb_helper.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_of.h> #include <drm/drm_probe_helper.h> -#include <drm/drmP.h> +#include <drm/drm_vblank.h> #include "zx_drm_drv.h" #include "zx_vou.h"
drivers/gpu/drm/zte/zx_hdmi.c +1 -1
@@ -23,7 +23,7 @@#include <drm/drm_edid.h> #include <drm/drm_of.h> #include <drm/drm_probe_helper.h> -#include <drm/drmP.h> +#include <drm/drm_print.h> #include <sound/hdmi-codec.h>
drivers/gpu/drm/zte/zx_plane.c +1 -1
@@ -11,10 +11,10 @@#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fourcc.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_modeset_helper_vtables.h> #include <drm/drm_plane_helper.h> -#include <drm/drmP.h> #include "zx_common_regs.h" #include "zx_drm_drv.h"
drivers/gpu/drm/zte/zx_tvenc.c +3 -1
@@ -11,11 +11,13 @@#include <linux/clk.h> #include <linux/component.h> #include <linux/mfd/syscon.h> +#include <linux/module.h> +#include <linux/platform_device.h> #include <linux/regmap.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_print.h> #include <drm/drm_probe_helper.h> -#include <drm/drmP.h> #include "zx_drm_drv.h" #include "zx_tvenc_regs.h"
drivers/gpu/drm/zte/zx_vga.c +3 -1
@@ -10,11 +10,13 @@#include <linux/clk.h> #include <linux/component.h> #include <linux/mfd/syscon.h> +#include <linux/module.h> +#include <linux/platform_device.h> #include <linux/regmap.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_print.h> #include <drm/drm_probe_helper.h> -#include <drm/drmP.h> #include "zx_drm_drv.h" #include "zx_vga_regs.h"
drivers/gpu/drm/zte/zx_vou.c +4 -1
@@ -10,7 +10,10 @@#include <linux/clk.h> #include <linux/component.h> +#include <linux/module.h> #include <linux/of_address.h> +#include <linux/platform_device.h> +#include <video/videomode.h> #include <drm/drm_atomic_helper.h>
@@ -21,7 +24,7 @@#include <drm/drm_of.h> #include <drm/drm_plane_helper.h> #include <drm/drm_probe_helper.h> -#include <drm/drmP.h> +#include <drm/drm_vblank.h> #include "zx_common_regs.h" #include "zx_drm_drv.h"
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v1 10/33] drm/zte: drop use of drmP.h
Quoted 7 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader file. Fix fallout.Signed-off-by Sam Ravnborg <[email protected]>Cc Shawn Guo <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 11/33 drm/sun4i: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated drmP.h header file.
While touching the list of include file, use the typical order of the blocks:
\#include <linux/*>
\#include <video/*>
\#include <drm/*>
\#include ""
Within each block, sort the files.
Include necessary files to fix build after the drmP.h removal.
---
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/sun4i/sun4i_backend.c | 16 +++++++++------- drivers/gpu/drm/sun4i/sun4i_crtc.c | 13 +++++++------ drivers/gpu/drm/sun4i/sun4i_drv.c | 5 ++++- drivers/gpu/drm/sun4i/sun4i_framebuffer.c | 1 - drivers/gpu/drm/sun4i/sun4i_frontend.c | 10 +++++++--- drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 17 +++++++++-------- drivers/gpu/drm/sun4i/sun4i_layer.c | 3 +-- drivers/gpu/drm/sun4i/sun4i_lvds.c | 2 +- drivers/gpu/drm/sun4i/sun4i_rgb.c | 2 +- drivers/gpu/drm/sun4i/sun4i_tcon.c | 20 +++++++++++--------- drivers/gpu/drm/sun4i/sun4i_tv.c | 4 +++- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 9 +++++---- drivers/gpu/drm/sun4i/sun8i_csc.c | 2 +- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 3 +-- drivers/gpu/drm/sun4i/sun8i_mixer.c | 14 +++++++------- drivers/gpu/drm/sun4i/sun8i_tcon_top.c | 6 +++--- drivers/gpu/drm/sun4i/sun8i_ui_layer.c | 2 +- drivers/gpu/drm/sun4i/sun8i_vi_layer.c | 1 - 18 files changed, 71 insertions(+), 59 deletions(-)
drivers/gpu/drm/sun4i/sun4i_backend.c +9 -7
@@ -6,21 +6,23 @@* Maxime Ripard <[email protected]> */ -#include <drm/drmP.h> +#include <linux/component.h> +#include <linux/list.h> +#include <linux/module.h> +#include <linux/of_device.h> +#include <linux/of_graph.h> +#include <linux/platform_device.h> +#include <linux/reset.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> #include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fourcc.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_plane_helper.h> #include <drm/drm_probe_helper.h> -#include <linux/component.h> -#include <linux/list.h> -#include <linux/of_device.h> -#include <linux/of_graph.h> -#include <linux/reset.h> -#include "sun4i_backend.h" #include "sun4i_drv.h" #include "sun4i_frontend.h"
drivers/gpu/drm/sun4i/sun4i_crtc.c +7 -6
@@ -6,12 +6,6 @@* Maxime Ripard <[email protected]> */ -#include <drm/drmP.h> -#include <drm/drm_atomic_helper.h> -#include <drm/drm_crtc.h> -#include <drm/drm_modes.h> -#include <drm/drm_probe_helper.h> -#include <linux/clk-provider.h> #include <linux/ioport.h> #include <linux/of_address.h>
@@ -21,6 +15,13 @@#include <video/videomode.h> +#include <drm/drm_atomic_helper.h> +#include <drm/drm_crtc.h> +#include <drm/drm_modes.h> +#include <drm/drm_print.h> +#include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> +#include "sun4i_backend.h" #include "sun4i_crtc.h" #include "sun4i_drv.h"
drivers/gpu/drm/sun4i/sun4i_drv.c +4 -1
@@ -8,16 +8,19 @@#include <linux/component.h> #include <linux/kfifo.h> +#include <linux/module.h> #include <linux/of_graph.h> #include <linux/of_reserved_mem.h> +#include <linux/platform_device.h> -#include <drm/drmP.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_drv.h> #include <drm/drm_fb_cma_helper.h> #include <drm/drm_fb_helper.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_of.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> #include "sun4i_drv.h" #include "sun4i_frontend.h"
drivers/gpu/drm/sun4i/sun4i_framebuffer.c +0 -1
@@ -9,7 +9,6 @@#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_gem_framebuffer_helper.h> -#include <drm/drmP.h> #include "sun4i_drv.h" #include "sun4i_framebuffer.h"
drivers/gpu/drm/sun4i/sun4i_frontend.c +7 -3
@@ -3,9 +3,6 @@* Copyright (C) 2017 Free Electrons * Maxime Ripard <[email protected]> */ -#include <drm/drmP.h> -#include <drm/drm_gem_cma_helper.h> -#include <drm/drm_fb_cma_helper.h> #include <linux/clk.h> #include <linux/component.h>
@@ -16,6 +13,13 @@#include <linux/regmap.h> #include <linux/reset.h> +#include <drm/drm_device.h> +#include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fourcc.h> +#include <drm/drm_framebuffer.h> +#include <drm/drm_gem_cma_helper.h> +#include <drm/drm_plane.h> +#include "sun4i_drv.h" #include "sun4i_frontend.h"
drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c +9 -8
@@ -5,23 +5,24 @@* Maxime Ripard <[email protected]> */ -#include <drm/drmP.h> -#include <drm/drm_atomic_helper.h> -#include <drm/drm_probe_helper.h> -#include <drm/drm_edid.h> -#include <drm/drm_encoder.h> -#include <drm/drm_of.h> -#include <drm/drm_panel.h> -#include <linux/clk.h> #include <linux/component.h> #include <linux/iopoll.h> +#include <linux/module.h> #include <linux/of_device.h> #include <linux/platform_device.h> #include <linux/pm_runtime.h> #include <linux/regmap.h> #include <linux/reset.h> +#include <drm/drm_atomic_helper.h> +#include <drm/drm_edid.h> +#include <drm/drm_encoder.h> +#include <drm/drm_of.h> +#include <drm/drm_panel.h> +#include <drm/drm_print.h> +#include <drm/drm_probe_helper.h> +#include "sun4i_backend.h" #include "sun4i_crtc.h" #include "sun4i_drv.h"
drivers/gpu/drm/sun4i/sun4i_layer.c +1 -2
@@ -7,9 +7,8 @@*/ #include <drm/drm_atomic_helper.h> -#include <drm/drm_plane_helper.h> #include <drm/drm_gem_framebuffer_helper.h> -#include <drm/drmP.h> +#include <drm/drm_plane_helper.h> #include "sun4i_backend.h" #include "sun4i_frontend.h"
drivers/gpu/drm/sun4i/sun4i_lvds.c +1 -1
@@ -6,10 +6,10 @@#include <linux/clk.h> -#include <drm/drmP.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_of.h> #include <drm/drm_panel.h> +#include <drm/drm_print.h> #include <drm/drm_probe_helper.h> #include "sun4i_crtc.h"
drivers/gpu/drm/sun4i/sun4i_rgb.c +1 -1
@@ -8,10 +8,10 @@#include <linux/clk.h> -#include <drm/drmP.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_of.h> #include <drm/drm_panel.h> +#include <drm/drm_print.h> #include <drm/drm_probe_helper.h> #include "sun4i_crtc.h"
drivers/gpu/drm/sun4i/sun4i_tcon.c +11 -9
@@ -6,7 +6,15 @@* Maxime Ripard <[email protected]> */ -#include <drm/drmP.h> +#include <linux/component.h> +#include <linux/ioport.h> +#include <linux/module.h> +#include <linux/of_address.h> +#include <linux/of_device.h> +#include <linux/of_irq.h> +#include <linux/regmap.h> +#include <linux/reset.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_connector.h> #include <drm/drm_crtc.h>
@@ -14,18 +22,12 @@#include <drm/drm_modes.h> #include <drm/drm_of.h> #include <drm/drm_panel.h> +#include <drm/drm_print.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> #include <uapi/drm/drm_mode.h> -#include <linux/component.h> -#include <linux/ioport.h> -#include <linux/of_address.h> -#include <linux/of_device.h> -#include <linux/of_irq.h> -#include <linux/regmap.h> -#include <linux/reset.h> -#include "sun4i_crtc.h" #include "sun4i_dotclock.h" #include "sun4i_drv.h"
drivers/gpu/drm/sun4i/sun4i_tv.c +3 -1
@@ -8,14 +8,16 @@#include <linux/clk.h> #include <linux/component.h> +#include <linux/module.h> #include <linux/of_address.h> +#include <linux/platform_device.h> #include <linux/regmap.h> #include <linux/reset.h> -#include <drm/drmP.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_of.h> #include <drm/drm_panel.h> +#include <drm/drm_print.h> #include <drm/drm_probe_helper.h> #include "sun4i_crtc.h"
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c +5 -4
@@ -9,19 +9,20 @@#include <linux/clk.h> #include <linux/component.h> #include <linux/crc-ccitt.h> +#include <linux/module.h> #include <linux/of_address.h> +#include <linux/phy/phy-mipi-dphy.h> +#include <linux/phy/phy.h> +#include <linux/platform_device.h> #include <linux/pm_runtime.h> #include <linux/regmap.h> #include <linux/reset.h> #include <linux/slab.h> -#include <linux/phy/phy.h> -#include <linux/phy/phy-mipi-dphy.h> - -#include <drm/drmP.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_mipi_dsi.h> #include <drm/drm_panel.h> +#include <drm/drm_print.h> #include <drm/drm_probe_helper.h> #include "sun4i_crtc.h"
drivers/gpu/drm/sun4i/sun8i_csc.c +1 -1
@@ -3,7 +3,7 @@* Copyright (C) Jernej Skrabec <[email protected]> */ -#include <drm/drmP.h> +#include <drm/drm_print.h> #include "sun8i_csc.h" #include "sun8i_mixer.h"
drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c +1 -2
@@ -8,9 +8,8 @@#include <linux/of_device.h> #include <linux/platform_device.h> -#include <drm/drm_of.h> -#include <drm/drmP.h> #include <drm/drm_crtc_helper.h> +#include <drm/drm_of.h> #include "sun8i_dw_hdmi.h" #include "sun8i_tcon_top.h"
drivers/gpu/drm/sun4i/sun8i_mixer.c +7 -7
@@ -7,7 +7,13 @@* Copyright (C) 2015 NextThing Co */ -#include <drm/drmP.h> +#include <linux/component.h> +#include <linux/dma-mapping.h> +#include <linux/module.h> +#include <linux/of_device.h> +#include <linux/of_graph.h> +#include <linux/reset.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> #include <drm/drm_fb_cma_helper.h>
@@ -15,12 +21,6 @@#include <drm/drm_plane_helper.h> #include <drm/drm_probe_helper.h> -#include <linux/component.h> -#include <linux/dma-mapping.h> -#include <linux/of_device.h> -#include <linux/of_graph.h> -#include <linux/reset.h> -#include "sun4i_drv.h" #include "sun8i_mixer.h" #include "sun8i_ui_layer.h"
drivers/gpu/drm/sun4i/sun8i_tcon_top.c +3 -3
@@ -1,18 +1,18 @@// SPDX-License-Identifier: GPL-2.0+ /* Copyright (c) 2018 Jernej Skrabec <[email protected]> */ -#include <drm/drmP.h> - -#include <dt-bindings/clock/sun8i-tcon-top.h> #include <linux/bitfield.h> #include <linux/component.h> #include <linux/device.h> +#include <linux/io.h> #include <linux/module.h> #include <linux/of_device.h> #include <linux/of_graph.h> #include <linux/platform_device.h> +#include <dt-bindings/clock/sun8i-tcon-top.h> +#include "sun8i_tcon_top.h" struct sun8i_tcon_top_quirks {
drivers/gpu/drm/sun4i/sun8i_ui_layer.c +1 -1
@@ -13,11 +13,11 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> #include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fourcc.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_plane_helper.h> #include <drm/drm_probe_helper.h> -#include <drm/drmP.h> #include "sun8i_ui_layer.h" #include "sun8i_mixer.h"
drivers/gpu/drm/sun4i/sun8i_vi_layer.c +0 -1
@@ -11,7 +11,6 @@#include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_plane_helper.h> #include <drm/drm_probe_helper.h> -#include <drm/drmP.h> #include "sun8i_vi_layer.h" #include "sun8i_mixer.h"
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 12/33 drm/vkms: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated drmP.h header.
Replace it with the necessary includes in the individual .c files. The header files was self-contained, and extra includes were not added there.
---
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/vkms/vkms_crc.c | 5 ++++- drivers/gpu/drm/vkms/vkms_crtc.c | 4 +++- drivers/gpu/drm/vkms/vkms_drv.c | 11 +++++++++-- drivers/gpu/drm/vkms/vkms_drv.h | 4 ++-- drivers/gpu/drm/vkms/vkms_gem.c | 1 + drivers/gpu/drm/vkms/vkms_plane.c | 6 ++++-- 6 files changed, 23 insertions(+), 8 deletions(-)
drivers/gpu/drm/vkms/vkms_crc.c +4 -1
@@ -1,10 +1,13 @@// SPDX-License-Identifier: GPL-2.0+ -#include "vkms_drv.h" #include <linux/crc32.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_gem_framebuffer_helper.h> +#include <drm/drm_vblank.h> + +#include "vkms_drv.h" /** * compute_crc - Compute CRC value on output frame
drivers/gpu/drm/vkms/vkms_crtc.c +3 -1
@@ -1,9 +1,11 @@// SPDX-License-Identifier: GPL-2.0+ -#include "vkms_drv.h" #include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> + +#include "vkms_drv.h" static enum hrtimer_restart vkms_vblank_simulate (struct hrtimer *timer) {
drivers/gpu/drm/vkms/vkms_drv.c +9 -2
@@ -10,12 +10,19 @@*/ #include <linux/module.h> -#include <drm/drm_gem.h> +#include <linux/platform_device.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> -#include <drm/drm_gem_framebuffer_helper.h> +#include <drm/drm_drv.h> #include <drm/drm_fb_helper.h> +#include <drm/drm_file.h> +#include <drm/drm_gem.h> +#include <drm/drm_gem_framebuffer_helper.h> +#include <drm/drm_ioctl.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> +#include "vkms_drv.h" #define DRIVER_NAME "vkms"
drivers/gpu/drm/vkms/vkms_drv.h +2 -2
@@ -3,11 +3,11 @@#ifndef _VKMS_DRV_H_#define _VKMS_DRV_H_ -#include <drm/drmP.h> +#include <linux/hrtimer.h> +#include <drm/drm.h> #include <drm/drm_gem.h> #include <drm/drm_encoder.h> -#include <linux/hrtimer.h> #define XRES_MIN 20#define YRES_MIN 20
drivers/gpu/drm/vkms/vkms_gem.c +1 -0
@@ -1,6 +1,7 @@// SPDX-License-Identifier: GPL-2.0+ #include <linux/shmem_fs.h> +#include <linux/vmalloc.h> #include "vkms_drv.h"
drivers/gpu/drm/vkms/vkms_plane.c +4 -2
@@ -1,10 +1,12 @@// SPDX-License-Identifier: GPL-2.0+ -#include "vkms_drv.h" -#include <drm/drm_plane_helper.h> #include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_fourcc.h> #include <drm/drm_gem_framebuffer_helper.h> +#include <drm/drm_plane_helper.h> + +#include "vkms_drv.h" static const u32 vkms_formats[] = {DRM_FORMAT_XRGB8888 ,
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v1 12/33] drm/vkms: drop use of drmP.h
Quoted 11 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader.
Replace it with the necessary includes in the individual .c files. The header files was self-contained, and extra includes were not added there.Signed-off-by Sam Ravnborg <[email protected]>Cc Rodrigo Siqueira <[email protected]>Cc Haneen Mohammed <[email protected]>Cc Daniel Vetter <[email protected]>Cc David Airlie <[email protected]>
Hi Sam,
Thanks for you patch, it LGTM.
Quoted 130 lines
---
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 ofdrmp.hin drm-misc"Sam
drivers/gpu/drm/vkms/vkms_crc.c | 5 ++++- drivers/gpu/drm/vkms/vkms_crtc.c | 4 +++- drivers/gpu/drm/vkms/vkms_drv.c | 11 +++++++++-- drivers/gpu/drm/vkms/vkms_drv.h | 4 ++-- drivers/gpu/drm/vkms/vkms_gem.c | 1 + drivers/gpu/drm/vkms/vkms_plane.c | 6 ++++-- 6 files changed, 23 insertions(+), 8 deletions(-)drivers/gpu/drm/vkms/vkms_crc.c +4
-1@@ -1,10 +1,13 @@// SPDX-License-Identifier: GPL-2.0+ -#include "vkms_drv.h" #include <linux/crc32.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_gem_framebuffer_helper.h> +#include <drm/drm_vblank.h> + +#include "vkms_drv.h" /** * compute_crc - Compute CRC value on output frame drivers/gpu/drm/vkms/vkms_crtc.c +3
-1@@ -1,9 +1,11 @@// SPDX-License-Identifier: GPL-2.0+ -#include "vkms_drv.h" #include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> + +#include "vkms_drv.h" static enum hrtimer_restart vkms_vblank_simulate (struct hrtimer *timer) {drivers/gpu/drm/vkms/vkms_drv.c +9
-2@@ -10,12 +10,19 @@*/ #include <linux/module.h> -#include <drm/drm_gem.h> +#include <linux/platform_device.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> -#include <drm/drm_gem_framebuffer_helper.h> +#include <drm/drm_drv.h> #include <drm/drm_fb_helper.h> +#include <drm/drm_file.h> +#include <drm/drm_gem.h> +#include <drm/drm_gem_framebuffer_helper.h> +#include <drm/drm_ioctl.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> +#include "vkms_drv.h" #define DRIVER_NAME "vkms"drivers/gpu/drm/vkms/vkms_drv.h +2
-2@@ -3,11 +3,11 @@#ifndef _VKMS_DRV_H_#define _VKMS_DRV_H_ -#include <drm/drmP.h> +#include <linux/hrtimer.h> +#include <drm/drm.h> #include <drm/drm_gem.h> #include <drm/drm_encoder.h> -#include <linux/hrtimer.h> #define XRES_MIN 20#define YRES_MIN 20drivers/gpu/drm/vkms/vkms_gem.c +1
-0@@ -1,6 +1,7 @@// SPDX-License-Identifier: GPL-2.0+ #include <linux/shmem_fs.h> +#include <linux/vmalloc.h> #include "vkms_drv.h" drivers/gpu/drm/vkms/vkms_plane.c +4
-3@@ -1,10 +1,12 @@// SPDX-License-Identifier: GPL-2.0+ -#include "vkms_drv.h" -#include <drm/drm_plane_helper.h> #include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_fourcc.h> #include <drm/drm_gem_framebuffer_helper.h> +#include <drm/drm_plane_helper.h> + +#include "vkms_drv.h" static const u32 vkms_formats[] = {DRM_FORMAT_XRGB8888 , --2.20.1
Signature · 6 lines
Rodrigo Siqueira https://siqueira.tech _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Sam Ravnborg
AppliedRe: [PATCH v1 12/33] drm/vkms: drop use of drmP.h
Quoted 13 lines · Rodrigo Siqueira
Quoted 11 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader.
Replace it with the necessary includes in the individual .c files. The header files was self-contained, and extra includes were not added there.Signed-off-by Sam Ravnborg <[email protected]>Cc Rodrigo Siqueira <[email protected]>Cc Haneen Mohammed <[email protected]>Cc Daniel Vetter <[email protected]>Cc David Airlie <[email protected]>
Quoted 5 lines
Hi Sam,
Thanks for you patch, it LGTM.
Reviewed-by Rodrigo Siqueira <[email protected]>
Thanks, applied.
Sam
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 13/33 drm/vc4: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated header drmP.h.
Fix so vc4_drv.h is now self-contained, and fixed fall-out in remaining files.
Divided include files in blocks.
Sorted include files within their blocks.
---
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/vc4/vc4_crtc.c | 11 +++++++---- drivers/gpu/drm/vc4/vc4_debugfs.c | 1 - drivers/gpu/drm/vc4/vc4_drv.c | 7 ++++++- drivers/gpu/drm/vc4/vc4_drv.h | 17 ++++++++++++----- drivers/gpu/drm/vc4/vc4_dsi.c | 17 ++++++++++------- drivers/gpu/drm/vc4/vc4_gem.c | 2 ++ drivers/gpu/drm/vc4/vc4_hvs.c | 5 ++++- drivers/gpu/drm/vc4/vc4_kms.c | 4 +++- drivers/gpu/drm/vc4/vc4_plane.c | 6 ++++-- drivers/gpu/drm/vc4/vc4_txp.c | 14 ++++++++------ drivers/gpu/drm/vc4/vc4_v3d.c | 4 ++++ 11 files changed, 60 insertions(+), 28 deletions(-)
drivers/gpu/drm/vc4/vc4_crtc.c +7 -4
@@ -32,15 +32,18 @@* ones that set the clock. */ +#include <linux/clk.h> +#include <linux/component.h> +#include <linux/of_device.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_atomic_uapi.h> +#include <drm/drm_fb_cma_helper.h> #include <drm/drm_print.h> #include <drm/drm_probe_helper.h> -#include <linux/clk.h> -#include <drm/drm_fb_cma_helper.h> -#include <linux/component.h> -#include <linux/of_device.h> +#include <drm/drm_vblank.h> +#include "vc4_drv.h" #include "vc4_regs.h"
drivers/gpu/drm/vc4/vc4_debugfs.c +0 -1
@@ -10,7 +10,6 @@#include <linux/circ_buf.h> #include <linux/ctype.h> #include <linux/debugfs.h> -#include <drm/drmP.h> #include "vc4_drv.h" #include "vc4_regs.h"
drivers/gpu/drm/vc4/vc4_drv.c +6 -1
@@ -26,16 +26,21 @@#include <linux/clk.h> #include <linux/component.h> #include <linux/device.h> +#include <linux/dma-mapping.h> #include <linux/io.h> #include <linux/module.h> #include <linux/of_platform.h> #include <linux/platform_device.h> #include <linux/pm_runtime.h> + +#include <drm/drm_atomic_helper.h> +#include <drm/drm_drv.h> #include <drm/drm_fb_cma_helper.h> #include <drm/drm_fb_helper.h> -#include <drm/drm_atomic_helper.h> +#include <drm/drm_vblank.h> #include "uapi/drm/vc4_drm.h" +#include "vc4_drv.h" #include "vc4_regs.h"
drivers/gpu/drm/vc4/vc4_drv.h +12 -5
@@ -6,16 +6,23 @@* published by the Free Software Foundation. */ -#include <linux/mm_types.h> -#include <drm/drmP.h> -#include <drm/drm_util.h> +#include <linux/delay.h> +#include <linux/refcount.h> +#include <linux/uaccess.h> + +#include <drm/drm_atomic.h> +#include <drm/drm_debugfs.h> +#include <drm/drm_device.h> #include <drm/drm_encoder.h> #include <drm/drm_gem_cma_helper.h> -#include <drm/drm_atomic.h> -#include <drm/drm_syncobj.h> +#include <drm/drm_mm.h> +#include <drm/drm_modeset_lock.h> #include "uapi/drm/vc4_drm.h" +struct drm_device ; +struct drm_gem_object ; +/* Don't forget to update vc4_bo.c: bo_type_names[] when adding to * this. */
drivers/gpu/drm/vc4/vc4_dsi.c +10 -7
@@ -29,22 +29,25 @@* hopefully present. */ -#include <drm/drm_atomic_helper.h> -#include <drm/drm_edid.h> -#include <drm/drm_mipi_dsi.h> -#include <drm/drm_of.h> -#include <drm/drm_panel.h> -#include <drm/drm_probe_helper.h> -#include <linux/clk.h> #include <linux/clk-provider.h> +#include <linux/clk.h> #include <linux/completion.h> #include <linux/component.h> +#include <linux/dma-mapping.h> #include <linux/dmaengine.h> #include <linux/i2c.h> #include <linux/io.h> #include <linux/of_address.h> #include <linux/of_platform.h> #include <linux/pm_runtime.h> + +#include <drm/drm_atomic_helper.h> +#include <drm/drm_edid.h> +#include <drm/drm_mipi_dsi.h> +#include <drm/drm_of.h> +#include <drm/drm_panel.h> +#include <drm/drm_probe_helper.h> +#include "vc4_drv.h" #include "vc4_regs.h"
drivers/gpu/drm/vc4/vc4_gem.c +2 -0
@@ -29,6 +29,8 @@#include <linux/sched/signal.h> #include <linux/dma-fence-array.h> +#include <drm/drm_syncobj.h> +#include "uapi/drm/vc4_drm.h" #include "vc4_drv.h" #include "vc4_regs.h"
drivers/gpu/drm/vc4/vc4_hvs.c +4 -1
@@ -22,8 +22,11 @@* each CRTC. */ -#include <drm/drm_atomic_helper.h> #include <linux/component.h> +#include <linux/platform_device.h> + +#include <drm/drm_atomic_helper.h> +#include "vc4_drv.h" #include "vc4_regs.h"
drivers/gpu/drm/vc4/vc4_kms.c +3 -1
@@ -14,12 +14,14 @@* crtc, HDMI encoder). */ -#include <drm/drm_crtc.h> #include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_crtc.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 "vc4_drv.h" #include "vc4_regs.h"
drivers/gpu/drm/vc4/vc4_plane.c +4 -2
@@ -20,12 +20,14 @@#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> -#include <drm/drm_fb_cma_helper.h> -#include <drm/drm_plane_helper.h> #include <drm/drm_atomic_uapi.h> +#include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fourcc.h> #include <drm/drm_gem_framebuffer_helper.h> +#include <drm/drm_plane_helper.h> #include "uapi/drm/vc4_drm.h" +#include "vc4_drv.h" #include "vc4_regs.h"
drivers/gpu/drm/vc4/vc4_txp.c +8 -6
@@ -7,18 +7,20 @@* Boris Brezillon <[email protected]> */ -#include <drm/drm_atomic_helper.h> -#include <drm/drm_fb_cma_helper.h> -#include <drm/drm_edid.h> -#include <drm/drm_panel.h> -#include <drm/drm_probe_helper.h> -#include <drm/drm_writeback.h> #include <linux/clk.h> #include <linux/component.h> #include <linux/of_graph.h> #include <linux/of_platform.h> #include <linux/pm_runtime.h> +#include <drm/drm_atomic_helper.h> +#include <drm/drm_edid.h> +#include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fourcc.h> +#include <drm/drm_panel.h> +#include <drm/drm_probe_helper.h> +#include <drm/drm_writeback.h> +#include "vc4_drv.h" #include "vc4_regs.h"
drivers/gpu/drm/vc4/vc4_v3d.c +4 -0
@@ -18,7 +18,11 @@#include <linux/clk.h> #include <linux/component.h> +#include <linux/platform_device.h> #include <linux/pm_runtime.h> + +#include <drm/drm_irq.h> +#include "vc4_drv.h" #include "vc4_regs.h"
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 14/33 drm/atmel_hlcdc: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated header drmP.h.
Make header file self-contained, with only the required set of include files.
And fixed fallout in remaining files.
Divide include files in blocks and sort them within each block.
---
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
.../gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 12 +++++++---- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 12 +++++++++++ drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h | 20 +++---------------- .../gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c | 3 ++- .../gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 10 ++++++++++ 5 files changed, 35 insertions(+), 22 deletions(-)
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c +8 -4
@@ -19,15 +19,19 @@*/ #include <linux/clk.h> +#include <linux/mfd/atmel-hlcdc.h> +#include <linux/pinctrl/consumer.h> #include <linux/pm.h> #include <linux/pm_runtime.h> -#include <linux/pinctrl/consumer.h> +#include <video/videomode.h> + +#include <drm/drm_atomic.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> +#include <drm/drm_modeset_helper_vtables.h> #include <drm/drm_probe_helper.h> -#include <drm/drmP.h> - -#include <video/videomode.h> +#include <drm/drm_vblank.h> #include "atmel_hlcdc_dc.h"
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +12 -0
@@ -22,8 +22,20 @@#include <linux/clk.h> #include <linux/irq.h> #include <linux/irqchip.h> +#include <linux/mfd/atmel-hlcdc.h> #include <linux/module.h> #include <linux/pm_runtime.h> +#include <linux/platform_device.h> + +#include <drm/drm_atomic.h> +#include <drm/drm_atomic_helper.h> +#include <drm/drm_drv.h> +#include <drm/drm_fb_helper.h> +#include <drm/drm_gem_cma_helper.h> +#include <drm/drm_gem_framebuffer_helper.h> +#include <drm/drm_irq.h> +#include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> #include "atmel_hlcdc_dc.h"
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h +3 -17
@@ -22,23 +22,9 @@#ifndef DRM_ATMEL_HLCDC_H #define DRM_ATMEL_HLCDC_H -#include <linux/clk.h> -#include <linux/dmapool.h> -#include <linux/irqdomain.h> -#include <linux/mfd/atmel-hlcdc.h> -#include <linux/pwm.h> - -#include <drm/drm_atomic.h> -#include <drm/drm_atomic_helper.h> -#include <drm/drm_crtc.h> -#include <drm/drm_probe_helper.h> -#include <drm/drm_fb_helper.h> -#include <drm/drm_fb_cma_helper.h> -#include <drm/drm_gem_cma_helper.h> -#include <drm/drm_gem_framebuffer_helper.h> -#include <drm/drm_panel.h> -#include <drm/drm_plane_helper.h> -#include <drm/drmP.h> +#include <linux/regmap.h> + +#include <drm/drm_plane.h> #define ATMEL_HLCDC_LAYER_CHER 0x0#define ATMEL_HLCDC_LAYER_CHDR 0x4
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c +2 -1
@@ -19,9 +19,10 @@* this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <linux/media-bus-format.h> #include <linux/of_graph.h> -#include <drm/drmP.h> +#include <drm/drm_encoder.h> #include <drm/drm_of.h> #include <drm/drm_bridge.h>
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c +10 -0
@@ -17,6 +17,16 @@* this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <linux/dmapool.h> +#include <linux/mfd/atmel-hlcdc.h> + +#include <drm/drm_atomic.h> +#include <drm/drm_atomic_helper.h> +#include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fourcc.h> +#include <drm/drm_gem_cma_helper.h> +#include <drm/drm_plane_helper.h> +#include "atmel_hlcdc_dc.h" /**
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v1 14/33] drm/atmel_hlcdc: drop use of drmP.h
Quoted 8 lines · On Sun, 30 Jun 2019 08:19:03 +0200 Sam Ravnborg <[email protected]> wrote:
Drop use of the deprecated header
drmP.h.
Make header file self-contained, with only the required set of include files.
And fixed fallout in remaining files.
Divide include files in blocks and sort them within each block.Signed-off-by Sam Ravnborg <[email protected]>Cc Boris Brezillon <[email protected]>
Quoted 132 lines
Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Nicolas Ferre <[email protected]>Cc Alexandre Belloni <[email protected]>Cc Ludovic Desroches <[email protected]>---
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 ofdrmp.hin drm-misc"Sam
.../gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 12 +++++++---- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 12 +++++++++++ drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h | 20 +++---------------- .../gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c | 3 ++- .../gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 10 ++++++++++ 5 files changed, 35 insertions(+), 22 deletions(-)drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c +8
-4@@ -19,15 +19,19 @@*/ #include <linux/clk.h> +#include <linux/mfd/atmel-hlcdc.h> +#include <linux/pinctrl/consumer.h> #include <linux/pm.h> #include <linux/pm_runtime.h> -#include <linux/pinctrl/consumer.h> +#include <video/videomode.h> + +#include <drm/drm_atomic.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> +#include <drm/drm_modeset_helper_vtables.h> #include <drm/drm_probe_helper.h> -#include <drm/drmP.h> - -#include <video/videomode.h> +#include <drm/drm_vblank.h> #include "atmel_hlcdc_dc.h" drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +12
-0@@ -22,8 +22,20 @@#include <linux/clk.h> #include <linux/irq.h> #include <linux/irqchip.h> +#include <linux/mfd/atmel-hlcdc.h> #include <linux/module.h> #include <linux/pm_runtime.h> +#include <linux/platform_device.h> + +#include <drm/drm_atomic.h> +#include <drm/drm_atomic_helper.h> +#include <drm/drm_drv.h> +#include <drm/drm_fb_helper.h> +#include <drm/drm_gem_cma_helper.h> +#include <drm/drm_gem_framebuffer_helper.h> +#include <drm/drm_irq.h> +#include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> #include "atmel_hlcdc_dc.h" drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h +3
-17@@ -22,23 +22,9 @@#ifndef DRM_ATMEL_HLCDC_H #define DRM_ATMEL_HLCDC_H -#include <linux/clk.h> -#include <linux/dmapool.h> -#include <linux/irqdomain.h> -#include <linux/mfd/atmel-hlcdc.h> -#include <linux/pwm.h> - -#include <drm/drm_atomic.h> -#include <drm/drm_atomic_helper.h> -#include <drm/drm_crtc.h> -#include <drm/drm_probe_helper.h> -#include <drm/drm_fb_helper.h> -#include <drm/drm_fb_cma_helper.h> -#include <drm/drm_gem_cma_helper.h> -#include <drm/drm_gem_framebuffer_helper.h> -#include <drm/drm_panel.h> -#include <drm/drm_plane_helper.h> -#include <drm/drmP.h> +#include <linux/regmap.h> + +#include <drm/drm_plane.h> #define ATMEL_HLCDC_LAYER_CHER 0x0#define ATMEL_HLCDC_LAYER_CHDR 0x4drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c +2
-1@@ -19,9 +19,10 @@* this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <linux/media-bus-format.h> #include <linux/of_graph.h> -#include <drm/drmP.h> +#include <drm/drm_encoder.h> #include <drm/drm_of.h> #include <drm/drm_bridge.h> drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c +3
-0@@ -17,6 +17,16 @@* this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <linux/dmapool.h> +#include <linux/mfd/atmel-hlcdc.h> +
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c line 32
Quoted 10 lines
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c +7
-0+#include <drm/drm_atomic.h> +#include <drm/drm_atomic_helper.h> +#include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fourcc.h> +#include <drm/drm_gem_cma_helper.h> +#include <drm/drm_plane_helper.h> +#include "atmel_hlcdc_dc.h" /**
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Sam Ravnborg
AppliedRe: [PATCH v1 14/33] drm/atmel_hlcdc: drop use of drmP.h
Quoted 9 lines · Boris Brezillon
Quoted 6 lines · On Sun, 30 Jun 2019 08:19:03 +0200 Sam Ravnborg <[email protected]> wrote:
Drop use of the deprecated header
drmP.h.
Make header file self-contained, with only the required set of include files.
And fixed fallout in remaining files.
Divide include files in blocks and sort them within each block.
Quoted 4 lines
Quoted 2 lines
Signed-off-by Sam Ravnborg <[email protected]>Cc Boris Brezillon <[email protected]>Reviewed-by Boris Brezillon <[email protected]>
Thanks, applied.
Sam
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 15/33 drm/r128: drop use of drmP.h
In reply to a message not in the archiveReplace use of the deprecated drmP.h header file with relevant includes.
---
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/r128/r128_ioc32.c | 3 ++- drivers/gpu/drm/r128/r128_irq.c | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-)
drivers/gpu/drm/r128/r128_ioc32.c +2 -1
@@ -29,10 +29,11 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ +#include <linux/compat.h> -#include <drm/drmP.h> #include <drm/r128_drm.h> +#include "r128_drv.h" typedef struct drm_r128_init32 {
drivers/gpu/drm/r128/r128_irq.c +4 -1
@@ -30,8 +30,11 @@* Eric Anholt <[email protected]> */ -#include <drm/drmP.h> +#include <drm/drm_device.h> +#include <drm/drm_print.h> +#include <drm/drm_vblank.h> #include <drm/r128_drm.h> +#include "r128_drv.h" u32 r128_get_vblank_counter (struct drm_device *dev,unsigned int pipe)
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 16/33 drm/udl: drop use of drmP.h
In reply to a message not in the archiveThe 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.
---
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(-)
drivers/gpu/drm/udl/udl_connector.c +1 -3
@@ -7,11 +7,9 @@* Copyright (C) 2009 Bernie Thompson <[email protected]> */ -#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"
drivers/gpu/drm/udl/udl_connector.h +2 -0
@@ -3,6 +3,8 @@#include <drm/drm_crtc.h> +struct edid ; +struct udl_drm_connector {struct drm_connector connector;/* last udl_detect edid */
drivers/gpu/drm/udl/udl_dmabuf.c +4 -2
@@ -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;
drivers/gpu/drm/udl/udl_drv.c +6 -1
@@ -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,
drivers/gpu/drm/udl/udl_drv.h +7 -1
@@ -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"
drivers/gpu/drm/udl/udl_encoder.c +3 -3
@@ -7,9 +7,9 @@* Copyright (C) 2009 Bernie Thompson <[email protected]> */ -#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 */
drivers/gpu/drm/udl/udl_fb.c +7 -8
@@ -7,18 +7,17 @@* Copyright (C) 2009 Jaya Kumar <[email protected]> * Copyright (C) 2009 Bernie Thompson <[email protected]> */ -#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 */
drivers/gpu/drm/udl/udl_gem.c +6 -3
@@ -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)
drivers/gpu/drm/udl/udl_main.c +4 -2
@@ -7,9 +7,11 @@* Copyright (C) 2009 Jaya Kumar <[email protected]> * Copyright (C) 2009 Bernie Thompson <[email protected]> */ -#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? */
drivers/gpu/drm/udl/udl_modeset.c +3 -3
@@ -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" /*
drivers/gpu/drm/udl/udl_transfer.c +0 -4
@@ -7,12 +7,8 @@* Copyright (C) 2009 Bernie Thompson <[email protected]> */ -#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
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 17/33 drm/omapdrm: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated header drmP.h.
Rearranged list of include files to match rest of
DRM too.
The drmP.h file was deleted from the header file, and the necessary includes was added to the .c files to fix build.
---
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/omapdrm/omap_crtc.c | 4 +++- drivers/gpu/drm/omapdrm/omap_debugfs.c | 2 ++ drivers/gpu/drm/omapdrm/omap_drv.c | 10 ++++++++-- drivers/gpu/drm/omapdrm/omap_drv.h | 5 ++--- drivers/gpu/drm/omapdrm/omap_fb.c | 4 ++-- drivers/gpu/drm/omapdrm/omap_fbdev.c | 2 ++ drivers/gpu/drm/omapdrm/omap_gem.c | 2 ++ drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c | 3 +++ drivers/gpu/drm/omapdrm/omap_irq.c | 2 ++ 9 files changed, 26 insertions(+), 8 deletions(-)
drivers/gpu/drm/omapdrm/omap_crtc.c +3 -1
@@ -15,12 +15,14 @@* this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <linux/math64.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> #include <drm/drm_mode.h> #include <drm/drm_plane_helper.h> -#include <linux/math64.h> +#include <drm/drm_vblank.h> #include "omap_drv.h"
drivers/gpu/drm/omapdrm/omap_debugfs.c +2 -0
@@ -18,6 +18,8 @@#include <linux/seq_file.h> #include <drm/drm_crtc.h> +#include <drm/drm_debugfs.h> +#include <drm/drm_file.h> #include <drm/drm_fb_helper.h> #include "omap_drv.h"
drivers/gpu/drm/omapdrm/omap_drv.c +8 -2
@@ -15,15 +15,21 @@* this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <linux/of.h> +#include <linux/dma-mapping.h> +#include <linux/platform_device.h> #include <linux/sort.h> #include <linux/sys_soc.h> #include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_drv.h> #include <drm/drm_fb_helper.h> -#include <drm/drm_probe_helper.h> +#include <drm/drm_file.h> +#include <drm/drm_ioctl.h> #include <drm/drm_panel.h> +#include <drm/drm_prime.h> +#include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> #include "omap_dmm_tiler.h" #include "omap_drv.h"
drivers/gpu/drm/omapdrm/omap_drv.h +2 -3
@@ -22,12 +22,11 @@#include <linux/types.h> #include <linux/workqueue.h> -#include <drm/drmP.h> +#include "dss/omapdss.h" +#include <drm/drm_gem.h> #include <drm/omap_drm.h> -#include "dss/omapdss.h" -#include "omap_connector.h" #include "omap_crtc.h" #include "omap_encoder.h"
drivers/gpu/drm/omapdrm/omap_fb.c +2 -2
@@ -15,10 +15,10 @@* this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <linux/seq_file.h> +#include <linux/dma-mapping.h> -#include <drm/drm_crtc.h> #include <drm/drm_modeset_helper.h> +#include <drm/drm_fourcc.h> #include <drm/drm_gem_framebuffer_helper.h> #include "omap_dmm_tiler.h"
drivers/gpu/drm/omapdrm/omap_fbdev.c +2 -0
@@ -18,6 +18,8 @@#include <drm/drm_crtc.h> #include <drm/drm_util.h> #include <drm/drm_fb_helper.h> +#include <drm/drm_file.h> +#include <drm/drm_fourcc.h> #include "omap_drv.h"
drivers/gpu/drm/omapdrm/omap_gem.c +2 -0
@@ -15,11 +15,13 @@* this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <linux/dma-mapping.h> #include <linux/seq_file.h> #include <linux/shmem_fs.h> #include <linux/spinlock.h> #include <linux/pfn_t.h> +#include <drm/drm_prime.h> #include <drm/drm_vma_manager.h> #include "omap_drv.h"
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c +3 -0
@@ -16,6 +16,9 @@*/ #include <linux/dma-buf.h> +#include <linux/highmem.h> + +#include <drm/drm_prime.h> #include "omap_drv.h"
drivers/gpu/drm/omapdrm/omap_irq.c +2 -0
@@ -15,6 +15,8 @@* this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <drm/drm_vblank.h> +#include "omap_drv.h" struct omap_irq_wait {
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 18/33 drm/selftests: drop use of drmP.h
In reply to a message not in the archiveDrop the single user of drmP.h - replace it with relevant includes.
---
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/selftests/test-drm_framebuffer.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/gpu/drm/selftests/test-drm_framebuffer.c +6 -1
@@ -3,7 +3,12 @@* Test cases for the drm_framebuffer functions */ -#include <drm/drmP.h> +#include <linux/kernel.h> + +#include <drm/drm_device.h> +#include <drm/drm_mode.h> +#include <drm/drm_fourcc.h> +#include "../drm_crtc_internal.h" #include "test-drm_modeset_common.h"
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 21/33 drm/i810: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated drmP.h header. Replace with necessary includes.
---
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/i810/i810_dma.c | 17 ++++++++++++----- drivers/gpu/drm/i810/i810_drv.c | 8 +++++--- drivers/gpu/drm/i810/i810_drv.h | 2 ++ 3 files changed, 19 insertions(+), 8 deletions(-)
drivers/gpu/drm/i810/i810_dma.c +12 -5
@@ -30,13 +30,20 @@* */ -#include <drm/drmP.h> +#include <linux/delay.h> +#include <linux/mman.h> + +#include <drm/drm_agpsupport.h> +#include <drm/drm_device.h> +#include <drm/drm_drv.h> +#include <drm/drm_file.h> +#include <drm/drm_ioctl.h> +#include <drm/drm_irq.h> +#include <drm/drm_pci.h> +#include <drm/drm_print.h> #include <drm/i810_drm.h> +#include "i810_drv.h" -#include <linux/interrupt.h> /* For task queue support */ -#include <linux/delay.h> -#include <linux/slab.h> -#include <linux/pagemap.h> #define I810_BUF_FREE 2#define I810_BUF_CLIENT 1
drivers/gpu/drm/i810/i810_drv.c +5 -3
@@ -30,13 +30,15 @@* Gareth Hughes <[email protected]> */ +#include "i810_drv.h" #include <linux/module.h> -#include <drm/drmP.h> +#include <drm/drm_drv.h> +#include <drm/drm_file.h> +#include <drm/drm_pci.h> +#include <drm/drm_pciids.h> #include <drm/i810_drm.h> -#include "i810_drv.h" -#include <drm/drm_pciids.h> static struct pci_device_id pciidlist[] = { i810_PCI_IDS
drivers/gpu/drm/i810/i810_drv.h +2 -0
@@ -32,7 +32,9 @@#ifndef _I810_DRV_H_#define _I810_DRV_H_ +#include <drm/drm_ioctl.h> #include <drm/drm_legacy.h> +#include <drm/i810_drm.h> /* General customization: */
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 22/33 drm/tilcdc: drop use of drmP.h
In reply to a message not in the archiveDropped drmP.h and all other header files not used by tilcdc_drv.h. Added the minimal includes and forwards to make the header file self-contained.
Then dropped the remaining uses of drmP.h and fixed all fall-out.
---
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/tilcdc/tilcdc_crtc.c | 18 ++++++++------ drivers/gpu/drm/tilcdc/tilcdc_drv.c | 19 ++++++++++++--- drivers/gpu/drm/tilcdc/tilcdc_drv.h | 31 +++++++++++++----------- drivers/gpu/drm/tilcdc/tilcdc_external.c | 1 + drivers/gpu/drm/tilcdc/tilcdc_panel.c | 11 ++++++--- drivers/gpu/drm/tilcdc/tilcdc_plane.c | 4 +-- drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | 8 +++--- 7 files changed, 57 insertions(+), 35 deletions(-)
drivers/gpu/drm/tilcdc/tilcdc_crtc.c +11 -7
@@ -15,16 +15,20 @@* this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <linux/delay.h> +#include <linux/dma-mapping.h> +#include <linux/of_graph.h> +#include <linux/pm_runtime.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> -#include <drm/drm_flip_work.h> -#include <drm/drm_plane_helper.h> -#include <linux/workqueue.h> -#include <linux/completion.h> -#include <linux/dma-mapping.h> -#include <linux/of_graph.h> -#include <linux/math64.h> +#include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fourcc.h> +#include <drm/drm_gem_cma_helper.h> +#include <drm/drm_modeset_helper_vtables.h> +#include <drm/drm_print.h> +#include <drm/drm_vblank.h> #include "tilcdc_drv.h" #include "tilcdc_regs.h"
drivers/gpu/drm/tilcdc/tilcdc_drv.c +15 -4
@@ -18,19 +18,30 @@/* LCDC DRM driver, based on da8xx-fb */ #include <linux/component.h> +#include <linux/mod_devicetable.h> +#include <linux/module.h> #include <linux/pinctrl/consumer.h> -#include <linux/suspend.h> -#include <drm/drm_atomic.h> +#include <linux/platform_device.h> +#include <linux/pm_runtime.h> +#include <drm/drm_atomic_helper.h> +#include <drm/drm_debugfs.h> +#include <drm/drm_drv.h> #include <drm/drm_fb_helper.h> +#include <drm/drm_fourcc.h> +#include <drm/drm_gem_cma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> +#include <drm/drm_irq.h> +#include <drm/drm_mm.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> +#include "tilcdc_drv.h" +#include "tilcdc_external.h" +#include "tilcdc_panel.h" #include "tilcdc_regs.h" #include "tilcdc_tfp410.h" -#include "tilcdc_panel.h" -#include "tilcdc_external.h" static LIST_HEAD (module_list);
drivers/gpu/drm/tilcdc/tilcdc_drv.h +17 -14
@@ -18,21 +18,24 @@#ifndef __TILCDC_DRV_H__#define __TILCDC_DRV_H__ -#include <linux/clk.h> #include <linux/cpufreq.h> -#include <linux/module.h> -#include <linux/platform_device.h> -#include <linux/pm.h> -#include <linux/pm_runtime.h> -#include <linux/slab.h> -#include <linux/of.h> -#include <linux/of_device.h> -#include <linux/list.h> - -#include <drm/drmP.h> -#include <drm/drm_bridge.h> -#include <drm/drm_fb_cma_helper.h> -#include <drm/drm_gem_cma_helper.h> +#include <linux/irqreturn.h> + +#include <drm/drm_print.h> + +struct clk ; +struct workqueue_struct ; + +struct drm_connector ; +struct drm_connector_helper_funcs ; +struct drm_crtc ; +struct drm_device ; +struct drm_display_mode ; +struct drm_encoder ; +struct drm_framebuffer ; +struct drm_minor ; +struct drm_pending_vblank_event ; +struct drm_plane ;/* Defaulting to pixel clock defined on AM335x */ #define TILCDC_DEFAULT_MAX_PIXELCLOCK 126000
drivers/gpu/drm/tilcdc/tilcdc_external.c +1 -0
@@ -10,6 +10,7 @@#include <linux/component.h> #include <linux/of_graph.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_of.h>
drivers/gpu/drm/tilcdc/tilcdc_panel.c +7 -4
@@ -15,14 +15,17 @@* this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <linux/pinctrl/pinmux.h> -#include <linux/pinctrl/consumer.h> -#include <linux/backlight.h> #include <linux/gpio/consumer.h> +#include <linux/pinctrl/consumer.h> +#include <linux/platform_device.h> +#include <video/display_timing.h> #include <video/of_display_timing.h> #include <video/videomode.h> -#include <drm/drm_atomic_helper.h> + +#include <drm/drm_atomic_state_helper.h> +#include <drm/drm_connector.h> +#include <drm/drm_modeset_helper_vtables.h> #include <drm/drm_probe_helper.h> #include "tilcdc_drv.h"
drivers/gpu/drm/tilcdc/tilcdc_plane.c +1 -3
@@ -15,12 +15,10 @@* this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <drm/drmP.h> -#include <drm/drm_atomic.h> #include <drm/drm_plane_helper.h> #include <drm/drm_atomic_helper.h> -#include <uapi/drm/drm_fourcc.h> +#include <drm/drm_fourcc.h> #include "tilcdc_drv.h"
drivers/gpu/drm/tilcdc/tilcdc_tfp410.c +5 -3
@@ -15,12 +15,14 @@* this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <linux/i2c.h> #include <linux/gpio.h> +#include <linux/mod_devicetable.h> #include <linux/of_gpio.h> -#include <linux/pinctrl/pinmux.h> -#include <linux/pinctrl/consumer.h> +#include <linux/platform_device.h> +#include <drm/drm_atomic_helper.h> +#include <drm/drm_encoder.h> +#include <drm/drm_modeset_helper_vtables.h> #include <drm/drm_probe_helper.h> #include "tilcdc_drv.h"
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v1 22/33] drm/tilcdc: drop use of drmP.h
Quoted 11 lines · Sam Ravnborg
Dropped
drmP.hand all other header files not used bytilcdc_drv.h. Added the minimal includes and forwards to make the header file self-contained.Then dropped the remaining uses of
drmP.hand fixed all fall-out.Signed-off-by Sam Ravnborg <[email protected]>Cc Jyri Sarha <[email protected]>Cc Tomi Valkeinen <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>
I assume the series is going to be merged as a whole, and I do not need to pick it.
Thanks,
Jyri
Quoted 210 lines
---
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 ofdrmp.hin drm-misc"Sam
drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 18 ++++++++------ drivers/gpu/drm/tilcdc/tilcdc_drv.c | 19 ++++++++++++--- drivers/gpu/drm/tilcdc/tilcdc_drv.h | 31 +++++++++++++----------- drivers/gpu/drm/tilcdc/tilcdc_external.c | 1 + drivers/gpu/drm/tilcdc/tilcdc_panel.c | 11 ++++++--- drivers/gpu/drm/tilcdc/tilcdc_plane.c | 4 +-- drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | 8 +++--- 7 files changed, 57 insertions(+), 35 deletions(-)drivers/gpu/drm/tilcdc/tilcdc_crtc.c +11
-7@@ -15,16 +15,20 @@* this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <linux/delay.h> +#include <linux/dma-mapping.h> +#include <linux/of_graph.h> +#include <linux/pm_runtime.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> -#include <drm/drm_flip_work.h> -#include <drm/drm_plane_helper.h> -#include <linux/workqueue.h> -#include <linux/completion.h> -#include <linux/dma-mapping.h> -#include <linux/of_graph.h> -#include <linux/math64.h> +#include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fourcc.h> +#include <drm/drm_gem_cma_helper.h> +#include <drm/drm_modeset_helper_vtables.h> +#include <drm/drm_print.h> +#include <drm/drm_vblank.h> #include "tilcdc_drv.h" #include "tilcdc_regs.h" drivers/gpu/drm/tilcdc/tilcdc_drv.c +15
-4@@ -18,19 +18,30 @@/* LCDC DRM driver, based on da8xx-fb */ #include <linux/component.h> +#include <linux/mod_devicetable.h> +#include <linux/module.h> #include <linux/pinctrl/consumer.h> -#include <linux/suspend.h> -#include <drm/drm_atomic.h> +#include <linux/platform_device.h> +#include <linux/pm_runtime.h> +#include <drm/drm_atomic_helper.h> +#include <drm/drm_debugfs.h> +#include <drm/drm_drv.h> #include <drm/drm_fb_helper.h> +#include <drm/drm_fourcc.h> +#include <drm/drm_gem_cma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> +#include <drm/drm_irq.h> +#include <drm/drm_mm.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> +#include "tilcdc_drv.h" +#include "tilcdc_external.h" +#include "tilcdc_panel.h" #include "tilcdc_regs.h" #include "tilcdc_tfp410.h" -#include "tilcdc_panel.h" -#include "tilcdc_external.h" static LIST_HEAD (module_list);drivers/gpu/drm/tilcdc/tilcdc_drv.h +17
-14@@ -18,21 +18,24 @@#ifndef __TILCDC_DRV_H__#define __TILCDC_DRV_H__ -#include <linux/clk.h> #include <linux/cpufreq.h> -#include <linux/module.h> -#include <linux/platform_device.h> -#include <linux/pm.h> -#include <linux/pm_runtime.h> -#include <linux/slab.h> -#include <linux/of.h> -#include <linux/of_device.h> -#include <linux/list.h> - -#include <drm/drmP.h> -#include <drm/drm_bridge.h> -#include <drm/drm_fb_cma_helper.h> -#include <drm/drm_gem_cma_helper.h> +#include <linux/irqreturn.h> + +#include <drm/drm_print.h> + +struct clk ; +struct workqueue_struct ; + +struct drm_connector ; +struct drm_connector_helper_funcs ; +struct drm_crtc ; +struct drm_device ; +struct drm_display_mode ; +struct drm_encoder ; +struct drm_framebuffer ; +struct drm_minor ; +struct drm_pending_vblank_event ; +struct drm_plane ;/* Defaulting to pixel clock defined on AM335x */ #define TILCDC_DEFAULT_MAX_PIXELCLOCK 126000drivers/gpu/drm/tilcdc/tilcdc_external.c +1
-0@@ -10,6 +10,7 @@#include <linux/component.h> #include <linux/of_graph.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_of.h> drivers/gpu/drm/tilcdc/tilcdc_panel.c +7
-4@@ -15,14 +15,17 @@* this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <linux/pinctrl/pinmux.h> -#include <linux/pinctrl/consumer.h> -#include <linux/backlight.h> #include <linux/gpio/consumer.h> +#include <linux/pinctrl/consumer.h> +#include <linux/platform_device.h> +#include <video/display_timing.h> #include <video/of_display_timing.h> #include <video/videomode.h> -#include <drm/drm_atomic_helper.h> + +#include <drm/drm_atomic_state_helper.h> +#include <drm/drm_connector.h> +#include <drm/drm_modeset_helper_vtables.h> #include <drm/drm_probe_helper.h> #include "tilcdc_drv.h" drivers/gpu/drm/tilcdc/tilcdc_plane.c +1
-3@@ -15,12 +15,10 @@* this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <drm/drmP.h> -#include <drm/drm_atomic.h> #include <drm/drm_plane_helper.h> #include <drm/drm_atomic_helper.h> -#include <uapi/drm/drm_fourcc.h> +#include <drm/drm_fourcc.h> #include "tilcdc_drv.h" drivers/gpu/drm/tilcdc/tilcdc_tfp410.c +5
-3@@ -15,12 +15,14 @@* this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <linux/i2c.h> #include <linux/gpio.h> +#include <linux/mod_devicetable.h> #include <linux/of_gpio.h> -#include <linux/pinctrl/pinmux.h> -#include <linux/pinctrl/consumer.h> +#include <linux/platform_device.h> +#include <drm/drm_atomic_helper.h> +#include <drm/drm_encoder.h> +#include <drm/drm_modeset_helper_vtables.h> #include <drm/drm_probe_helper.h> #include "tilcdc_drv.h"
Signature · 6 lines
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v1 22/33] drm/tilcdc: drop use of drmP.h
Hi Jyri
Quoted 13 lines · Jyri Sarha
Quoted 11 lines · Sam Ravnborg
Dropped
drmP.hand all other header files not used bytilcdc_drv.h. Added the minimal includes and forwards to make the header file self-contained.Then dropped the remaining uses of
drmP.hand fixed all fall-out.Signed-off-by Sam Ravnborg <[email protected]>Cc Jyri Sarha <[email protected]>Cc Tomi Valkeinen <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>
Quoted 4 lines
Acked-by Jyri Sarha <[email protected]>I assume the series is going to be merged as a whole, and I do not need to pick it.
Correct, in fact it is already applied.
So tilcdc no longer has any drmP dependencies left.
Sam
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 23/33 drm/i2c/ch7006: drop use of drmP.h
In reply to a message not in the archiveDrop using the deprecated drmP.h header file.
Fix fallout.
---
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/i2c/ch7006_priv.h | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/i2c/ch7006_priv.h +0 -1
@@ -27,7 +27,6 @@#ifndef __DRM_I2C_CH7006_PRIV_H__#define __DRM_I2C_CH7006_PRIV_H__ -#include <drm/drmP.h> #include <drm/drm_crtc_helper.h> #include <drm/drm_encoder_slave.h> #include <drm/drm_probe_helper.h>
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 24/33 drm/i2c/sil164: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated drmP.h header file. Fix fallout.
---
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/i2c/sil164_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i2c/sil164_drv.c +2 -1
@@ -26,8 +26,9 @@#include <linux/module.h> -#include <drm/drmP.h> +#include <drm/drm_drv.h> #include <drm/drm_encoder_slave.h> +#include <drm/drm_print.h> #include <drm/drm_probe_helper.h> #include <drm/i2c/sil164.h>
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 25/33 drm/scheduler: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated drmP.h header file.
Fix fallout.
---
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/scheduler/gpu_scheduler_trace.h | 2 -- drivers/gpu/drm/scheduler/sched_entity.c | 3 +++ drivers/gpu/drm/scheduler/sched_fence.c | 6 ++++-- drivers/gpu/drm/scheduler/sched_main.c | 3 ++- 4 files changed, 9 insertions(+), 5 deletions(-)
drivers/gpu/drm/scheduler/gpu_scheduler_trace.h +0 -2
@@ -28,8 +28,6 @@#include <linux/types.h> #include <linux/tracepoint.h> -#include <drm/drmP.h> -#undef TRACE_SYSTEM#define TRACE_SYSTEM gpu_scheduler#define TRACE_INCLUDE_FILE gpu_scheduler_trace
drivers/gpu/drm/scheduler/sched_entity.c +3 -0
@@ -22,6 +22,9 @@*/ #include <linux/kthread.h> +#include <linux/slab.h> + +#include <drm/drm_print.h> #include <drm/gpu_scheduler.h> #include "gpu_scheduler_trace.h"
drivers/gpu/drm/scheduler/sched_fence.c +4 -2
@@ -22,9 +22,11 @@*/ #include <linux/kthread.h> -#include <linux/wait.h> +#include <linux/module.h> #include <linux/sched.h> -#include <drm/drmP.h> +#include <linux/slab.h> +#include <linux/wait.h> +#include <drm/gpu_scheduler.h> static struct kmem_cache *sched_fence_slab;
drivers/gpu/drm/scheduler/sched_main.c +2 -1
@@ -48,7 +48,8 @@#include <linux/wait.h> #include <linux/sched.h> #include <uapi/linux/sched/types.h> -#include <drm/drmP.h> + +#include <drm/drm_print.h> #include <drm/gpu_scheduler.h> #include <drm/spsc_queue.h>
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v1 25/33] drm/scheduler: drop use of drmP.h
Am 30.06.19 um 08:19 schrieb Sam Ravnborg:
Quoted 16 lines
Drop use of the deprecated
drmP.hheader file.
Fix fallout.Signed-off-by Sam Ravnborg <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Alex Deucher <[email protected]>Cc Andrey Grodzovsky <[email protected]>Cc "Christian König" <[email protected]>Cc Huang Rui <[email protected]>Cc Eric Anholt <[email protected]>Cc Bas Nieuwenhuizen <[email protected]>Cc Sharat Masetty <[email protected]>Cc Nathan Chancellor <[email protected]>Cc Nayan Deshmukh <[email protected]>Cc Sam Ravnborg <[email protected]>
Quoted 64 lines
---
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 ofdrmp.hin drm-misc"Sam
drivers/gpu/drm/scheduler/gpu_scheduler_trace.h | 2 -- drivers/gpu/drm/scheduler/sched_entity.c | 3 +++ drivers/gpu/drm/scheduler/sched_fence.c | 6 ++++-- drivers/gpu/drm/scheduler/sched_main.c | 3 ++- 4 files changed, 9 insertions(+), 5 deletions(-)drivers/gpu/drm/scheduler/gpu_scheduler_trace.h +0
-2@@ -28,8 +28,6 @@#include <linux/types.h> #include <linux/tracepoint.h> -#include <drm/drmP.h> -#undef TRACE_SYSTEM#define TRACE_SYSTEM gpu_scheduler#define TRACE_INCLUDE_FILE gpu_scheduler_tracedrivers/gpu/drm/scheduler/sched_entity.c +3
-0@@ -22,6 +22,9 @@*/ #include <linux/kthread.h> +#include <linux/slab.h> + +#include <drm/drm_print.h> #include <drm/gpu_scheduler.h> #include "gpu_scheduler_trace.h" drivers/gpu/drm/scheduler/sched_fence.c +4
-2@@ -22,9 +22,11 @@*/ #include <linux/kthread.h> -#include <linux/wait.h> +#include <linux/module.h> #include <linux/sched.h> -#include <drm/drmP.h> +#include <linux/slab.h> +#include <linux/wait.h> +#include <drm/gpu_scheduler.h> static struct kmem_cache *sched_fence_slab;drivers/gpu/drm/scheduler/sched_main.c +0
-0
drivers/gpu/drm/scheduler/sched_main.c line 55
Quoted 9 lines
drivers/gpu/drm/scheduler/sched_main.c +2
-1@@ -48,7 +48,8 @@#include <linux/wait.h> #include <linux/sched.h> #include <uapi/linux/sched/types.h> -#include <drm/drmP.h> + +#include <drm/drm_print.h> #include <drm/gpu_scheduler.h> #include <drm/spsc_queue.h>
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Sam Ravnborg
AppliedRe: [PATCH v1 25/33] drm/scheduler: drop use of drmP.h
Quoted 18 lines · Christian
Am 30.06.19 um 08:19 schrieb Sam Ravnborg:
Quoted 16 lines
Drop use of the deprecated
drmP.hheader file.
Fix fallout.Signed-off-by Sam Ravnborg <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Alex Deucher <[email protected]>Cc Andrey Grodzovsky <[email protected]>Cc "Christian König" <[email protected]>Cc Huang Rui <[email protected]>Cc Eric Anholt <[email protected]>Cc Bas Nieuwenhuizen <[email protected]>Cc Sharat Masetty <[email protected]>Cc Nathan Chancellor <[email protected]>Cc Nayan Deshmukh <[email protected]>Cc Sam Ravnborg <[email protected]>
Quoted 1 line
Reviewed-by Christian König <[email protected]>
Thanks, applied.
Sam
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 26/33 drm/imx: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated drmP.h header file.
While touching the include files divide them in blocks and sort the include files within each block.
---
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/imx/dw_hdmi-imx.c | 14 ++++++++------ drivers/gpu/drm/imx/imx-drm-core.c | 8 ++++++-- drivers/gpu/drm/imx/imx-ldb.c | 22 ++++++++++++---------- drivers/gpu/drm/imx/imx-tve.c | 10 ++++++---- drivers/gpu/drm/imx/ipuv3-crtc.c | 8 ++++++-- drivers/gpu/drm/imx/ipuv3-plane.c | 5 +++-- drivers/gpu/drm/imx/parallel-display.c | 8 +++++--- 7 files changed, 46 insertions(+), 29 deletions(-)
drivers/gpu/drm/imx/dw_hdmi-imx.c +8 -6
@@ -3,19 +3,21 @@* * derived from imx-hdmi.c(renamed to bridge/dw_hdmi.c now) */ -#include <linux/module.h> -#include <linux/platform_device.h> +#include <linux/component.h> #include <linux/mfd/syscon.h> #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h> -#include <drm/bridge/dw_hdmi.h> -#include <video/imx-ipu-v3.h> +#include <linux/module.h> +#include <linux/platform_device.h> #include <linux/regmap.h> -#include <drm/drm_of.h> -#include <drm/drmP.h> + +#include <video/imx-ipu-v3.h> + +#include <drm/bridge/dw_hdmi.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_edid.h> #include <drm/drm_encoder_slave.h> +#include <drm/drm_of.h> #include "imx-drm.h"
drivers/gpu/drm/imx/imx-drm-core.c +6 -2
@@ -4,14 +4,18 @@* * Copyright (C) 2011 Sascha Hauer, Pengutronix */ +#include <linux/component.h> #include <linux/device.h> #include <linux/dma-buf.h> #include <linux/module.h> #include <linux/platform_device.h> -#include <drm/drmP.h> + +#include <video/imx-ipu-v3.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_drv.h> #include <drm/drm_fb_cma_helper.h> #include <drm/drm_fb_helper.h> #include <drm/drm_gem_cma_helper.h>
@@ -19,7 +23,7 @@#include <drm/drm_of.h> #include <drm/drm_plane_helper.h> #include <drm/drm_probe_helper.h> -#include <video/imx-ipu-v3.h> +#include <drm/drm_vblank.h> #include "imx-drm.h" #include "ipuv3-plane.h"
drivers/gpu/drm/imx/imx-ldb.c +12 -10
@@ -5,25 +5,27 @@* Copyright (C) 2012 Sascha Hauer, Pengutronix */ -#include <linux/module.h> #include <linux/clk.h> #include <linux/component.h> -#include <drm/drmP.h> -#include <drm/drm_atomic.h> -#include <drm/drm_atomic_helper.h> -#include <drm/drm_fb_helper.h> -#include <drm/drm_of.h> -#include <drm/drm_panel.h> -#include <drm/drm_probe_helper.h> #include <linux/mfd/syscon.h> #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h> +#include <linux/module.h> #include <linux/of_device.h> #include <linux/of_graph.h> -#include <video/of_display_timing.h> -#include <video/of_videomode.h> #include <linux/regmap.h> #include <linux/videodev2.h> +#include <video/of_display_timing.h> +#include <video/of_videomode.h> + +#include <drm/drm_atomic.h> +#include <drm/drm_atomic_helper.h> +#include <drm/drm_fb_helper.h> +#include <drm/drm_of.h> +#include <drm/drm_panel.h> +#include <drm/drm_print.h> +#include <drm/drm_probe_helper.h> +#include "imx-drm.h" #define DRIVER_NAME "imx-ldb"
drivers/gpu/drm/imx/imx-tve.c +6 -4
@@ -5,20 +5,22 @@* Copyright (C) 2013 Philipp Zabel, Pengutronix */ -#include <linux/clk.h> #include <linux/clk-provider.h> +#include <linux/clk.h> #include <linux/component.h> -#include <linux/module.h> #include <linux/i2c.h> +#include <linux/module.h> +#include <linux/platform_device.h> #include <linux/regmap.h> #include <linux/regulator/consumer.h> #include <linux/spinlock.h> #include <linux/videodev2.h> -#include <drm/drmP.h> + +#include <video/imx-ipu-v3.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_fb_helper.h> #include <drm/drm_probe_helper.h> -#include <video/imx-ipu-v3.h> #include "imx-drm.h"
drivers/gpu/drm/imx/ipuv3-crtc.c +6 -2
@@ -4,21 +4,25 @@* * Copyright (C) 2011 Sascha Hauer, Pengutronix */ +#include <linux/clk.h> #include <linux/component.h> #include <linux/device.h> +#include <linux/dma-mapping.h> #include <linux/errno.h> #include <linux/export.h> #include <linux/module.h> #include <linux/platform_device.h> -#include <drm/drmP.h> + +#include <video/imx-ipu-v3.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_fb_cma_helper.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> -#include <video/imx-ipu-v3.h> #include "imx-drm.h" #include "ipuv3-plane.h"
drivers/gpu/drm/imx/ipuv3-plane.c +3 -2
@@ -5,15 +5,16 @@* Copyright (C) 2013 Philipp Zabel, Pengutronix */ -#include <drm/drmP.h> #include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fourcc.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_plane_helper.h> -#include "video/imx-ipu-v3.h" +#include <video/imx-ipu-v3.h> +#include "imx-drm.h" #include "ipuv3-plane.h"
drivers/gpu/drm/imx/parallel-display.c +5 -3
@@ -7,14 +7,16 @@#include <linux/component.h> #include <linux/module.h> -#include <drm/drmP.h> +#include <linux/platform_device.h> +#include <linux/videodev2.h> + +#include <video/of_display_timing.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_fb_helper.h> #include <drm/drm_of.h> #include <drm/drm_panel.h> #include <drm/drm_probe_helper.h> -#include <linux/videodev2.h> -#include <video/of_display_timing.h> #include "imx-drm.h"
Signature · 1 line
2.20.1
PATCH 27/33 drm/virtgpu: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated drmP.h header file. Fix fallout by adding missing include files.
---
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/virtio/virtgpu_debugfs.c | 4 ++-- drivers/gpu/drm/virtio/virtgpu_display.c | 7 +++++-- drivers/gpu/drm/virtio/virtgpu_drv.c | 5 ++++- drivers/gpu/drm/virtio/virtgpu_drv.h | 6 +++--- drivers/gpu/drm/virtio/virtgpu_fence.c | 2 +- drivers/gpu/drm/virtio/virtgpu_gem.c | 4 +++- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 8 +++++--- drivers/gpu/drm/virtio/virtgpu_kms.c | 4 +++- drivers/gpu/drm/virtio/virtgpu_plane.c | 6 ++++-- drivers/gpu/drm/virtio/virtgpu_prime.c | 2 ++ drivers/gpu/drm/virtio/virtgpu_ttm.c | 13 +++++++------ drivers/gpu/drm/virtio/virtgpu_vq.c | 7 ++++--- 12 files changed, 43 insertions(+), 25 deletions(-)
drivers/gpu/drm/virtio/virtgpu_debugfs.c +2 -2
@@ -23,8 +23,8 @@* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include <linux/debugfs.h> -#include <drm/drmP.h> +#include <drm/drm_debugfs.h> +#include <drm/drm_file.h> #include "virtgpu_drv.h"
drivers/gpu/drm/virtio/virtgpu_display.c +5 -2
@@ -25,11 +25,14 @@* OTHER DEALINGS IN THE SOFTWARE. */ -#include "virtgpu_drv.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_probe_helper.h> -#include <drm/drm_damage_helper.h> +#include <drm/drm_vblank.h> + +#include "virtgpu_drv.h" #define XRES_MIN 32#define YRES_MIN 32
drivers/gpu/drm/virtio/virtgpu_drv.c +4 -1
@@ -29,10 +29,13 @@#include <linux/module.h> #include <linux/console.h> #include <linux/pci.h> -#include <drm/drmP.h> +#include <drm/drm.h> +#include <drm/drm_drv.h> +#include <drm/drm_file.h> #include "virtgpu_drv.h" +static struct drm_driver driver;static int virtio_gpu_modeset =-1 ;
drivers/gpu/drm/virtio/virtgpu_drv.h +3 -3
@@ -31,16 +31,16 @@#include <linux/virtio_config.h> #include <linux/virtio_gpu.h> -#include <drm/drmP.h> -#include <drm/drm_gem.h> #include <drm/drm_atomic.h> #include <drm/drm_encoder.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/ttm/ttm_bo_api.h> #include <drm/ttm/ttm_bo_driver.h> -#include <drm/ttm/ttm_placement.h> #include <drm/ttm/ttm_module.h> +#include <drm/ttm/ttm_placement.h> #define DRIVER_NAME "virtio_gpu"#define DRIVER_DESC "virtio GPU"
drivers/gpu/drm/virtio/virtgpu_fence.c +1 -1
@@ -23,8 +23,8 @@* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include <drm/drmP.h> #include <trace/events/dma_fence.h> +#include "virtgpu_drv.h" static const char *virtio_get_driver_name (struct dma_fence *f)
drivers/gpu/drm/virtio/virtgpu_gem.c +3 -1
@@ -23,7 +23,9 @@* 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" void virtio_gpu_gem_free_object (struct drm_gem_object *gem_obj)
drivers/gpu/drm/virtio/virtgpu_ioctl.c +5 -3
@@ -25,11 +25,13 @@* OTHER DEALINGS IN THE SOFTWARE. */ -#include <drm/drmP.h> -#include <drm/virtgpu_drm.h> -#include <drm/ttm/ttm_execbuf_util.h> +#include <linux/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" static void convert_to_hw_box(struct virtio_gpu_box *dst,
drivers/gpu/drm/virtio/virtgpu_kms.c +3 -1
@@ -25,7 +25,9 @@#include <linux/virtio.h> #include <linux/virtio_config.h> -#include <drm/drmP.h> + +#include <drm/drm_file.h> +#include "virtgpu_drv.h" static void virtio_gpu_config_changed_work_func (struct work_struct *work)
drivers/gpu/drm/virtio/virtgpu_plane.c +4 -2
@@ -23,9 +23,11 @@* 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_fourcc.h> +#include <drm/drm_plane_helper.h> + +#include "virtgpu_drv.h" static const uint32_t virtio_gpu_formats[] = {DRM_FORMAT_HOST_XRGB8888 ,
drivers/gpu/drm/virtio/virtgpu_prime.c +2 -0
@@ -22,6 +22,8 @@* Authors: Andreas Pokorny */ +#include <drm/drm_prime.h> +#include "virtgpu_drv.h" /* Empty Implementations as there should not be any other driver for a virtual
drivers/gpu/drm/virtio/virtgpu_ttm.c +7 -6
@@ -25,17 +25,18 @@* 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_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/ttm/ttm_page_alloc.h> +#include <drm/ttm/ttm_placement.h> #include <drm/virtgpu_drm.h> -#include "virtgpu_drv.h" -#include <linux/delay.h> +#include "virtgpu_drv.h" static struct virtio_gpu_device *virtio_gpu_get_vgdev (struct ttm_bo_device *bdev)
drivers/gpu/drm/virtio/virtgpu_vq.c +4 -3
@@ -26,13 +26,14 @@* OTHER DEALINGS IN THE SOFTWARE. */ -#include <drm/drmP.h> -#include "virtgpu_drv.h" -#include "virtgpu_trace.h" +#include <linux/dma-mapping.h> #include <linux/virtio.h> #include <linux/virtio_config.h> #include <linux/virtio_ring.h> +#include "virtgpu_drv.h" +#include "virtgpu_trace.h" +#define MAX_INLINE_CMD_SIZE 96#define MAX_INLINE_RESP_SIZE 24#define VBUFFER_SIZE (sizeof(struct virtio_gpu_vbuffer) \
Signature · 1 line
2.20.1
Re: [PATCH v1 27/33] drm/virtgpu: drop use of drmP.h
Quoted 8 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader file. Fix fallout by adding missing include files.Signed-off-by Sam Ravnborg <[email protected]>Cc David Airlie <[email protected]>Cc Gerd Hoffmann <[email protected]>Cc Daniel Vetter <[email protected]>
Re: [PATCH v1 27/33] drm/virtgpu: drop use of drmP.h
In reply to Sam RavnborgQuoted 8 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader file. Fix fallout by adding missing include files.Signed-off-by Sam Ravnborg <[email protected]>Cc David Airlie <[email protected]>Cc Gerd Hoffmann <[email protected]>Cc Daniel Vetter <[email protected]>
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Sam Ravnborg
AppliedRe: [PATCH v1 27/33] drm/virtgpu: drop use of drmP.h
Quoted 11 lines · Gerd Hoffmann
Quoted 8 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader file. Fix fallout by adding missing include files.Signed-off-by Sam Ravnborg <[email protected]>Cc David Airlie <[email protected]>Cc Gerd Hoffmann <[email protected]>Cc Daniel Vetter <[email protected]>Acked-by Gerd Hoffmann <[email protected]>
Thanks, applied.
Sam
Sam Ravnborg
AppliedRe: [PATCH v1 27/33] drm/virtgpu: drop use of drmP.h
In reply to Gerd HoffmannQuoted 11 lines · Gerd Hoffmann
Quoted 8 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader file. Fix fallout by adding missing include files.Signed-off-by Sam Ravnborg <[email protected]>Cc David Airlie <[email protected]>Cc Gerd Hoffmann <[email protected]>Cc Daniel Vetter <[email protected]>Acked-by Gerd Hoffmann <[email protected]>
Thanks, applied.
Sam
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 28/33 drm/rockchip: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated drmP.h header file.
While touching the list of include files move the blocks so they follow the common pattern:
\#include <linux/*>
\#include <video/*>
\#include <drm/*>
\#include ""
Within each block sort the include files.
Add the includes needed to fix build after the removal of drmP.h.
---
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
.../gpu/drm/rockchip/analogix_dp-rockchip.c | 10 +++--- drivers/gpu/drm/rockchip/cdn-dp-core.c | 17 +++++----- drivers/gpu/drm/rockchip/cdn-dp-core.h | 2 +- .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 9 +++--- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 5 ++- drivers/gpu/drm/rockchip/inno_hdmi.c | 3 +- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 12 ++++--- drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 3 +- drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c | 2 +- drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 8 ++--- drivers/gpu/drm/rockchip/rockchip_drm_psr.c | 1 - drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 31 ++++++++++--------- drivers/gpu/drm/rockchip/rockchip_lvds.c | 16 +++++----- drivers/gpu/drm/rockchip/rockchip_rgb.c | 9 +++--- drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 11 +++++-- 15 files changed, 71 insertions(+), 68 deletions(-)
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c +4 -6
@@ -16,16 +16,14 @@#include <linux/reset.h> #include <linux/clk.h> -#include <drm/drmP.h> -#include <drm/drm_dp_helper.h> -#include <drm/drm_of.h> -#include <drm/drm_panel.h> -#include <drm/drm_probe_helper.h> -#include <video/of_videomode.h> #include <video/videomode.h> #include <drm/bridge/analogix_dp.h> +#include <drm/drm_dp_helper.h> +#include <drm/drm_of.h> +#include <drm/drm_panel.h> +#include <drm/drm_probe_helper.h> #include "rockchip_drm_drv.h" #include "rockchip_drm_psr.h"
drivers/gpu/drm/rockchip/cdn-dp-core.c +8 -9
@@ -4,24 +4,23 @@* Author: Chris Zhong <[email protected]> */ -#include <drm/drmP.h> -#include <drm/drm_atomic_helper.h> -#include <drm/drm_dp_helper.h> -#include <drm/drm_edid.h> -#include <drm/drm_of.h> -#include <drm/drm_probe_helper.h> -#include <linux/clk.h> #include <linux/component.h> #include <linux/extcon.h> #include <linux/firmware.h> -#include <linux/regmap.h> -#include <linux/reset.h> #include <linux/mfd/syscon.h> #include <linux/phy/phy.h> +#include <linux/regmap.h> +#include <linux/reset.h> #include <sound/hdmi-codec.h> +#include <drm/drm_atomic_helper.h> +#include <drm/drm_dp_helper.h> +#include <drm/drm_edid.h> +#include <drm/drm_of.h> +#include <drm/drm_probe_helper.h> +#include "cdn-dp-core.h" #include "cdn-dp-reg.h" #include "rockchip_drm_vop.h"
drivers/gpu/drm/rockchip/cdn-dp-core.h +1 -1
@@ -15,10 +15,10 @@#ifndef _CDN_DP_CORE_H#define _CDN_DP_CORE_H -#include <drm/drmP.h> #include <drm/drm_dp_helper.h> #include <drm/drm_panel.h> #include <drm/drm_probe_helper.h> +#include "rockchip_drm_drv.h" #define MAX_PHY 2
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c +5 -4
@@ -6,10 +6,6 @@* Nickey Yang <[email protected]> */ -#include <drm/drmP.h> -#include <drm/drm_mipi_dsi.h> -#include <drm/bridge/dw_mipi_dsi.h> -#include <drm/drm_of.h> #include <linux/clk.h> #include <linux/iopoll.h> #include <linux/math64.h>
@@ -18,8 +14,13 @@#include <linux/of_device.h> #include <linux/pm_runtime.h> #include <linux/regmap.h> +#include <video/mipi_display.h> +#include <drm/bridge/dw_mipi_dsi.h> +#include <drm/drm_mipi_dsi.h> +#include <drm/drm_of.h> +#include "rockchip_drm_drv.h" #include "rockchip_drm_vop.h"
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c +2 -3
@@ -10,11 +10,10 @@#include <linux/phy/phy.h> #include <linux/regmap.h> -#include <drm/drm_of.h> -#include <drm/drmP.h> +#include <drm/bridge/dw_hdmi.h> #include <drm/drm_edid.h> +#include <drm/drm_of.h> #include <drm/drm_probe_helper.h> -#include <drm/bridge/dw_hdmi.h> #include "rockchip_drm_drv.h" #include "rockchip_drm_vop.h"
drivers/gpu/drm/rockchip/inno_hdmi.c +1 -2
@@ -15,10 +15,9 @@#include <linux/mutex.h> #include <linux/of_device.h> -#include <drm/drm_of.h> -#include <drm/drmP.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_edid.h> +#include <drm/drm_of.h> #include <drm/drm_probe_helper.h> #include "rockchip_drm_drv.h"
drivers/gpu/drm/rockchip/rockchip_drm_drv.c +7 -5
@@ -6,11 +6,6 @@* based on exynos_drm_drv.c */ -#include <drm/drmP.h> -#include <drm/drm_fb_helper.h> -#include <drm/drm_gem_cma_helper.h> -#include <drm/drm_of.h> -#include <drm/drm_probe_helper.h> #include <linux/dma-mapping.h> #include <linux/dma-iommu.h> #include <linux/pm_runtime.h>
@@ -21,6 +16,13 @@#include <linux/console.h> #include <linux/iommu.h> +#include <drm/drm_drv.h> +#include <drm/drm_fb_helper.h> +#include <drm/drm_gem_cma_helper.h> +#include <drm/drm_of.h> +#include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> +#include "rockchip_drm_drv.h" #include "rockchip_drm_fb.h" #include "rockchip_drm_fbdev.h"
drivers/gpu/drm/rockchip/rockchip_drm_fb.c +2 -1
@@ -5,11 +5,12 @@*/ #include <linux/kernel.h> +#include <drm/drm.h> -#include <drm/drmP.h> #include <drm/drm_atomic.h> #include <drm/drm_damage_helper.h> #include <drm/drm_fb_helper.h> +#include <drm/drm_fourcc.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_probe_helper.h>
drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c +1 -1
@@ -5,8 +5,8 @@*/ #include <drm/drm.h> -#include <drm/drmP.h> #include <drm/drm_fb_helper.h> +#include <drm/drm_fourcc.h> #include <drm/drm_probe_helper.h> #include "rockchip_drm_drv.h"
drivers/gpu/drm/rockchip/rockchip_drm_gem.c +4 -4
@@ -4,14 +4,14 @@* Author:Mark Yao <[email protected]> */ +#include <linux/dma-buf.h> +#include <linux/iommu.h> +#include <drm/drm.h> -#include <drm/drmP.h> #include <drm/drm_gem.h> +#include <drm/drm_prime.h> #include <drm/drm_vma_manager.h> -#include <linux/dma-buf.h> -#include <linux/iommu.h> -#include "rockchip_drm_drv.h" #include "rockchip_drm_gem.h"
drivers/gpu/drm/rockchip/rockchip_drm_psr.c +0 -1
@@ -4,7 +4,6 @@* Author: Yakir Yang <[email protected]> */ -#include <drm/drmP.h> #include <drm/drm_atomic.h> #include <drm/drm_probe_helper.h>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c +16 -15
@@ -4,33 +4,34 @@* Author:Mark Yao <[email protected]> */ +#include <linux/clk.h> +#include <linux/component.h> +#include <linux/delay.h> +#include <linux/iopoll.h> +#include <linux/kernel.h> +#include <linux/module.h> +#include <linux/of.h> +#include <linux/of_device.h> +#include <linux/overflow.h> +#include <linux/platform_device.h> +#include <linux/pm_runtime.h> +#include <linux/reset.h> +#include <drm/drm.h> -#include <drm/drmP.h> #include <drm/drm_atomic.h> #include <drm/drm_atomic_uapi.h> #include <drm/drm_crtc.h> #include <drm/drm_flip_work.h> +#include <drm/drm_fourcc.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> +#ifdef CONFIG_DRM_ANALOGIX_DP #include <drm/bridge/analogix_dp.h> #endif -#include <linux/kernel.h> -#include <linux/module.h> -#include <linux/platform_device.h> -#include <linux/clk.h> -#include <linux/iopoll.h> -#include <linux/of.h> -#include <linux/of_device.h> -#include <linux/pm_runtime.h> -#include <linux/component.h> -#include <linux/overflow.h> - -#include <linux/reset.h> -#include <linux/delay.h> -#include "rockchip_drm_drv.h" #include "rockchip_drm_gem.h" #include "rockchip_drm_fb.h"
drivers/gpu/drm/rockchip/rockchip_lvds.c +8 -8
@@ -6,21 +6,21 @@* Sandy Huang <[email protected]> */ -#include <drm/drmP.h> -#include <drm/drm_atomic_helper.h> -#include <drm/drm_dp_helper.h> -#include <drm/drm_panel.h> -#include <drm/drm_of.h> -#include <drm/drm_probe_helper.h> - -#include <linux/component.h> #include <linux/clk.h> +#include <linux/component.h> #include <linux/mfd/syscon.h> #include <linux/of_graph.h> #include <linux/pinctrl/devinfo.h> +#include <linux/platform_device.h> #include <linux/pm_runtime.h> #include <linux/regmap.h> #include <linux/reset.h> +#include <drm/drm_atomic_helper.h> + +#include <drm/drm_dp_helper.h> +#include <drm/drm_of.h> +#include <drm/drm_panel.h> +#include <drm/drm_probe_helper.h> #include "rockchip_drm_drv.h" #include "rockchip_drm_vop.h"
drivers/gpu/drm/rockchip/rockchip_rgb.c +4 -5
@@ -5,16 +5,15 @@* Sandy Huang <[email protected]> */ -#include <drm/drmP.h> +#include <linux/component.h> +#include <linux/of_graph.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_dp_helper.h> -#include <drm/drm_panel.h> #include <drm/drm_of.h> +#include <drm/drm_panel.h> #include <drm/drm_probe_helper.h> -#include <linux/component.h> -#include <linux/of_graph.h> -#include "rockchip_drm_drv.h" #include "rockchip_drm_vop.h"
drivers/gpu/drm/rockchip/rockchip_vop_reg.c +8 -3
@@ -4,10 +4,15 @@* Author:Mark Yao <[email protected]> */ -#include <drm/drmP.h> - -#include <linux/kernel.h> #include <linux/component.h> +#include <linux/mod_devicetable.h> +#include <linux/module.h> +#include <linux/of.h> +#include <linux/platform_device.h> + +#include <drm/drm_fourcc.h> +#include <drm/drm_plane.h> +#include <drm/drm_print.h> #include "rockchip_drm_vop.h" #include "rockchip_vop_reg.h"
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 29/33 drm/mediatek: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated drmP.h header file.
While touching the include files divide them up in blocks in the typical order:
\#include <linux/*>
\#include <video/*>
\#include <drm/*>
\#include ""
And sort the includes in the blocks
Add the necessary includes to fix build after removal of drmP.h
---
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/mediatek/mtk_disp_color.c | 2 +- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 2 +- drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 2 +- drivers/gpu/drm/mediatek/mtk_dpi.c | 18 ++++++++++-------- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 10 ++++++---- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 2 +- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 16 ++++++++++------ drivers/gpu/drm/mediatek/mtk_drm_fb.c | 7 ++++--- drivers/gpu/drm/mediatek/mtk_drm_gem.c | 6 ++++-- drivers/gpu/drm/mediatek/mtk_drm_plane.c | 2 +- drivers/gpu/drm/mediatek/mtk_dsi.c | 14 ++++++++------ drivers/gpu/drm/mediatek/mtk_hdmi.c | 14 +++++++++----- 12 files changed, 56 insertions(+), 39 deletions(-)
drivers/gpu/drm/mediatek/mtk_disp_color.c +1 -1
@@ -3,9 +3,9 @@* Copyright (c) 2017 MediaTek Inc. */ -#include <drm/drmP.h> #include <linux/clk.h> #include <linux/component.h> +#include <linux/module.h> #include <linux/of_device.h> #include <linux/of_irq.h> #include <linux/platform_device.h>
drivers/gpu/drm/mediatek/mtk_disp_ovl.c +1 -1
@@ -3,9 +3,9 @@* Copyright (c) 2015 MediaTek Inc. */ -#include <drm/drmP.h> #include <linux/clk.h> #include <linux/component.h> +#include <linux/module.h> #include <linux/of_device.h> #include <linux/of_irq.h> #include <linux/platform_device.h>
drivers/gpu/drm/mediatek/mtk_disp_rdma.c +1 -1
@@ -3,9 +3,9 @@* Copyright (c) 2015 MediaTek Inc. */ -#include <drm/drmP.h> #include <linux/clk.h> #include <linux/component.h> +#include <linux/module.h> #include <linux/of_device.h> #include <linux/of_irq.h> #include <linux/platform_device.h>
drivers/gpu/drm/mediatek/mtk_dpi.c +10 -8
@@ -3,21 +3,23 @@* Copyright (c) 2014 MediaTek Inc. * Author: Jie Qiu <[email protected]> */ -#include <drm/drmP.h> -#include <drm/drm_crtc.h> -#include <drm/drm_atomic_helper.h> -#include <drm/drm_of.h> -#include <linux/kernel.h> + +#include <linux/clk.h> #include <linux/component.h> -#include <linux/platform_device.h> +#include <linux/interrupt.h> +#include <linux/kernel.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/of_graph.h> -#include <linux/interrupt.h> +#include <linux/platform_device.h> #include <linux/types.h> -#include <linux/clk.h> +#include <video/videomode.h> +#include <drm/drm_atomic_helper.h> +#include <drm/drm_crtc.h> +#include <drm/drm_of.h> +#include "mtk_dpi_regs.h" #include "mtk_drm_ddp_comp.h"
drivers/gpu/drm/mediatek/mtk_drm_crtc.c +6 -4
@@ -3,14 +3,16 @@* Copyright (c) 2015 MediaTek Inc. */ +#include <linux/clk.h> +#include <linux/pm_runtime.h> +#include <asm/barrier.h> -#include <drm/drmP.h> +#include <soc/mediatek/smi.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_plane_helper.h> #include <drm/drm_probe_helper.h> -#include <linux/clk.h> -#include <linux/pm_runtime.h> -#include <soc/mediatek/smi.h> +#include <drm/drm_vblank.h> #include "mtk_drm_drv.h" #include "mtk_drm_crtc.h"
drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c +1 -1
@@ -12,7 +12,7 @@#include <linux/of_irq.h> #include <linux/of_platform.h> #include <linux/platform_device.h> -#include <drm/drmP.h> +#include "mtk_drm_drv.h" #include "mtk_drm_plane.h" #include "mtk_drm_ddp_comp.h"
drivers/gpu/drm/mediatek/mtk_drm_drv.c +10 -6
@@ -4,22 +4,26 @@* Author: YT SHEN <[email protected]> */ -#include <drm/drmP.h> +#include <linux/component.h> +#include <linux/iommu.h> +#include <linux/module.h> +#include <linux/of_address.h> +#include <linux/of_platform.h> +#include <linux/pm_runtime.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_drv.h> #include <drm/drm_fb_helper.h> #include <drm/drm_gem.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_of.h> #include <drm/drm_probe_helper.h> -#include <linux/component.h> -#include <linux/iommu.h> -#include <linux/of_address.h> -#include <linux/of_platform.h> -#include <linux/pm_runtime.h> +#include <drm/drm_vblank.h> #include "mtk_drm_crtc.h" #include "mtk_drm_ddp.h" +#include "mtk_drm_ddp.h" #include "mtk_drm_ddp_comp.h" #include "mtk_drm_drv.h" #include "mtk_drm_fb.h"
drivers/gpu/drm/mediatek/mtk_drm_fb.c +4 -3
@@ -3,13 +3,14 @@* Copyright (c) 2015 MediaTek Inc. */ -#include <drm/drmP.h> +#include <linux/dma-buf.h> +#include <linux/reservation.h> +#include <drm/drm_modeset_helper.h> #include <drm/drm_fb_helper.h> +#include <drm/drm_fourcc.h> #include <drm/drm_gem.h> #include <drm/drm_gem_framebuffer_helper.h> -#include <linux/dma-buf.h> -#include <linux/reservation.h> #include "mtk_drm_drv.h" #include "mtk_drm_fb.h"
drivers/gpu/drm/mediatek/mtk_drm_gem.c +4 -2
@@ -3,10 +3,12 @@* Copyright (c) 2015 MediaTek Inc. */ -#include <drm/drmP.h> -#include <drm/drm_gem.h> #include <linux/dma-buf.h> +#include <drm/drm_device.h> +#include <drm/drm_gem.h> +#include <drm/drm_prime.h> +#include "mtk_drm_drv.h" #include "mtk_drm_gem.h"
drivers/gpu/drm/mediatek/mtk_drm_plane.c +1 -1
@@ -4,9 +4,9 @@* Author: CK Hu <[email protected]> */ -#include <drm/drmP.h> #include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_fourcc.h> #include <drm/drm_plane_helper.h> #include <drm/drm_gem_framebuffer_helper.h>
drivers/gpu/drm/mediatek/mtk_dsi.c +8 -6
@@ -3,12 +3,6 @@* Copyright (c) 2015 MediaTek Inc. */ -#include <drm/drmP.h> -#include <drm/drm_atomic_helper.h> -#include <drm/drm_mipi_dsi.h> -#include <drm/drm_panel.h> -#include <drm/drm_of.h> -#include <drm/drm_probe_helper.h> #include <linux/clk.h> #include <linux/component.h> #include <linux/iopoll.h>
@@ -17,9 +11,17 @@#include <linux/of_platform.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> +#include <video/mipi_display.h> #include <video/videomode.h> +#include <drm/drm_atomic_helper.h> +#include <drm/drm_mipi_dsi.h> +#include <drm/drm_of.h> +#include <drm/drm_panel.h> +#include <drm/drm_print.h> +#include <drm/drm_probe_helper.h> +#include "mtk_drm_ddp_comp.h" #define DSI_START 0x00
drivers/gpu/drm/mediatek/mtk_hdmi.c +9 -5
@@ -3,11 +3,7 @@* Copyright (c) 2014 MediaTek Inc. * Author: Jie Qiu <[email protected]> */ -#include <drm/drmP.h> -#include <drm/drm_atomic_helper.h> -#include <drm/drm_crtc.h> -#include <drm/drm_probe_helper.h> -#include <drm/drm_edid.h> +#include <linux/arm-smccc.h> #include <linux/clk.h> #include <linux/delay.h>
@@ -23,7 +19,15 @@#include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/regmap.h> +#include <sound/hdmi-codec.h> + +#include <drm/drm_atomic_helper.h> +#include <drm/drm_crtc.h> +#include <drm/drm_edid.h> +#include <drm/drm_print.h> +#include <drm/drm_probe_helper.h> +#include "mtk_cec.h" #include "mtk_hdmi.h" #include "mtk_hdmi_regs.h"
Signature · 1 line
2.20.1
PATCH 31/33 drm/bochs: drop use of drmP.h
In reply to a message not in the archiveDrop use of the deprecated drmP.h header file. Made bochs.h self-contained and then fixed fallout in remaining files.
Several unused includes was dropped in the process.
---
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/bochs/bochs.h | 6 ++---- drivers/gpu/drm/bochs/bochs_drv.c | 7 +++---- drivers/gpu/drm/bochs/bochs_hw.c | 4 ++++ drivers/gpu/drm/bochs/bochs_kms.c | 8 +++++--- 4 files changed, 14 insertions(+), 11 deletions(-)
drivers/gpu/drm/bochs/bochs.h +2 -4
@@ -1,17 +1,15 @@/* SPDX-License-Identifier: GPL-2.0 */ +#include <linux/io.h> #include <linux/console.h> -#include <drm/drmP.h> #include <drm/drm_crtc.h> #include <drm/drm_crtc_helper.h> #include <drm/drm_encoder.h> #include <drm/drm_fb_helper.h> -#include <drm/drm_simple_kms_helper.h> -#include <drm/drm_gem.h> #include <drm/drm_gem_vram_helper.h> - +#include <drm/drm_simple_kms_helper.h> #include <drm/drm_vram_mm_helper.h> /* ---------------------------------------------------------------------- */
drivers/gpu/drm/bochs/bochs_drv.c +3 -4
@@ -2,11 +2,10 @@/* */ -#include <linux/mm.h> #include <linux/module.h> -#include <linux/slab.h> -#include <drm/drm_fb_helper.h> -#include <drm/drm_probe_helper.h> +#include <linux/pci.h> + +#include <drm/drm_drv.h> #include <drm/drm_atomic_helper.h> #include "bochs.h"
drivers/gpu/drm/bochs/bochs_hw.c +4 -0
@@ -2,6 +2,10 @@/* */ +#include <linux/pci.h> + +#include <drm/drm_fourcc.h> +#include "bochs.h" /* ---------------------------------------------------------------------- */
drivers/gpu/drm/bochs/bochs_kms.c +5 -3
@@ -2,12 +2,14 @@/* */ -#include "bochs.h" +#include <linux/moduleparam.h> +#include <drm/drm_atomic_helper.h> -#include <drm/drm_plane_helper.h> -#include <drm/drm_atomic_uapi.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> + +#include "bochs.h" static int defx =1024 ;static int defy =768 ;
Signature · 1 line
2.20.1
Re: [PATCH v1 31/33] drm/bochs: drop use of drmP.h
Quoted 10 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader file. Madebochs.hself-contained and then fixed fallout in remaining files.
Several unused includes was dropped in the process.Signed-off-by Sam Ravnborg <[email protected]>Cc Gerd Hoffmann <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>
Re: [PATCH v1 31/33] drm/bochs: drop use of drmP.h
In reply to Sam RavnborgQuoted 10 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader file. Madebochs.hself-contained and then fixed fallout in remaining files.
Several unused includes was dropped in the process.Signed-off-by Sam Ravnborg <[email protected]>Cc Gerd Hoffmann <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v1 31/33] drm/bochs: drop use of drmP.h
Quoted 6 lines · Gerd Hoffmann
Quoted 5 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader file. Madebochs.hself-contained and then fixed fallout in remaining files.
Several unused includes was dropped in the process.
Quoted 7 lines
Quoted 5 lines
Signed-off-by Sam Ravnborg <[email protected]>Cc Gerd Hoffmann <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Acked-by Gerd Hoffmann <[email protected]>
Thanks again, applied.
Sam
Re: [PATCH v1 31/33] drm/bochs: drop use of drmP.h
In reply to Gerd HoffmannQuoted 6 lines · Gerd Hoffmann
Quoted 5 lines · Sam Ravnborg
Drop use of the deprecated
drmP.hheader file. Madebochs.hself-contained and then fixed fallout in remaining files.
Several unused includes was dropped in the process.
Quoted 7 lines
Quoted 5 lines
Signed-off-by Sam Ravnborg <[email protected]>Cc Gerd Hoffmann <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Acked-by Gerd Hoffmann <[email protected]>
Thanks again, applied.
Sam
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 33/33 drm/hisilicon: drop use of drmP.h
In reply to a message not in the archiveDrop the deprecated drmP.h header file.
Made the header file selfcontained, and dropped unused header files. Fixed fallout in remaining files.
---
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/hisilicon/hibmc/hibmc_drm_de.c | 6 ++++++ drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 7 +++++++ drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 9 ++++----- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c | 2 ++ drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 1 + drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c | 6 ++++++ drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 8 ++++++-- drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 5 ++++- 8 files changed, 36 insertions(+), 8 deletions(-)
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c +6 -0
@@ -11,10 +11,16 @@* Jianhua Li <[email protected]> */ +#include <linux/delay.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_fourcc.h> +#include <drm/drm_gem_vram_helper.h> #include <drm/drm_plane_helper.h> +#include <drm/drm_print.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> #include "hibmc_drm_drv.h" #include "hibmc_drm_regs.h"
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +7 -0
@@ -13,9 +13,16 @@#include <linux/console.h> #include <linux/module.h> +#include <linux/pci.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_drv.h> +#include <drm/drm_gem_vram_helper.h> +#include <drm/drm_irq.h> +#include <drm/drm_print.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> +#include <drm/drm_vram_mm_helper.h> #include "hibmc_drm_drv.h" #include "hibmc_drm_regs.h"
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h +4 -5
@@ -14,12 +14,11 @@ #ifndef HIBMC_DRM_DRV_H #define HIBMC_DRM_DRV_H -#include <drm/drmP.h> -#include <drm/drm_atomic.h> #include <drm/drm_fb_helper.h> -#include <drm/drm_gem.h> -#include <drm/drm_gem_vram_helper.h> -#include <drm/drm_vram_mm_helper.h> +#include <drm/drm_framebuffer.h> + +struct drm_device; +struct drm_gem_object; struct hibmc_framebuffer { struct drm_framebuffer fb;
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c +2 -0
@@ -13,6 +13,8 @@#include <drm/drm_crtc.h> #include <drm/drm_fb_helper.h> +#include <drm/drm_fourcc.h> +#include <drm/drm_gem_vram_helper.h> #include <drm/drm_probe_helper.h> #include "hibmc_drm_drv.h"
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c +1 -0
@@ -13,6 +13,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_print.h> #include "hibmc_drm_drv.h" #include "hibmc_drm_regs.h"
drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c +6 -0
@@ -11,7 +11,13 @@* Jianhua Li <[email protected]> */ +#include <linux/pci.h> +#include <drm/drm_atomic_helper.h> +#include <drm/drm_gem.h> +#include <drm/drm_gem_vram_helper.h> +#include <drm/drm_print.h> +#include <drm/drm_vram_mm_helper.h> #include "hibmc_drm_drv.h"
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c +6 -2
@@ -17,19 +17,23 @@#include <linux/bitops.h> #include <linux/clk.h> -#include <video/display_timing.h> #include <linux/mfd/syscon.h> +#include <linux/platform_device.h> #include <linux/regmap.h> #include <linux/reset.h> -#include <drm/drmP.h> +#include <video/display_timing.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> +#include <drm/drm_drv.h> #include <drm/drm_fb_cma_helper.h> +#include <drm/drm_fourcc.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_plane_helper.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> #include "kirin_drm_drv.h" #include "kirin_ade_reg.h"
drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c +4 -1
@@ -17,16 +17,19 @@#include <linux/of_platform.h> #include <linux/component.h> +#include <linux/module.h> #include <linux/of_graph.h> +#include <linux/platform_device.h> -#include <drm/drmP.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_drv.h> #include <drm/drm_fb_cma_helper.h> #include <drm/drm_fb_helper.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_of.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> #include "kirin_drm_drv.h"
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v1 33/33] drm/hisilicon: drop use of drmP.h
Quoted 33 lines · Sam Ravnborg
Drop the deprecated
drmP.hheader file.Made the header file selfcontained, and dropped unused header files. Fixed fallout in remaining files.
Signed-off-by Sam Ravnborg <[email protected]>Cc Xinliang Liu <[email protected]>Cc Rongrong Zou <[email protected]>Cc Xinwei Kong <[email protected]>Cc Chen Feng <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Gerd Hoffmann <[email protected]>Cc Thomas Zimmermann <[email protected]>Cc Sam Ravnborg <[email protected]>Cc Allison Randal <[email protected]>Cc Harry Wentland <[email protected]>Cc Thomas Gleixner <[email protected]>Cc Souptick Joarder <[email protected]>Cc John Garry <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc Junwei Zhang <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Cc Hans de Goede <[email protected]>Cc CK Hu <[email protected]>Cc Benjamin Gaignard <[email protected]>Cc Laurent Pinchart <[email protected]>Cc Jani Nikula <[email protected]>Cc Emil Velikov <[email protected]>Cc Eric Anholt <[email protected]>Cc "Noralf Trønnes" <[email protected]>
Quoted 6 lines
---
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 ofdrmp.hin drm-misc"
Speaking of long CC list, most patches are ok yet this has gone a bit crazy. How did you manage to pull such a long list? The get_maintainer.pl script shows a total of 17 for all of hibmc and kirin.
Either way, since you've built-tested these (and conflicts are a matter of #include) for the lot:
-Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v1 33/33] drm/hisilicon: drop use of drmP.h
Hi Emil.
Quoted 9 lines
Quoted 6 lines
---
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 ofdrmp.hin drm-misc"Speaking of long CC list, most patches are ok yet this has gone a bit crazy. How did you manage to pull such a long list? The get_maintainer.pl script shows a total of 17 for all of hibmc and kirin.
Sometimes scripts/get_maintainer.pl outputs a lot of people. Sometimes only a few.
I have not looked into details why, and for this patch series I used "dim add-missing-cc" to most patches.
Quoted 3 lines
Either way, since you've built-tested these (and conflicts are a matter of #include) for the lot:
Acked-by Emil Velikov <[email protected]>
Just to be sure. Was this an Ack for the full series or only this patch? I started processing the patches, and the ones where I have got an explicit ack or r-b is queued already (without your ack).
There are still ~20 patches without feedback in this series, and I would love to have them processed and pushed out.
Sam
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v1 33/33] drm/hisilicon: drop use of drmP.h
Quoted 8 lines · Sam Ravnborg
Hi Emil.
Quoted 6 lines
Quoted 6 lines
---
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 ofdrmp.hin drm-misc"
Quoted 9 lines
Quoted 3 lines
Speaking of long CC list, most patches are ok yet this has gone a bit crazy. How did you manage to pull such a long list? The get_maintainer.pl script shows a total of 17 for all of hibmc and kirin.
Sometimes
scripts/get_maintainer.ploutputs a lot of people. Sometimes only a few.
I have not looked into details why, and for this patch series I used "dim add-missing-cc" to most patches.
This patch seems like a good candidate to fixup dim. Can we volunteer you for the task ;-)
Quoted 7 lines
Quoted 3 lines
Either way, since you've built-tested these (and conflicts are a matter of #include) for the lot:
Acked-by Emil Velikov <[email protected]>Just to be sure. Was this an Ack for the full series or only this patch? I started processing the patches, and the ones where I have got an explicit ack or r-b is queued already (without your ack).
For the lot -> For the series.
Quoted 3 lines
There are still ~20 patches without feedback in this series, and I would love to have them processed and pushed out.
Personally I'm inclined that we can push the series even with an ack-by. Any potential issues raised by a #include reshuffle would be caught by a build - which you've already done.
Tl;Dr: If it were me - ship it :-P
HTH
Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v1 33/33] drm/hisilicon: drop use of drmP.h
Quoted 13 lines · Emil Velikov
Quoted 12 lines · Sam Ravnborg
Hi Emil.
Quoted 9 lines
Quoted 6 lines
---
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 ofdrmp.hin drm-misc"Speaking of long CC list, most patches are ok yet this has gone a bit crazy. How did you manage to pull such a long list? The get_maintainer.pl script shows a total of 17 for all of hibmc and kirin.
Quoted 7 lines
Quoted 5 lines
Sometimes
scripts/get_maintainer.ploutputs a lot of people. Sometimes only a few.
I have not looked into details why, and for this patch series I used "dim add-missing-cc" to most patches.This patch seems like a good candidate to fixup dim. Can we volunteer you for the task ;-)
Naah, it is somewhere in get_maintainers.pl and this is too much perl for my liking.
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Either way, since you've built-tested these (and conflicts are a matter of #include) for the lot:
Acked-by Emil Velikov <[email protected]>Just to be sure. Was this an Ack for the full series or only this patch? I started processing the patches, and the ones where I have got an explicit ack or r-b is queued already (without your ack).
For the lot -> For the series.
Thanks for the feedback.
For now I have added your ack on all, and pushed the ones where I had feedback from others too.
Will resend the rest of the patches, because my git send-email somehow lost several recipients in first try.
Sam
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH v1 32/33] drm/ast: drop use of drmP.h
Am 30.06.19 um 08:19 schrieb Sam Ravnborg:
Quoted 234 lines
Drop use of the deprecated
drmP.hheader file. While touching the files divide include files in blocks and sort the include files in the individual blocks.Signed-off-by Sam Ravnborg <[email protected]>Cc Dave Airlie <[email protected]>Cc Sam Ravnborg <[email protected]>Cc Thomas Zimmermann <[email protected]>Cc Gerd Hoffmann <[email protected]>Cc Alex Deucher <[email protected]>Cc Daniel Vetter <[email protected]>Cc "Christian König" <[email protected]>Cc Sam Bobroff <[email protected]>Cc YueHaibing <[email protected]>Cc Huang Rui <[email protected]>Cc "Y.C. Chen" <[email protected]>Cc Hans de Goede <[email protected]>---
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 ofdrmp.hin drm-misc"Sam
drivers/gpu/drm/ast/ast_dp501.c | 5 ++++- drivers/gpu/drm/ast/ast_drv.c | 9 +++++++-- drivers/gpu/drm/ast/ast_drv.h | 17 +++++++++-------- drivers/gpu/drm/ast/ast_fb.c | 20 ++++++++++++-------- drivers/gpu/drm/ast/ast_main.c | 9 +++++++-- drivers/gpu/drm/ast/ast_mode.c | 8 ++++++-- drivers/gpu/drm/ast/ast_post.c | 7 +++++-- drivers/gpu/drm/ast/ast_ttm.c | 7 ++++++- 8 files changed, 56 insertions(+), 26 deletions(-)drivers/gpu/drm/ast/ast_dp501.c +4
-1@@ -1,8 +1,11 @@// SPDX-License-Identifier: GPL-2.0 +#include <linux/delay.h> #include <linux/firmware.h> -#include <drm/drmP.h> +#include <linux/module.h> +#include "ast_drv.h" +MODULE_FIRMWARE ("ast_dp501_fw.bin" );static int ast_load_dp501_microcode (struct drm_device *dev)drivers/gpu/drm/ast/ast_drv.c +7
-2@@ -25,12 +25,17 @@/* * Authors: Dave Airlie <[email protected]> */ -#include <linux/module.h> +#include <linux/console.h> +#include <linux/module.h> +#include <linux/pci.h> -#include <drm/drmP.h> #include <drm/drm_crtc_helper.h> +#include <drm/drm_drv.h> +#include <drm/drm_gem_vram_helper.h> +#include <drm/drm_pci.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vram_mm_helper.h> #include "ast_drv.h" drivers/gpu/drm/ast/ast_drv.h +9
-8@@ -28,17 +28,18 @@#ifndef __AST_DRV_H__#define __AST_DRV_H__ -#include <drm/drm_encoder.h> -#include <drm/drm_fb_helper.h> - -#include <drm/drm_gem.h> -#include <drm/drm_gem_vram_helper.h> - -#include <drm/drm_vram_mm_helper.h> - +#include <linux/types.h> +#include <linux/io.h> #include <linux/i2c.h> #include <linux/i2c-algo-bit.h> +#include <drm/drm_connector.h> +#include <drm/drm_crtc.h> +#include <drm/drm_encoder.h> +#include <drm/drm_mode.h> +#include <drm/drm_framebuffer.h> +#include <drm/drm_fb_helper.h> +#define DRIVER_AUTHOR "Dave Airlie"#define DRIVER_NAME "ast"drivers/gpu/drm/ast/ast_fb.c +12
-8@@ -25,22 +25,26 @@/* * Authors: Dave Airlie <[email protected]> */ -#include <linux/module.h> -#include <linux/kernel.h> + +#include <linux/delay.h> #include <linux/errno.h> -#include <linux/string.h> +#include <linux/init.h> +#include <linux/kernel.h> #include <linux/mm.h> -#include <linux/tty.h> +#include <linux/module.h> +#include <linux/pci.h> +#include <linux/string.h> #include <linux/sysrq.h> -#include <linux/delay.h> -#include <linux/init.h> - +#include <linux/tty.h> +#include <linux/vmalloc.h> -#include <drm/drmP.h> #include <drm/drm_crtc.h> #include <drm/drm_crtc_helper.h> #include <drm/drm_fb_helper.h> +#include <drm/drm_fourcc.h> #include <drm/drm_gem_framebuffer_helper.h> +#include <drm/drm_gem_vram_helper.h> +#include <drm/drm_print.h> #include <drm/drm_util.h> #include "ast_drv.h" drivers/gpu/drm/ast/ast_main.c +7
-2@@ -25,12 +25,17 @@/* * Authors: Dave Airlie <[email protected]> */ -#include <drm/drmP.h> -#include "ast_drv.h" + +#include <linux/pci.h> #include <drm/drm_crtc_helper.h> #include <drm/drm_fb_helper.h> +#include <drm/drm_gem.h> #include <drm/drm_gem_framebuffer_helper.h> +#include <drm/drm_gem_vram_helper.h> +#include <drm/drm_vram_mm_helper.h> + +#include "ast_drv.h" void ast_set_index_reg_mask(struct ast_private *ast, uint32_t base, uint8_t index,drivers/gpu/drm/ast/ast_mode.c +6
-2@@ -27,14 +27,18 @@/* * Authors: Dave Airlie <[email protected]> */ +#include <linux/export.h> -#include <drm/drmP.h> +#include <linux/pci.h> +#include <drm/drm_crtc.h> #include <drm/drm_crtc_helper.h> +#include <drm/drm_fourcc.h> +#include <drm/drm_gem_vram_helper.h> #include <drm/drm_plane_helper.h> #include <drm/drm_probe_helper.h> -#include "ast_drv.h" +#include "ast_drv.h" #include "ast_tables.h" static struct ast_i2c_chan *ast_i2c_create (struct drm_device *dev);drivers/gpu/drm/ast/ast_post.c +5
-2@@ -26,10 +26,13 @@* Authors: Dave Airlie <[email protected]> */ -#include <drm/drmP.h> -#include "ast_drv.h" +#include <linux/delay.h> +#include <linux/pci.h> + +#include <drm/drm_print.h> #include "ast_dram_tables.h" +#include "ast_drv.h" static void ast_post_chip_2300 (struct drm_device *dev);static void ast_post_chip_2500 (struct drm_device *dev);drivers/gpu/drm/ast/ast_ttm.c +6
-1@@ -25,7 +25,12 @@/* * Authors: Dave Airlie <[email protected]> */ -#include <drm/drmP.h> + +#include <linux/pci.h> + +#include <drm/drm_print.h> +#include <drm/drm_gem_vram_helper.h> +#include <drm/drm_vram_mm_helper.h> #include "ast_drv.h"
Signature · 5 lines
Thomas Zimmermann Graphics Driver Developer SUSE Linux GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 21284 (AG Nürnberg)
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Sam Ravnborg
AppliedRe: [PATCH v1 32/33] drm/ast: drop use of drmP.h
Quoted 1 line · Thomas Zimmermann
Thanks, applied.
sam
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
A message that is not in the archive (sent off-list or not yet received): [email protected]
Daniel Vetter
Reviewed-byRe: [PATCH v1 30/33] drm: add missing include to drm_vram_mm_helper.h
Quoted 27 lines · Sam Ravnborg
The macro
DRM_VRAM_MM_FILE_OPERATIONSreferencs functions declared in other header files. Include these header files so this header files pulls in what it references.Signed-off-by Sam Ravnborg <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Maxime Ripard <[email protected]>Cc Sean Paul <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>---
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 ofdrmp.hin drm-misc"Sam
include/drm/drm_vram_mm_helper.h | 2 ++ 1 file changed, 2 insertions(+)include/drm/drm_vram_mm_helper.h +0
-0
include/drm/drm_vram_mm_helper.h line 7
Quoted 5 lines
include/drm/drm_vram_mm_helper.h +2
-0@@ -3,6 +3,8 @@#ifndef DRM_VRAM_MM_HELPER_H #define DRM_VRAM_MM_HELPER_H +#include <drm/drm_file.h> +#include <drm/drm_ioctl.h>
btw for these helpers good if you manually add relevant people - since there are maintainers for the entire subsystem get_maintainers.pl doesn't look at git history. Or we'd need to add MAINTAINERS entries manually for all of them ...
-Daniel
Quoted 6 lines
include/drm/drm_vram_mm_helper.h +0
-0#include <drm/ttm/ttm_bo_driver.h> struct drm_device ;Signature · 1 line
2.20.1
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Sam Ravnborg
AppliedRe: [PATCH v1 30/33] drm: add missing include to drm_vram_mm_helper.h
Quoted 31 lines · Daniel Vetter
Quoted 30 lines · Sam Ravnborg
The macro
DRM_VRAM_MM_FILE_OPERATIONSreferencs functions declared in other header files. Include these header files so this header files pulls in what it references.Signed-off-by Sam Ravnborg <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Maxime Ripard <[email protected]>Cc Sean Paul <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>---
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 ofdrmp.hin drm-misc"Sam
include/drm/drm_vram_mm_helper.h | 2 ++ 1 file changed, 2 insertions(+)include/drm/drm_vram_mm_helper.h +0
-0@@ -3,6 +3,8 @@#ifndef DRM_VRAM_MM_HELPER_H #define DRM_VRAM_MM_HELPER_H
Quoted 4 lines
include/drm/drm_vram_mm_helper.h line 7
Quoted 2 lines
include/drm/drm_vram_mm_helper.h +2
-0+#include <drm/drm_file.h> +#include <drm/drm_ioctl.h> Reviewed-by Daniel Vetter <[email protected]>
Thanks, applied.
Quoted 5 lines
btw for these helpers good if you manually add relevant people - since there are maintainers for the entire subsystem get_maintainers.pl doesn't look at git history. Or we'd need to add
MAINTAINERSentries manually for all of them ...
Noted, will do so next time I touch the more general files.
get_maintainers sometimes list a _lot_ of people.
I have yet to find out why, but then I have not digged inot it. And for now I just ignore it and add all.
Sam
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v1 0/33] drm: drop use of drmp.h in drm-misc
In reply to a message not in the archiveHi all.
Quoted 12 lines · Sam Ravnborg
This patch set removes a far share of the remaining uses of
drmP.h. Common for all patches are that the respective files are maintained in drm-misc.
All patches are independent except [PATCH 32] drm/ast, [PATCH 31] drm/bochs and [PATCH 33] drm/hisilicon.
They need the fix todrm_vram_mm_helper.h[PATCH 30].Patches have all been build tested with various configs and various architectures.
There are likely introduced a few build issues that randconfig build will reveal, but for all configs I have used the build was OK.
Quoted 6 lines
This patchset does not conclude the quest to kill all uses of
drmP.h, but it is a major step towards the goal.Please review/ack.
I plan to apply the patches to drm-misc, but feel free to do it yourself.
On holiday this week, will process patches next week.
Plan to apply reviewed patches to drm-misc-next and hope to have almost all of it ready for 5.3.
Final removal of drmP.h will be after 5.3 due to dependencies with other trees.
This is how I see it outlined now, plans may change as reality strikes.
Sam
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel