summaryrefslogtreecommitdiff
path: root/drivers/iio/test/Kconfig
diff options
context:
space:
mode:
authorLiam Beguin <liambeguin@gmail.com>2022-06-01 10:21:38 -0400
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-06-19 17:22:49 +0100
commit7a2f6f61e8ee016b75e1b1dd62fbd03e6d6db37d (patch)
tree79cc1f5561e5699229b96159d9905a005f891eed /drivers/iio/test/Kconfig
parent10b9c2c33ac706face458feab8965f11743c98c0 (diff)
downloadlwn-7a2f6f61e8ee016b75e1b1dd62fbd03e6d6db37d.tar.gz
lwn-7a2f6f61e8ee016b75e1b1dd62fbd03e6d6db37d.zip
iio: test: fix missing MODULE_LICENSE for IIO_RESCALE=m
When IIO_RESCALE_KUNIT_TEST=y and IIO_RESCALE=m, drivers/iio/afe/iio-rescale.o is built twice causing the MODULE_LICENSE() to be lost, as shown by: ERROR: modpost: missing MODULE_LICENSE() in drivers/iio/afe/iio-rescale.o Rework the build configuration to have the dependency specified in the Kconfig. Reported-by: Randy Dunlap <rdunlap@infradead.org> Fixes: 8e74a48d17d5 ("iio: test: add basic tests for the iio-rescale driver") Signed-off-by: Liam Beguin <liambeguin@gmail.com> Acked-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> Reviewed-by: Masahiro Yamada <masahiroy@kernel.org> Link: https://lore.kernel.org/r/20220601142138.3331278-1-liambeguin@gmail.com Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/test/Kconfig')
-rw-r--r--drivers/iio/test/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/test/Kconfig b/drivers/iio/test/Kconfig
index 56ca0ad7e77a..4c66c3f18c34 100644
--- a/drivers/iio/test/Kconfig
+++ b/drivers/iio/test/Kconfig
@@ -6,7 +6,7 @@
# Keep in alphabetical order
config IIO_RESCALE_KUNIT_TEST
bool "Test IIO rescale conversion functions"
- depends on KUNIT=y && !IIO_RESCALE
+ depends on KUNIT=y && IIO_RESCALE=y
default KUNIT_ALL_TESTS
help
If you want to run tests on the iio-rescale code say Y here.