drm/hisilicon: Deleted the drm_device declaration
Subsystems (3)
Tian Tao
maintainerPATCH 1/1 drm/hisilicon: Deleted the drm_device declaration
drm_framebuffer.h contains drm/drm_device.h and struct drm_device is already declared in this file, so there is no need to declare struct drm_device in hibm_drm_drv.h.
--- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h +0 -2
@@ -22,8 +22,6 @@#include <drm/drm_fb_helper.h> #include <drm/drm_framebuffer.h> -struct drm_device ; -struct hibmc_connector {struct drm_connector base;
Signature · 1 line
2.7.4
Hi,
just a few nits.
Am 25.09.20 um 08:49 schrieb Tian Tao:
Quoted 1 line
drm_framebuffer.hcontainsdrm/drm_device.hand structdrm_deviceis
contains -> includes
Quoted 1 line
already declared in this file, so there is no need to declare struct
declared -> defined
Quoted 3 lines
drm_deviceinhibm_drm_drv.h.Signed-off-by Tian Tao <[email protected]>
Quoted 18 lines
--- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h +0
-2@@ -22,8 +22,6 @@#include <drm/drm_fb_helper.h> #include <drm/drm_framebuffer.h> -struct drm_device ; -struct hibmc_connector {struct drm_connector base;
Signature · 6 lines
Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Thomas Zimmermann
maintainerHi
Am 25.09.20 um 09:02 schrieb Thomas Zimmermann:
Quoted 4 lines
Hi,
just a few nits.
Quoted 8 lines
Am 25.09.20 um 08:49 schrieb Tian Tao:
Quoted 1 line
drm_framebuffer.hcontainsdrm/drm_device.hand structdrm_deviceiscontains -> includes
Quoted 1 line
already declared in this file, so there is no need to declare struct
declared -> defined
Wait a second. drm_framebuffer.h actually declares struct drm_device, but does not include <drm/device.h>. So the commit messag should say something like
drm_framebuffer.h already declares struct drm_device, so there's no
need to declare it in hibm_drm_drv.h
Quoted 26 lines
Quoted 4 lines
drm_deviceinhibm_drm_drv.h.Signed-off-by Tian Tao <[email protected]>Quoted 18 lines
--- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h +0
-2@@ -22,8 +22,6 @@#include <drm/drm_fb_helper.h> #include <drm/drm_framebuffer.h> -struct drm_device ; -struct hibmc_connector {struct drm_connector base;
Signature · 6 lines
Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer
Quoted 14 lines · Thomas Zimmermann
Hi
Am 25.09.20 um 09:02 schrieb Thomas Zimmermann:
Quoted 11 lines
Hi,
just a few nits.
Am 25.09.20 um 08:49 schrieb Tian Tao:
Quoted 1 line
drm_framebuffer.hcontainsdrm/drm_device.hand structdrm_deviceiscontains -> includes
Quoted 1 line
already declared in this file, so there is no need to declare struct
Quoted 9 lines
Quoted 1 line
declared -> defined
Wait a second.
drm_framebuffer.hactually declares structdrm_device, but does not include <drm/device.h>. So the commit messag should say something like
drm_framebuffer.halready declares structdrm_device, so there's no
need to declare it inhibm_drm_drv.h
Thank you very much.I will apply this.
Quoted 27 lines
Quoted 26 lines
Quoted 4 lines
drm_deviceinhibm_drm_drv.h.Signed-off-by Tian Tao <[email protected]>Quoted 18 lines
--- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h +0
-2@@ -22,8 +22,6 @@#include <drm/drm_fb_helper.h> #include <drm/drm_framebuffer.h> -struct drm_device ; -struct hibmc_connector {struct drm_connector base;