mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Liam Beguin <liambeguin@gmail.com>
Cc: rdunlap@infradead.org, peda@axentia.se, masahiroy@kernel.org,
	linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org
Subject: Re: [PATCH 1/1] iio: test: fix missing MODULE_LICENSE for IIO_RESCALE=m
Date: Fri, 3 Jun 2022 16:13:14 +0100	[thread overview]
Message-ID: <20220603161314.041643be@jic23-huawei> (raw)
In-Reply-To: <20220601142138.3331278-1-liambeguin@gmail.com>

On Wed,  1 Jun 2022 10:21:38 -0400
Liam Beguin <liambeguin@gmail.com> wrote:

> 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>
Applied to the fixes-togreg branch of iio.git.

Thanks all for chasing this down and coming up with a resolution.

Jonathan

> ---
>  drivers/iio/test/Kconfig  | 2 +-
>  drivers/iio/test/Makefile | 2 +-
>  2 files changed, 2 insertions(+), 2 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.
> diff --git a/drivers/iio/test/Makefile b/drivers/iio/test/Makefile
> index f15ae0a6394f..880360f8d02c 100644
> --- a/drivers/iio/test/Makefile
> +++ b/drivers/iio/test/Makefile
> @@ -4,6 +4,6 @@
>  #
>  
>  # Keep in alphabetical order
> -obj-$(CONFIG_IIO_RESCALE_KUNIT_TEST) += iio-test-rescale.o ../afe/iio-rescale.o
> +obj-$(CONFIG_IIO_RESCALE_KUNIT_TEST) += iio-test-rescale.o
>  obj-$(CONFIG_IIO_TEST_FORMAT) += iio-test-format.o
>  CFLAGS_iio-test-format.o += $(DISABLE_STRUCTLEAK_PLUGIN)


      reply	other threads:[~2022-06-03 15:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-01 14:21 Liam Beguin
2022-06-03 15:13 ` Jonathan Cameron [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220603161314.041643be@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=liambeguin@gmail.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=masahiroy@kernel.org \
    --cc=peda@axentia.se \
    --cc=rdunlap@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®