* [PATCH 1/3] [media] platform: compile VIDEO_CODA with COMPILE_TEST
@ 2017-03-09 20:08 Mauro Carvalho Chehab
2017-03-09 20:08 ` [PATCH 2/3] Revert "[media] coda/imx-vdoa: constify structs" Mauro Carvalho Chehab
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2017-03-09 20:08 UTC (permalink / raw)
To: Linux Media Mailing List, Linux Doc Mailing List
Cc: Mauro Carvalho Chehab, Mauro Carvalho Chehab, Russell King,
Mauro Carvalho Chehab, Hans Verkuil, Laurent Pinchart,
Peter Griffin, Hugues Fruchet, Arnd Bergmann, Benoit Parrot,
Jean-Christophe Trotin, Tiffany Lin, Minghsiu Tsai, Simon Horman
Currently, IMX_VDOA and VIDEO_CODA only builds on ARCH_MXC.
That prevented me to build-test the driver, causing a bad patch
to be applied, and to see other warnings on this driver.
Reported-by: Russell King <linux@armlinux.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
---
drivers/media/platform/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig
index c9106e105bab..6d0bba271a8d 100644
--- a/drivers/media/platform/Kconfig
+++ b/drivers/media/platform/Kconfig
@@ -151,7 +151,7 @@ if V4L_MEM2MEM_DRIVERS
config VIDEO_CODA
tristate "Chips&Media Coda multi-standard codec IP"
- depends on VIDEO_DEV && VIDEO_V4L2 && ARCH_MXC
+ depends on VIDEO_DEV && VIDEO_V4L2 && (ARCH_MXC || COMPILE_TEST)
depends on HAS_DMA
select SRAM
select VIDEOBUF2_DMA_CONTIG
--
2.9.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] Revert "[media] coda/imx-vdoa: constify structs"
2017-03-09 20:08 [PATCH 1/3] [media] platform: compile VIDEO_CODA with COMPILE_TEST Mauro Carvalho Chehab
@ 2017-03-09 20:08 ` Mauro Carvalho Chehab
2017-03-09 20:08 ` [PATCH 3/3] [media] coda: get rid of unused vars Mauro Carvalho Chehab
2017-03-10 8:03 ` [PATCH 1/3] [media] platform: compile VIDEO_CODA with COMPILE_TEST Hans Verkuil
2 siblings, 0 replies; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2017-03-09 20:08 UTC (permalink / raw)
To: Linux Media Mailing List, Linux Doc Mailing List
Cc: Mauro Carvalho Chehab, Mauro Carvalho Chehab, Russell King,
Philipp Zabel, Mauro Carvalho Chehab
We can't constify struct platform_driver.
This reverts commit d2fe28feaebbbbe147e5e6e7bc68857f9bd7f6ad.
Reported-by: Russell King <linux@armlinux.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
---
drivers/media/platform/coda/imx-vdoa.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/platform/coda/imx-vdoa.c b/drivers/media/platform/coda/imx-vdoa.c
index 67fd8ffa60a4..f61baf7dcbc1 100644
--- a/drivers/media/platform/coda/imx-vdoa.c
+++ b/drivers/media/platform/coda/imx-vdoa.c
@@ -315,13 +315,13 @@ static int vdoa_remove(struct platform_device *pdev)
return 0;
}
-static const struct of_device_id vdoa_dt_ids[] = {
+static struct of_device_id vdoa_dt_ids[] = {
{ .compatible = "fsl,imx6q-vdoa" },
{}
};
MODULE_DEVICE_TABLE(of, vdoa_dt_ids);
-static const struct platform_driver vdoa_driver = {
+static struct platform_driver vdoa_driver = {
.probe = vdoa_probe,
.remove = vdoa_remove,
.driver = {
--
2.9.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] [media] coda: get rid of unused vars
2017-03-09 20:08 [PATCH 1/3] [media] platform: compile VIDEO_CODA with COMPILE_TEST Mauro Carvalho Chehab
2017-03-09 20:08 ` [PATCH 2/3] Revert "[media] coda/imx-vdoa: constify structs" Mauro Carvalho Chehab
@ 2017-03-09 20:08 ` Mauro Carvalho Chehab
2017-03-10 8:03 ` [PATCH 1/3] [media] platform: compile VIDEO_CODA with COMPILE_TEST Hans Verkuil
2 siblings, 0 replies; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2017-03-09 20:08 UTC (permalink / raw)
To: Linux Media Mailing List, Linux Doc Mailing List
Cc: Mauro Carvalho Chehab, Mauro Carvalho Chehab, Russell King,
Philipp Zabel, Mauro Carvalho Chehab
Some vars are not used, as warned by gcc:
drivers/media/platform/coda/coda-common.c: In function 'coda_buf_is_end_of_stream':
drivers/media/platform/coda/coda-common.c:816:20: warning: variable 'src_vq' set but not used [-Wunused-but-set-variable]
struct vb2_queue *src_vq;
^~~~~~
drivers/media/platform/coda/coda-common.c: In function 'coda_buf_queue':
drivers/media/platform/coda/coda-common.c:1315:22: warning: variable 'q_data' set but not used [-Wunused-but-set-variable]
struct coda_q_data *q_data;
^~~~~~
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
---
drivers/media/platform/coda/coda-common.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c
index eb6548f46cba..cb76c96759b9 100644
--- a/drivers/media/platform/coda/coda-common.c
+++ b/drivers/media/platform/coda/coda-common.c
@@ -813,9 +813,7 @@ static int coda_qbuf(struct file *file, void *priv,
static bool coda_buf_is_end_of_stream(struct coda_ctx *ctx,
struct vb2_v4l2_buffer *buf)
{
- struct vb2_queue *src_vq;
-
- src_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT);
+ v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT);
return ((ctx->bit_stream_param & CODA_BIT_STREAM_END_FLAG) &&
(buf->sequence == (ctx->qsequence - 1)));
@@ -1312,9 +1310,6 @@ static void coda_buf_queue(struct vb2_buffer *vb)
struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
struct coda_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
struct vb2_queue *vq = vb->vb2_queue;
- struct coda_q_data *q_data;
-
- q_data = get_q_data(ctx, vb->vb2_queue->type);
/*
* In the decoder case, immediately try to copy the buffer into the
--
2.9.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3] [media] platform: compile VIDEO_CODA with COMPILE_TEST
2017-03-09 20:08 [PATCH 1/3] [media] platform: compile VIDEO_CODA with COMPILE_TEST Mauro Carvalho Chehab
2017-03-09 20:08 ` [PATCH 2/3] Revert "[media] coda/imx-vdoa: constify structs" Mauro Carvalho Chehab
2017-03-09 20:08 ` [PATCH 3/3] [media] coda: get rid of unused vars Mauro Carvalho Chehab
@ 2017-03-10 8:03 ` Hans Verkuil
2 siblings, 0 replies; 4+ messages in thread
From: Hans Verkuil @ 2017-03-10 8:03 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Linux Media Mailing List, Linux Doc Mailing List
Cc: Mauro Carvalho Chehab, Russell King, Mauro Carvalho Chehab,
Hans Verkuil, Laurent Pinchart, Peter Griffin, Hugues Fruchet,
Arnd Bergmann, Benoit Parrot, Jean-Christophe Trotin,
Tiffany Lin, Minghsiu Tsai, Simon Horman
On 03/09/2017 09:08 PM, Mauro Carvalho Chehab wrote:
> Currently, IMX_VDOA and VIDEO_CODA only builds on ARCH_MXC.
>
> That prevented me to build-test the driver, causing a bad patch
> to be applied, and to see other warnings on this driver.
Huh, must be the time of year. I just made a similar patch this week and
it is in one of my git pull requests I posted with lots of other coda
fixes.
Regards,
Hans
>
> Reported-by: Russell King <linux@armlinux.org.uk>
> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
> ---
> drivers/media/platform/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig
> index c9106e105bab..6d0bba271a8d 100644
> --- a/drivers/media/platform/Kconfig
> +++ b/drivers/media/platform/Kconfig
> @@ -151,7 +151,7 @@ if V4L_MEM2MEM_DRIVERS
>
> config VIDEO_CODA
> tristate "Chips&Media Coda multi-standard codec IP"
> - depends on VIDEO_DEV && VIDEO_V4L2 && ARCH_MXC
> + depends on VIDEO_DEV && VIDEO_V4L2 && (ARCH_MXC || COMPILE_TEST)
> depends on HAS_DMA
> select SRAM
> select VIDEOBUF2_DMA_CONTIG
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-03-10 8:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-09 20:08 [PATCH 1/3] [media] platform: compile VIDEO_CODA with COMPILE_TEST Mauro Carvalho Chehab
2017-03-09 20:08 ` [PATCH 2/3] Revert "[media] coda/imx-vdoa: constify structs" Mauro Carvalho Chehab
2017-03-09 20:08 ` [PATCH 3/3] [media] coda: get rid of unused vars Mauro Carvalho Chehab
2017-03-10 8:03 ` [PATCH 1/3] [media] platform: compile VIDEO_CODA with COMPILE_TEST Hans Verkuil
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.