Skip to content
Commit 7a2f6f61 authored by Liam Beguin's avatar Liam Beguin Committed by Jonathan Cameron
Browse files

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: default avatarRandy Dunlap <rdunlap@infradead.org>
Fixes: 8e74a48d

 ("iio: test: add basic tests for the iio-rescale driver")
Signed-off-by: default avatarLiam Beguin <liambeguin@gmail.com>
Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Tested-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Reviewed-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20220601142138.3331278-1-liambeguin@gmail.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 10b9c2c3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment