OpenCloudOS-Kernel/drivers/iio/test
Liam Beguin 7a2f6f61e8 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: 8e74a48d17 ("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>
2022-06-19 17:22:49 +01:00
..
Kconfig iio: test: fix missing MODULE_LICENSE for IIO_RESCALE=m 2022-06-19 17:22:49 +01:00
Makefile iio: test: fix missing MODULE_LICENSE for IIO_RESCALE=m 2022-06-19 17:22:49 +01:00
iio-test-format.c iio: test: Add test for IIO_VAL_INT_64. 2021-11-27 16:33:45 +00:00
iio-test-rescale.c iio: test: add basic tests for the iio-rescale driver 2022-02-28 10:22:24 +00:00