[media] allow COMPILE_TEST for SAMSUNG_EXYNOS4_IS
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 20 Aug 2014 19:50:03 +0000 (13:50 -0600)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 26 Aug 2014 21:52:18 +0000 (18:52 -0300)
That helps some static checks, so enable it. While there, it was
noticed that linux/sizes.h was missing:

drivers/media/platform/exynos4-is/mipi-csis.c: In function ‘s5pcsis_s_rx_buffer’:
drivers/media/platform/exynos4-is/mipi-csis.c:114:31: error: ‘SZ_4K’ undeclared (first use in this function)
 #define S5PCSIS_PKTDATA_SIZE  SZ_4K
                               ^

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/exynos4-is/Kconfig
drivers/media/platform/exynos4-is/mipi-csis.c

index 5dcaa0a805403c5e23372ee12bf3af06e49d35b7..811872195f36e33139cc57ba8b3d6c8bfde37ffc 100644 (file)
@@ -2,7 +2,7 @@
 config VIDEO_SAMSUNG_EXYNOS4_IS
        bool "Samsung S5P/EXYNOS4 SoC series Camera Subsystem driver"
        depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
-       depends on (PLAT_S5P || ARCH_EXYNOS)
+       depends on (PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST)
        depends on OF && COMMON_CLK
        help
          Say Y here to enable camera host interface devices for
index 8be8897bc6cde7edf4f23f6dff31851f96fe20af..db6fd14d19366b6a43f89bc363a7586783dd55f7 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
 #include <linux/regulator/consumer.h>
+#include <linux/sizes.h>
 #include <linux/slab.h>
 #include <linux/spinlock.h>
 #include <linux/videodev2.h>