* [PATCH v2] media: Kconfig: include test_drivers with MEDIA_TEST_SUPPORT
@ 2020-04-15 13:35 Guillaume Tucker
0 siblings, 0 replies; only message in thread
From: Guillaume Tucker @ 2020-04-15 13:35 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: kernel, linux-media, linux-kernel
Include test_drivers/Kconfig when MEDIA_TEST_SUPPORT is enabled rather
than MEDIA_PLATFORM_SUPPORT. Test drivers should not depend on
platform drivers to be enabled.
Reported-by: "kernelci.org bot" <bot@kernelci.org>
Fixes: 4b32216adb010 ("media: split test drivers from platform directory")
Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
---
Notes:
v2: Drop redundant "if MEDIA_TEST_SUPPORT" in test_drivers/Kconfig
drivers/media/Kconfig | 5 ++++-
drivers/media/test_drivers/Kconfig | 4 ----
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig
index a8def1591352..d926c2603de2 100644
--- a/drivers/media/Kconfig
+++ b/drivers/media/Kconfig
@@ -238,10 +238,13 @@ source "drivers/media/common/Kconfig"
if MEDIA_PLATFORM_SUPPORT
source "drivers/media/platform/Kconfig"
-source "drivers/media/test_drivers/Kconfig"
source "drivers/media/mmc/Kconfig"
endif
+if MEDIA_TEST_SUPPORT
+source "drivers/media/test_drivers/Kconfig"
+endif
+
source "drivers/media/firewire/Kconfig"
endmenu
diff --git a/drivers/media/test_drivers/Kconfig b/drivers/media/test_drivers/Kconfig
index 9f4a9cfbacc9..e62abec030c3 100644
--- a/drivers/media/test_drivers/Kconfig
+++ b/drivers/media/test_drivers/Kconfig
@@ -1,7 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-only
-if MEDIA_TEST_SUPPORT
-
menuconfig V4L_TEST_DRIVERS
bool "V4L test drivers"
depends on VIDEO_DEV
@@ -24,5 +22,3 @@ config VIDEO_VIM2M
source "drivers/media/test_drivers/vicodec/Kconfig"
endif #V4L_TEST_DRIVERS
-
-endif #MEDIA_TEST_SUPPORT
--
2.20.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-15 13:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-15 13:35 [PATCH v2] media: Kconfig: include test_drivers with MEDIA_TEST_SUPPORT Guillaume Tucker
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).