* [PATCH 0/2] media: bcm2835-unicam: Fix compilation errors and warnings
@ 2024-04-30 21:31 Laurent Pinchart
2024-04-30 21:36 ` [PATCH 1/2] media: bcm2835-unicam: Drop usage of of_match_ptr() Laurent Pinchart
0 siblings, 1 reply; 7+ messages in thread
From: Laurent Pinchart @ 2024-04-30 21:31 UTC (permalink / raw)
To: linux-media
Cc: Florian Fainelli, Ray Jui, Scott Branden,
Broadcom internal kernel review list, Naushir Patuck,
Dave Stevenson, Sakari Ailus, linux-rpi-kernel, linux-arm-kernel,
linux-kernel
Hello,
This small patch series fixes two compilation issues reported by the
kernel test robot ([1]) in the newly merged Unicam driver. The fixes are
meant for v6.10.
[1] https://lore.kernel.org/linux-media/202404302324.8aTC84kE-lkp@intel.com/
Laurent Pinchart (2):
media: bcm2835-unicam: Drop usage of of_match_ptr()
media: bcm2835-unicam: Include v4l2-subdev.h
drivers/media/platform/broadcom/bcm2835-unicam.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
base-commit: a1c6d22421501fc1016b99ac8570a1030714c70f
--
Regards,
Laurent Pinchart
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/2] media: bcm2835-unicam: Drop usage of of_match_ptr()
2024-04-30 21:31 [PATCH 0/2] media: bcm2835-unicam: Fix compilation errors and warnings Laurent Pinchart
@ 2024-04-30 21:36 ` Laurent Pinchart
2024-04-30 21:36 ` [PATCH 2/2] media: bcm2835-unicam: Include v4l2-subdev.h Laurent Pinchart
2024-05-01 11:03 ` [PATCH 1/2] media: bcm2835-unicam: Drop usage of of_match_ptr() Ricardo Ribalda Delgado
0 siblings, 2 replies; 7+ messages in thread
From: Laurent Pinchart @ 2024-04-30 21:36 UTC (permalink / raw)
To: linux-media
Cc: Florian Fainelli, Ray Jui, Scott Branden,
Broadcom internal kernel review list, Naushir Patuck,
Dave Stevenson, Sakari Ailus, linux-rpi-kernel, linux-arm-kernel,
linux-kernel
Using of_match_ptr() to set the .of_match_table field of the device
driver results in the unicam_of_match table being unused on non-OF
platforms, causing a compilation warning. Fix it by dropping usage of
of_match_ptr(), which can be done because the .of_match_table field is
part of the device_driver structure regardless of whether or not
CONFIG_OF is selected.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202404302324.8aTC84kE-lkp@intel.com/
---
drivers/media/platform/broadcom/bcm2835-unicam.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/broadcom/bcm2835-unicam.c b/drivers/media/platform/broadcom/bcm2835-unicam.c
index bd2bbb53070e..c590e26fe2cf 100644
--- a/drivers/media/platform/broadcom/bcm2835-unicam.c
+++ b/drivers/media/platform/broadcom/bcm2835-unicam.c
@@ -2733,7 +2733,7 @@ static struct platform_driver unicam_driver = {
.driver = {
.name = UNICAM_MODULE_NAME,
.pm = pm_ptr(&unicam_pm_ops),
- .of_match_table = of_match_ptr(unicam_of_match),
+ .of_match_table = unicam_of_match,
},
};
--
Regards,
Laurent Pinchart
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] media: bcm2835-unicam: Include v4l2-subdev.h
2024-04-30 21:36 ` [PATCH 1/2] media: bcm2835-unicam: Drop usage of of_match_ptr() Laurent Pinchart
@ 2024-04-30 21:36 ` Laurent Pinchart
2024-05-01 11:07 ` Ricardo Ribalda Delgado
2024-05-01 11:03 ` [PATCH 1/2] media: bcm2835-unicam: Drop usage of of_match_ptr() Ricardo Ribalda Delgado
1 sibling, 1 reply; 7+ messages in thread
From: Laurent Pinchart @ 2024-04-30 21:36 UTC (permalink / raw)
To: linux-media
Cc: Florian Fainelli, Ray Jui, Scott Branden,
Broadcom internal kernel review list, Naushir Patuck,
Dave Stevenson, Sakari Ailus, linux-rpi-kernel, linux-arm-kernel,
linux-kernel
The unicam driver uses the v4l2_subdev structure. Include the
corresponding header instead of relying on indirect includes.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202404302324.8aTC84kE-lkp@intel.com/
---
drivers/media/platform/broadcom/bcm2835-unicam.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/platform/broadcom/bcm2835-unicam.c b/drivers/media/platform/broadcom/bcm2835-unicam.c
index c590e26fe2cf..3c7878d8d79b 100644
--- a/drivers/media/platform/broadcom/bcm2835-unicam.c
+++ b/drivers/media/platform/broadcom/bcm2835-unicam.c
@@ -55,6 +55,7 @@
#include <media/v4l2-ioctl.h>
#include <media/v4l2-fwnode.h>
#include <media/v4l2-mc.h>
+#include <media/v4l2-subdev.h>
#include <media/videobuf2-dma-contig.h>
#include "bcm2835-unicam-regs.h"
--
Regards,
Laurent Pinchart
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] media: bcm2835-unicam: Drop usage of of_match_ptr()
2024-04-30 21:36 ` [PATCH 1/2] media: bcm2835-unicam: Drop usage of of_match_ptr() Laurent Pinchart
2024-04-30 21:36 ` [PATCH 2/2] media: bcm2835-unicam: Include v4l2-subdev.h Laurent Pinchart
@ 2024-05-01 11:03 ` Ricardo Ribalda Delgado
1 sibling, 0 replies; 7+ messages in thread
From: Ricardo Ribalda Delgado @ 2024-05-01 11:03 UTC (permalink / raw)
To: Laurent Pinchart
Cc: linux-media, Florian Fainelli, Ray Jui, Scott Branden,
Broadcom internal kernel review list, Naushir Patuck,
Dave Stevenson, Sakari Ailus, linux-rpi-kernel, linux-arm-kernel,
linux-kernel
Hi Laurent
This is a dupe of:
https://patchwork.linuxtv.org/project/linux-media/patch/20240430-fix-ipu6-v1-1-9b31fbbce6e4@chromium.org/
regards!
On Tue, Apr 30, 2024 at 11:39 PM Laurent Pinchart
<laurent.pinchart@ideasonboard.com> wrote:
>
> Using of_match_ptr() to set the .of_match_table field of the device
> driver results in the unicam_of_match table being unused on non-OF
> platforms, causing a compilation warning. Fix it by dropping usage of
> of_match_ptr(), which can be done because the .of_match_table field is
> part of the device_driver structure regardless of whether or not
> CONFIG_OF is selected.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202404302324.8aTC84kE-lkp@intel.com/
> ---
> drivers/media/platform/broadcom/bcm2835-unicam.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/platform/broadcom/bcm2835-unicam.c b/drivers/media/platform/broadcom/bcm2835-unicam.c
> index bd2bbb53070e..c590e26fe2cf 100644
> --- a/drivers/media/platform/broadcom/bcm2835-unicam.c
> +++ b/drivers/media/platform/broadcom/bcm2835-unicam.c
> @@ -2733,7 +2733,7 @@ static struct platform_driver unicam_driver = {
> .driver = {
> .name = UNICAM_MODULE_NAME,
> .pm = pm_ptr(&unicam_pm_ops),
> - .of_match_table = of_match_ptr(unicam_of_match),
> + .of_match_table = unicam_of_match,
> },
> };
>
> --
> Regards,
>
> Laurent Pinchart
>
>
--
Ricardo Ribalda
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] media: bcm2835-unicam: Include v4l2-subdev.h
2024-04-30 21:36 ` [PATCH 2/2] media: bcm2835-unicam: Include v4l2-subdev.h Laurent Pinchart
@ 2024-05-01 11:07 ` Ricardo Ribalda Delgado
2024-05-01 11:47 ` Laurent Pinchart
0 siblings, 1 reply; 7+ messages in thread
From: Ricardo Ribalda Delgado @ 2024-05-01 11:07 UTC (permalink / raw)
To: Laurent Pinchart
Cc: linux-media, Florian Fainelli, Ray Jui, Scott Branden,
Broadcom internal kernel review list, Naushir Patuck,
Dave Stevenson, Sakari Ailus, linux-rpi-kernel, linux-arm-kernel,
linux-kernel
Hi Laurent
I have to send a v2 of
https://patchwork.linuxtv.org/project/linux-media/list/?series=12759 I
can include this patch in that set if you want
Regards!
On Tue, Apr 30, 2024 at 11:39 PM Laurent Pinchart
<laurent.pinchart@ideasonboard.com> wrote:
>
> The unicam driver uses the v4l2_subdev structure. Include the
> corresponding header instead of relying on indirect includes.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
> Closes: https://lore.kernel.org/oe-kbuild-all/202404302324.8aTC84kE-lkp@intel.com/
> ---
> drivers/media/platform/broadcom/bcm2835-unicam.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/media/platform/broadcom/bcm2835-unicam.c b/drivers/media/platform/broadcom/bcm2835-unicam.c
> index c590e26fe2cf..3c7878d8d79b 100644
> --- a/drivers/media/platform/broadcom/bcm2835-unicam.c
> +++ b/drivers/media/platform/broadcom/bcm2835-unicam.c
> @@ -55,6 +55,7 @@
> #include <media/v4l2-ioctl.h>
> #include <media/v4l2-fwnode.h>
> #include <media/v4l2-mc.h>
> +#include <media/v4l2-subdev.h>
> #include <media/videobuf2-dma-contig.h>
>
> #include "bcm2835-unicam-regs.h"
> --
> Regards,
>
> Laurent Pinchart
>
>
--
Ricardo Ribalda
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] media: bcm2835-unicam: Include v4l2-subdev.h
2024-05-01 11:07 ` Ricardo Ribalda Delgado
@ 2024-05-01 11:47 ` Laurent Pinchart
2024-05-01 11:55 ` Laurent Pinchart
0 siblings, 1 reply; 7+ messages in thread
From: Laurent Pinchart @ 2024-05-01 11:47 UTC (permalink / raw)
To: Ricardo Ribalda Delgado
Cc: linux-media, Florian Fainelli, Ray Jui, Scott Branden,
Broadcom internal kernel review list, Naushir Patuck,
Dave Stevenson, Sakari Ailus, linux-rpi-kernel, linux-arm-kernel,
linux-kernel
Hi Ricardo,
On Wed, May 01, 2024 at 01:07:29PM +0200, Ricardo Ribalda Delgado wrote:
> Hi Laurent
>
> I have to send a v2 of
> https://patchwork.linuxtv.org/project/linux-media/list/?series=12759 I
> can include this patch in that set if you want
Fine with me.
> On Tue, Apr 30, 2024 at 11:39 PM Laurent Pinchart wrote:
> >
> > The unicam driver uses the v4l2_subdev structure. Include the
> > corresponding header instead of relying on indirect includes.
> >
> > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > Reported-by: kernel test robot <lkp@intel.com>
> Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
> > Closes: https://lore.kernel.org/oe-kbuild-all/202404302324.8aTC84kE-lkp@intel.com/
> > ---
> > drivers/media/platform/broadcom/bcm2835-unicam.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/media/platform/broadcom/bcm2835-unicam.c b/drivers/media/platform/broadcom/bcm2835-unicam.c
> > index c590e26fe2cf..3c7878d8d79b 100644
> > --- a/drivers/media/platform/broadcom/bcm2835-unicam.c
> > +++ b/drivers/media/platform/broadcom/bcm2835-unicam.c
> > @@ -55,6 +55,7 @@
> > #include <media/v4l2-ioctl.h>
> > #include <media/v4l2-fwnode.h>
> > #include <media/v4l2-mc.h>
> > +#include <media/v4l2-subdev.h>
> > #include <media/videobuf2-dma-contig.h>
> >
> > #include "bcm2835-unicam-regs.h"
--
Regards,
Laurent Pinchart
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] media: bcm2835-unicam: Include v4l2-subdev.h
2024-05-01 11:47 ` Laurent Pinchart
@ 2024-05-01 11:55 ` Laurent Pinchart
0 siblings, 0 replies; 7+ messages in thread
From: Laurent Pinchart @ 2024-05-01 11:55 UTC (permalink / raw)
To: Ricardo Ribalda Delgado
Cc: linux-media, Florian Fainelli, Ray Jui, Scott Branden,
Broadcom internal kernel review list, Naushir Patuck,
Dave Stevenson, Sakari Ailus, linux-rpi-kernel, linux-arm-kernel,
linux-kernel
On Wed, May 01, 2024 at 02:47:15PM +0300, Laurent Pinchart wrote:
> On Wed, May 01, 2024 at 01:07:29PM +0200, Ricardo Ribalda Delgado wrote:
> > Hi Laurent
> >
> > I have to send a v2 of
> > https://patchwork.linuxtv.org/project/linux-media/list/?series=12759 I
> > can include this patch in that set if you want
>
> Fine with me.
Assuming your v2 will be merged in v6.10.
> > On Tue, Apr 30, 2024 at 11:39 PM Laurent Pinchart wrote:
> > >
> > > The unicam driver uses the v4l2_subdev structure. Include the
> > > corresponding header instead of relying on indirect includes.
> > >
> > > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > > Reported-by: kernel test robot <lkp@intel.com>
> > Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
> > > Closes: https://lore.kernel.org/oe-kbuild-all/202404302324.8aTC84kE-lkp@intel.com/
> > > ---
> > > drivers/media/platform/broadcom/bcm2835-unicam.c | 1 +
> > > 1 file changed, 1 insertion(+)
> > >
> > > diff --git a/drivers/media/platform/broadcom/bcm2835-unicam.c b/drivers/media/platform/broadcom/bcm2835-unicam.c
> > > index c590e26fe2cf..3c7878d8d79b 100644
> > > --- a/drivers/media/platform/broadcom/bcm2835-unicam.c
> > > +++ b/drivers/media/platform/broadcom/bcm2835-unicam.c
> > > @@ -55,6 +55,7 @@
> > > #include <media/v4l2-ioctl.h>
> > > #include <media/v4l2-fwnode.h>
> > > #include <media/v4l2-mc.h>
> > > +#include <media/v4l2-subdev.h>
> > > #include <media/videobuf2-dma-contig.h>
> > >
> > > #include "bcm2835-unicam-regs.h"
--
Regards,
Laurent Pinchart
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-05-01 11:56 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-30 21:31 [PATCH 0/2] media: bcm2835-unicam: Fix compilation errors and warnings Laurent Pinchart
2024-04-30 21:36 ` [PATCH 1/2] media: bcm2835-unicam: Drop usage of of_match_ptr() Laurent Pinchart
2024-04-30 21:36 ` [PATCH 2/2] media: bcm2835-unicam: Include v4l2-subdev.h Laurent Pinchart
2024-05-01 11:07 ` Ricardo Ribalda Delgado
2024-05-01 11:47 ` Laurent Pinchart
2024-05-01 11:55 ` Laurent Pinchart
2024-05-01 11:03 ` [PATCH 1/2] media: bcm2835-unicam: Drop usage of of_match_ptr() Ricardo Ribalda Delgado
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox