Skip to contentSkip to conversation

drm/hisilicon: Deleted the drm_device declaration

PATCH Superseded Tian Tao 3 participants 4 messages Sep 25, 2020

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Tian Tao

author maintainer
#0 lore raw

PATCH 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
index 87d2aad..6a63502 100644
@@ -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
maintainer Acked-by on v1 1/1
#1 lore raw

Hi,

just a few nits.

Am 25.09.20 um 08:49 schrieb Tian Tao:

Quoted 1 line

drm_framebuffer.h contains drm/drm_device.h and struct drm_device is

contains -> includes

Quoted 1 line

already declared in this file, so there is no need to declare struct

declared -> defined

Quoted 3 lines

drm_device in hibm_drm_drv.h.

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
index 87d2aad..6a63502 100644
@@ -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

#2 lore raw

Hi

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.h contains drm/drm_device.h and struct drm_device is

contains -> 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_device in hibm_drm_drv.h.

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
index 87d2aad..6a63502 100644
@@ -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
#3 lore raw
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.h contains drm/drm_device.h and struct drm_device is

contains -> 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.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

Thank you very much.I will apply this.

Quoted 27 lines
Quoted 26 lines
Quoted 4 lines

drm_device in hibm_drm_drv.h.

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
index 87d2aad..6a63502 100644
@@ -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;