diff --git a/drivers/media/platform/apple/ave/Kconfig b/drivers/media/platform/apple/ave/Kconfig index 0924ce462102..efd51eedd4ff 100644 --- a/drivers/media/platform/apple/ave/Kconfig +++ b/drivers/media/platform/apple/ave/Kconfig @@ -35,7 +35,8 @@ config VIDEO_APPLE_AVE_KUNIT_TEST config VIDEO_APPLE_AVE_CMD_KUNIT_TEST bool "KUnit tests for Apple AVE firmware ABIs" if !KUNIT_ALL_TESTS - depends on KUNIT && VIDEO_APPLE_AVE=y + depends on VIDEO_APPLE_AVE && KUNIT + depends on KUNIT=y || VIDEO_APPLE_AVE=m default KUNIT_ALL_TESTS help Compare AVC/HEVC 9003 Start and Process images byte for byte with diff --git a/drivers/media/platform/apple/ave/Makefile b/drivers/media/platform/apple/ave/Makefile index 03d3b1bba497..2d5d28d39454 100644 --- a/drivers/media/platform/apple/ave/Makefile +++ b/drivers/media/platform/apple/ave/Makefile @@ -4,4 +4,4 @@ obj-$(CONFIG_VIDEO_APPLE_AVE) += apple-ave.o obj-$(CONFIG_VIDEO_APPLE_AVE) += apple-ave-dma.o apple-ave-y := ave-drv.o ave-fw.o ave-ipc.o ave-cmd.o ave-writer.o ave-abi.o ave-layout.o ave-image.o ave-sess.o ave-v4l2.o ave-vb2.o ave-mctf.o ave-mctf-v4l2.o ave-cmp420.o obj-$(CONFIG_VIDEO_APPLE_AVE_KUNIT_TEST) += ave-sizes-test.o ave-recovery-test.o -obj-$(CONFIG_VIDEO_APPLE_AVE_CMD_KUNIT_TEST) += ave-abi-test.o ave-mctf-test.o ave-cmp420-test.o +apple-ave-$(CONFIG_VIDEO_APPLE_AVE_CMD_KUNIT_TEST) += ave-abi-test.o ave-mctf-test.o ave-cmp420-test.o diff --git a/drivers/media/platform/apple/ave/ave-abi-test.c b/drivers/media/platform/apple/ave/ave-abi-test.c index 20e83305a7c7..72b7d969169c 100644 --- a/drivers/media/platform/apple/ave/ave-abi-test.c +++ b/drivers/media/platform/apple/ave/ave-abi-test.c @@ -2,7 +2,6 @@ /* Byte equality against the pre-ABI-refactor 9003 command builders. */ #include #include -#include #include #include #include @@ -1644,5 +1643,3 @@ static struct kunit_suite ave_abi_suite = { .test_cases = ave_abi_cases, }; kunit_test_suite(ave_abi_suite); - -MODULE_LICENSE("GPL"); diff --git a/drivers/media/platform/apple/ave/ave-cmp420-test.c b/drivers/media/platform/apple/ave/ave-cmp420-test.c index 1fb59e6a6c81..e350f62c2f21 100644 --- a/drivers/media/platform/apple/ave/ave-cmp420-test.c +++ b/drivers/media/platform/apple/ave/ave-cmp420-test.c @@ -9,7 +9,6 @@ * Copyright The Aurora Silicon Contributors */ #include -#include #include #include @@ -462,6 +461,3 @@ static struct kunit_suite ave_cmp420_suite = { .test_cases = ave_cmp420_cases, }; kunit_test_suite(ave_cmp420_suite); - -MODULE_DESCRIPTION("Apple AVE compressed 4:2:0 surface tests"); -MODULE_LICENSE("GPL"); diff --git a/drivers/media/platform/apple/ave/ave-mctf-test.c b/drivers/media/platform/apple/ave/ave-mctf-test.c index 519d1d09043b..b75001659f88 100644 --- a/drivers/media/platform/apple/ave/ave-mctf-test.c +++ b/drivers/media/platform/apple/ave/ave-mctf-test.c @@ -9,7 +9,6 @@ * Copyright The Aurora Silicon Contributors */ #include -#include #include #include #include @@ -439,6 +438,3 @@ static struct kunit_suite ave_mctf_suite = { .test_cases = ave_mctf_cases, }; kunit_test_suite(ave_mctf_suite); - -MODULE_DESCRIPTION("Apple AVE MCTF command image tests"); -MODULE_LICENSE("GPL"); diff --git a/drivers/media/platform/apple/ave/ave-recovery-test.c b/drivers/media/platform/apple/ave/ave-recovery-test.c index a5166265d826..7b0c3fbf414f 100644 --- a/drivers/media/platform/apple/ave/ave-recovery-test.c +++ b/drivers/media/platform/apple/ave/ave-recovery-test.c @@ -116,4 +116,5 @@ static struct kunit_suite ave_recovery_suite = { kunit_test_suite(ave_recovery_suite); +MODULE_DESCRIPTION("Apple AVE firmware recovery window tests"); MODULE_LICENSE("GPL");