Skip to contentSkip to conversation

drm/msm: add missing include to msm_drv.c

PATCH Superseded Dmitry Baryshkov 2 participants 3 messages Apr 30, 2022

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/msm: add missing include to msm_drv.c

Add explicit include of drm_bridge.h to the msm_drm.c to fix the following warning:

drivers/gpu/drm/msm/msm_drv.c:236:17: error: implicit declaration of function 'drm_bridge_remove'; did you mean 'drm_bridge_detach'? [-Werror=implicit-function-declaration]

Fixes d28ea556267c ("drm/msm: properly add and remove internal bridges")
---
 drivers/gpu/drm/msm/msm_drv.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/msm/msm_drv.c +1 -0
index 4f3dce334553..4a3dda23e3e0 100644
@@ -11,6 +11,7 @@
 #include <linux/uaccess.h>
 #include <uapi/linux/sched/types.h>
 
+#include <drm/drm_bridge.h>
 #include <drm/drm_drv.h>
 #include <drm/drm_file.h>
 #include <drm/drm_ioctl.h>
Signature · 1 line
2.35.1
Reviewed-by on v1 1/1
#1 lore raw

Change seems fine, with a couple of minor things below.

Quoted 1 line · Dmitry Baryshkov

Add explicit include of drm_bridge.h to the msm_drm.c to fix the

this should be msm_drv.c

Quoted 5 lines

following warning:

drivers/gpu/drm/msm/msm_drv.c:236:17: error: implicit declaration of function 'drm_bridge_remove'; did you mean 'drm_bridge_detach'? [-Werror=implicit-function-declaration]

Fixes d28ea556267c ("drm/msm: properly add and remove internal bridges")

How did the this commit compile without this?

Quoted 18 lines
---
  drivers/gpu/drm/msm/msm_drv.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/msm/msm_drv.c +1 -0
index 4f3dce334553..4a3dda23e3e0 100644
@@ -11,6 +11,7 @@
  #include <linux/uaccess.h>
  #include <uapi/linux/sched/types.h>
 
+#include <drm/drm_bridge.h>
  #include <drm/drm_drv.h>
  #include <drm/drm_file.h>
  #include <drm/drm_ioctl.h>
#2 lore raw
Quoted 8 lines · Abhinav Kumar

Change seems fine, with a couple of minor things below.

Quoted 1 line · Dmitry Baryshkov

Add explicit include of drm_bridge.h to the msm_drm.c to fix the

this should be msm_drv.c

Ack.

Quoted 8 lines
Quoted 6 lines

following warning:

drivers/gpu/drm/msm/msm_drv.c:236:17: error: implicit declaration of function 'drm_bridge_remove'; did you mean 'drm_bridge_detach'? [-Werror=implicit-function-declaration]

Fixes d28ea556267c ("drm/msm: properly add and remove internal bridges")

How did the this commit compile without this?

I think this manifests only in some situations depending on the drivers and features selected. The config generated by the robot is the PA/RISC randconfig. See [1]. For example the whole tree compile w/o any issues here. Otherwise I would have noticed it.

[1] https://download.01.org/0day-ci/archive/20220430/[email protected]/config

Quoted 18 lines
Quoted 18 lines

---
  drivers/gpu/drm/msm/msm_drv.c | 1 +

  1 file changed, 1 insertion(+)
drivers/gpu/drm/msm/msm_drv.c +1 -0
index 4f3dce334553..4a3dda23e3e0 100644
@@ -11,6 +11,7 @@
   #include <linux/uaccess.h>
   #include <uapi/linux/sched/types.h>
+#include <drm/drm_bridge.h>
   #include <drm/drm_drv.h>
   #include <drm/drm_file.h>
   #include <drm/drm_ioctl.h>
Signature · 2 lines
With best wishes
Dmitry