* [PATCH] [media] staging/imx: always select VIDEOBUF2_DMA_CONTIG
@ 2017-08-07 10:49 Arnd Bergmann
2017-08-14 23:15 ` Steve Longerbeam
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2017-08-07 10:49 UTC (permalink / raw)
To: Steve Longerbeam, Philipp Zabel, Mauro Carvalho Chehab,
Greg Kroah-Hartman
Cc: Arnd Bergmann, Russell King, Hans Verkuil, linux-media, devel,
linux-kernel
I ran into a rare build error during randconfig testing:
drivers/staging/media/imx/imx-media-capture.o: In function `capture_stop_streaming':
imx-media-capture.c:(.text+0x224): undefined reference to `vb2_buffer_done'
drivers/staging/media/imx/imx-media-capture.o: In function `imx_media_capture_device_register':
imx-media-capture.c:(.text+0xe60): undefined reference to `vb2_queue_init'
imx-media-capture.c:(.text+0xfa0): undefined reference to `vb2_dma_contig_memops'
While VIDEOBUF2_DMA_CONTIG was already selected by the camera driver,
it wasn't necessarily there with just the base driver enabled.
This moves the 'select' statement to the top-level option to make
sure it's always available.
Fixes: 64b5a49df486 ("[media] media: imx: Add Capture Device Interface")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/staging/media/imx/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/media/imx/Kconfig b/drivers/staging/media/imx/Kconfig
index 719508fcb0e9..2be921cd0d55 100644
--- a/drivers/staging/media/imx/Kconfig
+++ b/drivers/staging/media/imx/Kconfig
@@ -2,6 +2,7 @@ config VIDEO_IMX_MEDIA
tristate "i.MX5/6 V4L2 media core driver"
depends on MEDIA_CONTROLLER && VIDEO_V4L2 && ARCH_MXC && IMX_IPUV3_CORE
depends on VIDEO_V4L2_SUBDEV_API
+ select VIDEOBUF2_DMA_CONTIG
select V4L2_FWNODE
---help---
Say yes here to enable support for video4linux media controller
@@ -13,7 +14,6 @@ menu "i.MX5/6 Media Sub devices"
config VIDEO_IMX_CSI
tristate "i.MX5/6 Camera Sensor Interface driver"
depends on VIDEO_IMX_MEDIA && VIDEO_DEV && I2C
- select VIDEOBUF2_DMA_CONTIG
default y
---help---
A video4linux camera sensor interface driver for i.MX5/6.
--
2.9.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] [media] staging/imx: always select VIDEOBUF2_DMA_CONTIG
2017-08-07 10:49 [PATCH] [media] staging/imx: always select VIDEOBUF2_DMA_CONTIG Arnd Bergmann
@ 2017-08-14 23:15 ` Steve Longerbeam
0 siblings, 0 replies; 2+ messages in thread
From: Steve Longerbeam @ 2017-08-14 23:15 UTC (permalink / raw)
To: Arnd Bergmann, Philipp Zabel, Mauro Carvalho Chehab,
Greg Kroah-Hartman
Cc: Russell King, Hans Verkuil, linux-media, devel, linux-kernel
Thanks,
Reviewed-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Steve
On 08/07/2017 03:49 AM, Arnd Bergmann wrote:
> I ran into a rare build error during randconfig testing:
>
> drivers/staging/media/imx/imx-media-capture.o: In function `capture_stop_streaming':
> imx-media-capture.c:(.text+0x224): undefined reference to `vb2_buffer_done'
> drivers/staging/media/imx/imx-media-capture.o: In function `imx_media_capture_device_register':
> imx-media-capture.c:(.text+0xe60): undefined reference to `vb2_queue_init'
> imx-media-capture.c:(.text+0xfa0): undefined reference to `vb2_dma_contig_memops'
>
> While VIDEOBUF2_DMA_CONTIG was already selected by the camera driver,
> it wasn't necessarily there with just the base driver enabled.
> This moves the 'select' statement to the top-level option to make
> sure it's always available.
>
> Fixes: 64b5a49df486 ("[media] media: imx: Add Capture Device Interface")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> drivers/staging/media/imx/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/media/imx/Kconfig b/drivers/staging/media/imx/Kconfig
> index 719508fcb0e9..2be921cd0d55 100644
> --- a/drivers/staging/media/imx/Kconfig
> +++ b/drivers/staging/media/imx/Kconfig
> @@ -2,6 +2,7 @@ config VIDEO_IMX_MEDIA
> tristate "i.MX5/6 V4L2 media core driver"
> depends on MEDIA_CONTROLLER && VIDEO_V4L2 && ARCH_MXC && IMX_IPUV3_CORE
> depends on VIDEO_V4L2_SUBDEV_API
> + select VIDEOBUF2_DMA_CONTIG
> select V4L2_FWNODE
> ---help---
> Say yes here to enable support for video4linux media controller
> @@ -13,7 +14,6 @@ menu "i.MX5/6 Media Sub devices"
> config VIDEO_IMX_CSI
> tristate "i.MX5/6 Camera Sensor Interface driver"
> depends on VIDEO_IMX_MEDIA && VIDEO_DEV && I2C
> - select VIDEOBUF2_DMA_CONTIG
> default y
> ---help---
> A video4linux camera sensor interface driver for i.MX5/6.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-14 23:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-07 10:49 [PATCH] [media] staging/imx: always select VIDEOBUF2_DMA_CONTIG Arnd Bergmann
2017-08-14 23:15 ` Steve Longerbeam
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).