From: Masahiro Yamada <masahiroy@kernel.org>
To: Randy Dunlap <rdunlap@infradead.org>
Cc: Liam Beguin <liambeguin@gmail.com>,
Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
linux-iio@vger.kernel.org, Peter Rosin <peda@axentia.se>,
"open list:KERNEL SELFTEST FRAMEWORK"
<linux-kselftest@vger.kernel.org>,
KUnit Development <kunit-dev@googlegroups.com>
Subject: Re: kbuild problem: ERROR: modpost: missing MODULE_LICENSE() in drivers/iio/afe/iio-rescale.o
Date: Mon, 30 May 2022 11:37:12 +0900 [thread overview]
Message-ID: <CAK7LNASUvQdEnSzUUYCjRVaZJpun5hdJ_oY=wYEW2RcF3spHuw@mail.gmail.com> (raw)
In-Reply-To: <593f31f6-1628-87f2-1b5d-ad8e79119dd6@infradead.org>
On Mon, May 30, 2022 at 9:17 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>
>
>
> On 5/29/22 14:20, Liam Beguin wrote:
> > Hi Randy,
> >
> > On Thu, May 26, 2022 at 01:04:41PM -0700, Randy Dunlap wrote:
> >>
> >>
> >> On 5/26/22 09:04, Liam Beguin wrote:
> >>> Hi Randy,
> >>>
> >>> On Thu, May 26, 2022 at 08:36:34AM -0700, Randy Dunlap wrote:
> >>>> Liam:
> >>>>
> >>>> Any comment on this?
> >>>> Otherwise I'll just send a formal patch like this (below).
> >>>
> >>> Apologies for not answering earlier.
> >>>
> >>> I wanted to look more into Masahiro's comment and try to fix the
> >>> Makefile, but that can be done after.
> >>>
> >>> IMO your patch improves the current Kconfig, so I'd recommend sending
> >>> the patch. If it can wait a bit, I can look at the Makefile over the
> >>> weekend.
> >>>
> >>
> >> Liam,
> >>
> >> I'll wait until next week to see if you come up with anything.
> >>
> >
> > The following patch fixes the issue while addressing Masahiro's comment.
> > I also considered `select IIO_RESCALE`, but I'm not sure what's usually
> > preferred.
> >
> > 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)
> >
> > I'll send a patch as soon as you confirm this works for you too.
>
> Looks good. Thanks.
>
> Acked-by: Randy Dunlap <rdunlap@infradead.org>
> Tested-by: Randy Dunlap <rdunlap@infradead.org>
>
> --
> ~Randy
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
--
Best Regards
Masahiro Yamada
next prev parent reply other threads:[~2022-05-30 2:39 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-21 2:40 kbuild problem: ERROR: modpost: missing MODULE_LICENSE() in drivers/iio/afe/iio-rescale.o Randy Dunlap
2022-05-21 3:08 ` Randy Dunlap
2022-05-21 3:17 ` Randy Dunlap
2022-05-21 3:51 ` Randy Dunlap
2022-05-21 4:14 ` Masahiro Yamada
2022-05-21 5:39 ` Randy Dunlap
2022-05-26 15:36 ` Randy Dunlap
2022-05-26 16:04 ` Liam Beguin
2022-05-26 20:04 ` Randy Dunlap
2022-05-29 21:20 ` Liam Beguin
2022-05-30 0:17 ` Randy Dunlap
2022-05-30 2:37 ` Masahiro Yamada [this message]
2022-05-21 4:12 ` Masahiro Yamada
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='CAK7LNASUvQdEnSzUUYCjRVaZJpun5hdJ_oY=wYEW2RcF3spHuw@mail.gmail.com' \
--to=masahiroy@kernel.org \
--cc=kunit-dev@googlegroups.com \
--cc=liambeguin@gmail.com \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.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;
as well as URLs for NNTP newsgroup(s).