From: Arnd Bergmann <arnd@arndb.de>
To: Andi Kleen <ak@linux.intel.com>, Jessica Yu <jeyu@kernel.org>,
Kees Cook <keescook@chromium.org>, Arnd Bergmann <arnd@arndb.de>
Cc: nico@linaro.org, linux-kernel@vger.kernel.org,
Wanlong Gao <wanlong.gao@gmail.com>,
Luis de Bethencourt <luisbg@kernel.org>,
Randy Dunlap <rdunlap@infradead.org>,
Masahiro Yamada <yamada.masahiro@socionext.com>
Subject: [PATCH 1/2] modpost: don't add warnings for LTO-generated symbols
Date: Mon, 5 Feb 2018 16:12:52 +0100 [thread overview]
Message-ID: <20180205151300.539874-2-arnd@arndb.de> (raw)
In-Reply-To: <20180205151300.539874-1-arnd@arndb.de>
WARNING: vmlinux.o(.data+0x12e0): Section mismatch in reference from the variable pfkey_net_ops.lto_priv.2992 to the function .init.text:pfkey_net_init.lto_priv.2977()
The variable pfkey_net_ops.lto_priv.2992 references
the function __init pfkey_net_init.lto_priv.2977()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
scripts/mod/modpost.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index f75224d59294..8a8a473cee08 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -1027,7 +1027,7 @@ static const struct sectioncheck sectioncheck[] = {
.bad_tosec = { INIT_SECTIONS, NULL },
.mismatch = DATA_TO_ANY_INIT,
.symbol_white_list = {
- "*_template", "*_timer", "*_sht", "*_ops",
+ "*_template", "*_timer", "*_sht", "*_ops", "*_ops.lto_priv*",
"*_probe", "*_probe_one", "*_console", NULL
},
},
--
2.9.0
next prev parent reply other threads:[~2018-02-05 15:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-05 15:12 [PATCH 0/2] LTO: two more fixes Arnd Bergmann
2018-02-05 15:12 ` Arnd Bergmann [this message]
2018-02-05 15:50 ` [PATCH 1/2] modpost: don't add warnings for LTO-generated symbols Andi Kleen
2018-02-05 15:59 ` Arnd Bergmann
2018-02-05 16:22 ` Andi Kleen
2018-02-05 20:30 ` Arnd Bergmann
2018-02-05 15:12 ` [PATCH 2/2] x86: make __ibp_barrier visible Arnd Bergmann
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=20180205151300.539874-2-arnd@arndb.de \
--to=arnd@arndb.de \
--cc=ak@linux.intel.com \
--cc=jeyu@kernel.org \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luisbg@kernel.org \
--cc=nico@linaro.org \
--cc=rdunlap@infradead.org \
--cc=wanlong.gao@gmail.com \
--cc=yamada.masahiro@socionext.com \
/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®