drm/msm: add missing include to msm_drv.c
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]
--- drivers/gpu/drm/msm/msm_drv.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/msm/msm_drv.c +1 -0
@@ -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
Change seems fine, with a couple of minor things below.
Quoted 1 line · Dmitry Baryshkov
Add explicit include of
drm_bridge.hto themsm_drm.cto 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
Reported-by kernel test robot <[email protected]>Signed-off-by Dmitry Baryshkov <[email protected]>--- drivers/gpu/drm/msm/msm_drv.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/msm/msm_drv.c +1
-0@@ -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>
Quoted 8 lines · Abhinav Kumar
Change seems fine, with a couple of minor things below.
Reviewed-by Abhinav Kumar <[email protected]>Quoted 1 line · Dmitry Baryshkov
Add explicit include of
drm_bridge.hto themsm_drm.cto fix thethis 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
Reported-by kernel test robot <[email protected]>Signed-off-by Dmitry Baryshkov <[email protected]>---
drivers/gpu/drm/msm/msm_drv.c| 1 +1 file changed, 1 insertion(+)drivers/gpu/drm/msm/msm_drv.c +1
-0@@ -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