From: kernel test robot <lkp@intel.com>
To: Masahiro Yamada <masahiroy@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [masahiroy:lto-cleanup-wip 53/61] scripts/mod/modpost.c:2311:52: error: 'struct symbol' has no member named 'is_gpl'
Date: Thu, 5 May 2022 02:04:21 +0800 [thread overview]
Message-ID: <202205050152.9MufMAJv-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git lto-cleanup-wip
head: 63a6c25309d336a3bc7185d4fa17fc9e64485d95
commit: 14beda2dc5aff83f69fd5ecf83309250c5c03d79 [53/61] kbuild: embed symbol versions at final link of vmlinux or modules
config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20220505/202205050152.9MufMAJv-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/commit/?id=14beda2dc5aff83f69fd5ecf83309250c5c03d79
git remote add masahiroy https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git
git fetch --no-tags masahiroy lto-cleanup-wip
git checkout 14beda2dc5aff83f69fd5ecf83309250c5c03d79
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=um SUBARCH=i386 prepare
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
arch/x86/um/user-offsets.c:17:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
17 | void foo(void)
| ^~~
scripts/mod/modpost.c: In function 'add_exported_symversions':
>> scripts/mod/modpost.c:2311:52: error: 'struct symbol' has no member named 'is_gpl'
2311 | sym->name, sym->crc, sym->is_gpl ? "_gpl" : "");
| ^~
make[2]: *** [scripts/Makefile.host:112: scripts/mod/modpost.o] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1194: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:219: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +2311 scripts/mod/modpost.c
2287
2288 /* Record CRCs for exported symbols */
2289 static void add_exported_symversions(struct buffer *buf, struct module *mod)
2290 {
2291 struct symbol *sym;
2292
2293 if (!modversions)
2294 return;
2295
2296 buf_printf(buf,
2297 "\n"
2298 "#include <linux/symversion.h>\n"
2299 "\n");
2300
2301 list_for_each_entry(sym, &mod->exported_symbols, list) {
2302 if (!sym->crc_valid) {
2303 warn("EXPORT symbol \"%s\" [%s%s] version generation failed, symbol will not be versioned.\n"
2304 "Is \"%s\" prototyped in <asm/asm-prototypes.h>?\n",
2305 sym->name, mod->name, mod->is_vmlinux ? "" : ".ko",
2306 sym->name);
2307 continue;
2308 }
2309
2310 buf_printf(buf, "SYMBOL_CRC(%s, 0x%08x, \"%s\");\n",
> 2311 sym->name, sym->crc, sym->is_gpl ? "_gpl" : "");
2312 }
2313 }
2314
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-05-04 18:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202205050152.9MufMAJv-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.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®