* [PATCH] drm/msm: add missing include to msm_drv.c
@ 2022-04-30 10:48 Dmitry Baryshkov
2022-04-30 15:00 ` Abhinav Kumar
0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Baryshkov @ 2022-04-30 10:48 UTC (permalink / raw)
To: Bjorn Andersson, Rob Clark, Sean Paul, Abhinav Kumar
Cc: Stephen Boyd, David Airlie, Daniel Vetter, linux-arm-msm,
dri-devel, freedreno, kernel test robot
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")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
drivers/gpu/drm/msm/msm_drv.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c
index 4f3dce334553..4a3dda23e3e0 100644
--- a/drivers/gpu/drm/msm/msm_drv.c
+++ b/drivers/gpu/drm/msm/msm_drv.c
@@ -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.35.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/msm: add missing include to msm_drv.c
2022-04-30 10:48 [PATCH] drm/msm: add missing include to msm_drv.c Dmitry Baryshkov
@ 2022-04-30 15:00 ` Abhinav Kumar
2022-04-30 18:06 ` Dmitry Baryshkov
0 siblings, 1 reply; 3+ messages in thread
From: Abhinav Kumar @ 2022-04-30 15:00 UTC (permalink / raw)
To: Dmitry Baryshkov, Bjorn Andersson, Rob Clark, Sean Paul
Cc: Stephen Boyd, David Airlie, Daniel Vetter, linux-arm-msm,
dri-devel, freedreno, kernel test robot
Change seems fine, with a couple of minor things below.
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
On 4/30/2022 3:48 AM, Dmitry Baryshkov wrote:
> Add explicit include of drm_bridge.h to the msm_drm.c to fix the
this should be msm_drv.c
> 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?
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
> drivers/gpu/drm/msm/msm_drv.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c
> index 4f3dce334553..4a3dda23e3e0 100644
> --- a/drivers/gpu/drm/msm/msm_drv.c
> +++ b/drivers/gpu/drm/msm/msm_drv.c
> @@ -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>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/msm: add missing include to msm_drv.c
2022-04-30 15:00 ` Abhinav Kumar
@ 2022-04-30 18:06 ` Dmitry Baryshkov
0 siblings, 0 replies; 3+ messages in thread
From: Dmitry Baryshkov @ 2022-04-30 18:06 UTC (permalink / raw)
To: Abhinav Kumar, Bjorn Andersson, Rob Clark, Sean Paul
Cc: Stephen Boyd, David Airlie, Daniel Vetter, linux-arm-msm,
dri-devel, freedreno, kernel test robot
On 30/04/2022 18:00, Abhinav Kumar wrote:
> Change seems fine, with a couple of minor things below.
>
> Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
>
> On 4/30/2022 3:48 AM, Dmitry Baryshkov wrote:
>> Add explicit include of drm_bridge.h to the msm_drm.c to fix the
>
> this should be msm_drv.c
Ack.
>
>> 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/202204301804.hJxOQfse-lkp@intel.com/config
>
>> Reported-by: kernel test robot <lkp@intel.com>
>> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>> ---
>> drivers/gpu/drm/msm/msm_drv.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/gpu/drm/msm/msm_drv.c
>> b/drivers/gpu/drm/msm/msm_drv.c
>> index 4f3dce334553..4a3dda23e3e0 100644
>> --- a/drivers/gpu/drm/msm/msm_drv.c
>> +++ b/drivers/gpu/drm/msm/msm_drv.c
>> @@ -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>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-30 18:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-30 10:48 [PATCH] drm/msm: add missing include to msm_drv.c Dmitry Baryshkov
2022-04-30 15:00 ` Abhinav Kumar
2022-04-30 18:06 ` Dmitry Baryshkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).