aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-08-20 15:21:35 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-08-26 17:52:19 -0400
commit7155043c2d027c9c848c3d09badb5af2894ed652 (patch)
tree44411210483f01dfb79ee6ecf4209e615a39e322 /drivers
parent1dbfacf2dd30100ea38181f9cc25feaaa9204630 (diff)
[media] enable COMPILE_TEST for media drivers
There are several arch-specific media drivers that don't require asm-specific includes and can be successfully compiled on x86. Add COMPILE_TEST dependency for them, in order to allow a broader test on those drivers. That helps static analysis tools like Coverity to discover eventual troubles there. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/platform/Kconfig21
-rw-r--r--drivers/media/platform/davinci/Kconfig12
-rw-r--r--drivers/media/platform/s5p-tv/Kconfig3
-rw-r--r--drivers/media/platform/soc_camera/Kconfig10
-rw-r--r--drivers/media/rc/Kconfig5
5 files changed, 34 insertions, 17 deletions
diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig
index 6d0a0df6d818..a8ae457f8a02 100644
--- a/drivers/media/platform/Kconfig
+++ b/drivers/media/platform/Kconfig
@@ -56,7 +56,8 @@ config VIDEO_VIU
56 56
57config VIDEO_TIMBERDALE 57config VIDEO_TIMBERDALE
58 tristate "Support for timberdale Video In/LogiWIN" 58 tristate "Support for timberdale Video In/LogiWIN"
59 depends on MFD_TIMBERDALE && VIDEO_V4L2 && I2C && DMADEVICES 59 depends on VIDEO_V4L2 && I2C && DMADEVICES
60 depends on MFD_TIMBERDALE || COMPILE_TEST
60 select DMA_ENGINE 61 select DMA_ENGINE
61 select TIMB_DMA 62 select TIMB_DMA
62 select VIDEO_ADV7180 63 select VIDEO_ADV7180
@@ -74,7 +75,8 @@ config VIDEO_VINO
74 75
75config VIDEO_M32R_AR 76config VIDEO_M32R_AR
76 tristate "AR devices" 77 tristate "AR devices"
77 depends on M32R && VIDEO_V4L2 78 depends on VIDEO_V4L2
79 depends on M32R || COMPILE_TEST
78 ---help--- 80 ---help---
79 This is a video4linux driver for the Renesas AR (Artificial Retina) 81 This is a video4linux driver for the Renesas AR (Artificial Retina)
80 camera module. 82 camera module.
@@ -109,7 +111,8 @@ config VIDEO_OMAP3_DEBUG
109config VIDEO_S3C_CAMIF 111config VIDEO_S3C_CAMIF
110 tristate "Samsung S3C24XX/S3C64XX SoC Camera Interface driver" 112 tristate "Samsung S3C24XX/S3C64XX SoC Camera Interface driver"
111 depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API 113 depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API
112 depends on (ARCH_S3C64XX || PLAT_S3C24XX) && PM_RUNTIME 114 depends on PM_RUNTIME
115 depends on ARCH_S3C64XX || PLAT_S3C24XX || COMPILE_TEST
113 select VIDEOBUF2_DMA_CONTIG 116 select VIDEOBUF2_DMA_CONTIG
114 ---help--- 117 ---help---
115 This is a v4l2 driver for s3c24xx and s3c64xx SoC series camera 118 This is a v4l2 driver for s3c24xx and s3c64xx SoC series camera
@@ -158,7 +161,8 @@ config VIDEO_MEM2MEM_DEINTERLACE
158 161
159config VIDEO_SAMSUNG_S5P_G2D 162config VIDEO_SAMSUNG_S5P_G2D
160 tristate "Samsung S5P and EXYNOS4 G2D 2d graphics accelerator driver" 163 tristate "Samsung S5P and EXYNOS4 G2D 2d graphics accelerator driver"
161 depends on VIDEO_DEV && VIDEO_V4L2 && (PLAT_S5P || ARCH_EXYNOS) 164 depends on VIDEO_DEV && VIDEO_V4L2
165 depends on PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST
162 select VIDEOBUF2_DMA_CONTIG 166 select VIDEOBUF2_DMA_CONTIG
163 select V4L2_MEM2MEM_DEV 167 select V4L2_MEM2MEM_DEV
164 default n 168 default n
@@ -168,7 +172,8 @@ config VIDEO_SAMSUNG_S5P_G2D
168 172
169config VIDEO_SAMSUNG_S5P_JPEG 173config VIDEO_SAMSUNG_S5P_JPEG
170 tristate "Samsung S5P/Exynos3250/Exynos4 JPEG codec driver" 174 tristate "Samsung S5P/Exynos3250/Exynos4 JPEG codec driver"
171 depends on VIDEO_DEV && VIDEO_V4L2 && (PLAT_S5P || ARCH_EXYNOS) 175 depends on VIDEO_DEV && VIDEO_V4L2
176 depends on PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST
172 select VIDEOBUF2_DMA_CONTIG 177 select VIDEOBUF2_DMA_CONTIG
173 select V4L2_MEM2MEM_DEV 178 select V4L2_MEM2MEM_DEV
174 ---help--- 179 ---help---
@@ -177,7 +182,8 @@ config VIDEO_SAMSUNG_S5P_JPEG
177 182
178config VIDEO_SAMSUNG_S5P_MFC 183config VIDEO_SAMSUNG_S5P_MFC
179 tristate "Samsung S5P MFC Video Codec" 184 tristate "Samsung S5P MFC Video Codec"
180 depends on VIDEO_DEV && VIDEO_V4L2 && (PLAT_S5P || ARCH_EXYNOS) 185 depends on VIDEO_DEV && VIDEO_V4L2
186 depends on PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST
181 select VIDEOBUF2_DMA_CONTIG 187 select VIDEOBUF2_DMA_CONTIG
182 default n 188 default n
183 help 189 help
@@ -196,7 +202,8 @@ config VIDEO_MX2_EMMAPRP
196 202
197config VIDEO_SAMSUNG_EXYNOS_GSC 203config VIDEO_SAMSUNG_EXYNOS_GSC
198 tristate "Samsung Exynos G-Scaler driver" 204 tristate "Samsung Exynos G-Scaler driver"
199 depends on VIDEO_DEV && VIDEO_V4L2 && ARCH_EXYNOS5 205 depends on VIDEO_DEV && VIDEO_V4L2
206 depends on ARCH_EXYNOS5 || COMPILE_TEST
200 select VIDEOBUF2_DMA_CONTIG 207 select VIDEOBUF2_DMA_CONTIG
201 select V4L2_MEM2MEM_DEV 208 select V4L2_MEM2MEM_DEV
202 help 209 help
diff --git a/drivers/media/platform/davinci/Kconfig b/drivers/media/platform/davinci/Kconfig
index afb3aec1320e..35809278e349 100644
--- a/drivers/media/platform/davinci/Kconfig
+++ b/drivers/media/platform/davinci/Kconfig
@@ -1,6 +1,7 @@
1config VIDEO_DAVINCI_VPIF_DISPLAY 1config VIDEO_DAVINCI_VPIF_DISPLAY
2 tristate "TI DaVinci VPIF V4L2-Display driver" 2 tristate "TI DaVinci VPIF V4L2-Display driver"
3 depends on VIDEO_DEV && ARCH_DAVINCI 3 depends on VIDEO_DEV
4 depends on ARCH_DAVINCI || COMPILE_TEST
4 select VIDEOBUF2_DMA_CONTIG 5 select VIDEOBUF2_DMA_CONTIG
5 select VIDEO_ADV7343 if MEDIA_SUBDRV_AUTOSELECT 6 select VIDEO_ADV7343 if MEDIA_SUBDRV_AUTOSELECT
6 select VIDEO_THS7303 if MEDIA_SUBDRV_AUTOSELECT 7 select VIDEO_THS7303 if MEDIA_SUBDRV_AUTOSELECT
@@ -14,7 +15,8 @@ config VIDEO_DAVINCI_VPIF_DISPLAY
14 15
15config VIDEO_DAVINCI_VPIF_CAPTURE 16config VIDEO_DAVINCI_VPIF_CAPTURE
16 tristate "TI DaVinci VPIF video capture driver" 17 tristate "TI DaVinci VPIF video capture driver"
17 depends on VIDEO_DEV && ARCH_DAVINCI 18 depends on VIDEO_DEV
19 depends on ARCH_DAVINCI || COMPILE_TEST
18 select VIDEOBUF2_DMA_CONTIG 20 select VIDEOBUF2_DMA_CONTIG
19 help 21 help
20 Enables Davinci VPIF module used for capture devices. 22 Enables Davinci VPIF module used for capture devices.
@@ -26,7 +28,8 @@ config VIDEO_DAVINCI_VPIF_CAPTURE
26 28
27config VIDEO_DM6446_CCDC 29config VIDEO_DM6446_CCDC
28 tristate "TI DM6446 CCDC video capture driver" 30 tristate "TI DM6446 CCDC video capture driver"
29 depends on VIDEO_V4L2 && (ARCH_DAVINCI || ARCH_OMAP3) 31 depends on VIDEO_V4L2
32 depends on ARCH_DAVINCI || ARCH_OMAP3 || COMPILE_TEST
30 select VIDEOBUF_DMA_CONTIG 33 select VIDEOBUF_DMA_CONTIG
31 help 34 help
32 Enables DaVinci CCD hw module. DaVinci CCDC hw interfaces 35 Enables DaVinci CCD hw module. DaVinci CCDC hw interfaces
@@ -40,7 +43,8 @@ config VIDEO_DM6446_CCDC
40 43
41config VIDEO_DM355_CCDC 44config VIDEO_DM355_CCDC
42 tristate "TI DM355 CCDC video capture driver" 45 tristate "TI DM355 CCDC video capture driver"
43 depends on VIDEO_V4L2 && ARCH_DAVINCI 46 depends on VIDEO_V4L2
47 depends on ARCH_DAVINCI || COMPILE_TEST
44 select VIDEOBUF_DMA_CONTIG 48 select VIDEOBUF_DMA_CONTIG
45 help 49 help
46 Enables DM355 CCD hw module. DM355 CCDC hw interfaces 50 Enables DM355 CCD hw module. DM355 CCDC hw interfaces
diff --git a/drivers/media/platform/s5p-tv/Kconfig b/drivers/media/platform/s5p-tv/Kconfig
index 369a4c191e18..9f38b3dbe0a8 100644
--- a/drivers/media/platform/s5p-tv/Kconfig
+++ b/drivers/media/platform/s5p-tv/Kconfig
@@ -8,7 +8,8 @@
8 8
9config VIDEO_SAMSUNG_S5P_TV 9config VIDEO_SAMSUNG_S5P_TV
10 bool "Samsung TV driver for S5P platform" 10 bool "Samsung TV driver for S5P platform"
11 depends on (PLAT_S5P || ARCH_EXYNOS) && PM_RUNTIME 11 depends on PM_RUNTIME
12 depends on PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST
12 default n 13 default n
13 ---help--- 14 ---help---
14 Say Y here to enable selecting the TV output devices for 15 Say Y here to enable selecting the TV output devices for
diff --git a/drivers/media/platform/soc_camera/Kconfig b/drivers/media/platform/soc_camera/Kconfig
index 6540847f4e1d..c0d4c0f822ea 100644
--- a/drivers/media/platform/soc_camera/Kconfig
+++ b/drivers/media/platform/soc_camera/Kconfig
@@ -20,6 +20,7 @@ config SOC_CAMERA_PLATFORM
20config VIDEO_MX3 20config VIDEO_MX3
21 tristate "i.MX3x Camera Sensor Interface driver" 21 tristate "i.MX3x Camera Sensor Interface driver"
22 depends on VIDEO_DEV && MX3_IPU && SOC_CAMERA 22 depends on VIDEO_DEV && MX3_IPU && SOC_CAMERA
23 depends on MX3_IPU || COMPILE_TEST
23 select VIDEOBUF2_DMA_CONTIG 24 select VIDEOBUF2_DMA_CONTIG
24 ---help--- 25 ---help---
25 This is a v4l2 driver for the i.MX3x Camera Sensor Interface 26 This is a v4l2 driver for the i.MX3x Camera Sensor Interface
@@ -58,7 +59,8 @@ config VIDEO_SH_MOBILE_CEU
58 59
59config VIDEO_OMAP1 60config VIDEO_OMAP1
60 tristate "OMAP1 Camera Interface driver" 61 tristate "OMAP1 Camera Interface driver"
61 depends on VIDEO_DEV && ARCH_OMAP1 && SOC_CAMERA 62 depends on VIDEO_DEV && SOC_CAMERA
63 depends on ARCH_OMAP1 || COMPILE_TEST
62 select VIDEOBUF_DMA_CONTIG 64 select VIDEOBUF_DMA_CONTIG
63 select VIDEOBUF_DMA_SG 65 select VIDEOBUF_DMA_SG
64 ---help--- 66 ---help---
@@ -66,14 +68,16 @@ config VIDEO_OMAP1
66 68
67config VIDEO_MX2 69config VIDEO_MX2
68 tristate "i.MX27 Camera Sensor Interface driver" 70 tristate "i.MX27 Camera Sensor Interface driver"
69 depends on VIDEO_DEV && SOC_CAMERA && SOC_IMX27 71 depends on VIDEO_DEV && SOC_CAMERA
72 depends on SOC_IMX27 || COMPILE_TEST
70 select VIDEOBUF2_DMA_CONTIG 73 select VIDEOBUF2_DMA_CONTIG
71 ---help--- 74 ---help---
72 This is a v4l2 driver for the i.MX27 Camera Sensor Interface 75 This is a v4l2 driver for the i.MX27 Camera Sensor Interface
73 76
74config VIDEO_ATMEL_ISI 77config VIDEO_ATMEL_ISI
75 tristate "ATMEL Image Sensor Interface (ISI) support" 78 tristate "ATMEL Image Sensor Interface (ISI) support"
76 depends on VIDEO_DEV && SOC_CAMERA && ARCH_AT91 79 depends on VIDEO_DEV && SOC_CAMERA
80 depends on ARCH_AT91 || COMPILE_TEST
77 select VIDEOBUF2_DMA_CONTIG 81 select VIDEOBUF2_DMA_CONTIG
78 ---help--- 82 ---help---
79 This module makes the ATMEL Image Sensor Interface available 83 This module makes the ATMEL Image Sensor Interface available
diff --git a/drivers/media/rc/Kconfig b/drivers/media/rc/Kconfig
index 5e626af8e313..2b0cc4a98e88 100644
--- a/drivers/media/rc/Kconfig
+++ b/drivers/media/rc/Kconfig
@@ -333,7 +333,8 @@ config IR_GPIO_CIR
333 333
334config RC_ST 334config RC_ST
335 tristate "ST remote control receiver" 335 tristate "ST remote control receiver"
336 depends on ARCH_STI && RC_CORE 336 depends on RC_CORE
337 depends on ARCH_STI || COMPILE_TEST
337 help 338 help
338 Say Y here if you want support for ST remote control driver 339 Say Y here if you want support for ST remote control driver
339 which allows both IR and UHF RX. 340 which allows both IR and UHF RX.
@@ -344,7 +345,7 @@ config RC_ST
344config IR_SUNXI 345config IR_SUNXI
345 tristate "SUNXI IR remote control" 346 tristate "SUNXI IR remote control"
346 depends on RC_CORE 347 depends on RC_CORE
347 depends on ARCH_SUNXI 348 depends on ARCH_SUNXI || COMPILE_TEST
348 ---help--- 349 ---help---
349 Say Y if you want to use sunXi internal IR Controller 350 Say Y if you want to use sunXi internal IR Controller
350 351