[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <18500f18-9cd5-a81c-4a55-14e999ed4496@infradead.org>
Date: Fri, 20 May 2022 19:40:26 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>,
Masahiro Yamada <masahiroy@...nel.org>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
linux-iio@...r.kernel.org, Peter Rosin <peda@...ntia.se>,
"open list:KERNEL SELFTEST FRAMEWORK"
<linux-kselftest@...r.kernel.org>,
KUnit Development <kunit-dev@...glegroups.com>
Subject: kbuild problem: ERROR: modpost: missing MODULE_LICENSE() in
drivers/iio/afe/iio-rescale.o
Hi,
In March I reported that a randconfig build complained:
ERROR: modpost: missing MODULE_LICENSE() in drivers/iio/afe/iio-rescale.o
(https://lore.kernel.org/all/16509fb6-e40c-e31b-2c80-264c44b0beb9@infradead.org/)
I am still seeing this problem so I tried to dig into it a bit.
However, I don't see why get_next_modinfo() and friends don't find the
MODULE_LICENSE() since it is in the iio-rescale.o file.
(BTW, I see this build error on many different $ARCH [around 15 tested]
and with 2 different versions of GCC.)
Q1: Is modpost checking both vmlinux and iio-rescale.o for modinfo license
strings?
It looks like it is, because it appears (?) that modpost is looking at
drivers/iio/test/iio-test-rescale.o (<<<<< a kunit test, which is builtin
in my .config) and at drivers/iio/afe/iio-rescale.o (which is built as a
loadable module).
Is this confusing modpost?
I renamed drivers/iio/afe/iio-rescale.c to afe-rescale.c and changed its
Makefile entry accordingly and the MODULE_LICENSE error goes away.
Is this a modpost error or is kunit messing things up?
thanks for looking.
--
~Randy
Powered by blists - more mailing lists