mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 03:52:37 +00:00
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 <[email protected]>
Fixes: 8e74a48d17 ("iio: test: add basic tests for the iio-rescale driver")
Signed-off-by: Liam Beguin <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Tested-by: Randy Dunlap <[email protected]>
Reviewed-by: Masahiro Yamada <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
20 lines
562 B
Plaintext
20 lines
562 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Industrial I/O subsystem unit tests configuration
|
|
#
|
|
|
|
# Keep in alphabetical order
|
|
config IIO_RESCALE_KUNIT_TEST
|
|
bool "Test IIO rescale conversion functions"
|
|
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.
|
|
|
|
This takes advantage of ARCH=um to run tests and should be used by
|
|
developers to tests their changes to the rescaling logic.
|
|
|
|
config IIO_TEST_FORMAT
|
|
bool "Test IIO formatting functions"
|
|
depends on KUNIT=y
|