From: "tip-bot2 for Ard Biesheuvel" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: syzbot+06fd1a3613c50d36129e@syzkaller.appspotmail.com,
Ard Biesheuvel <ardb@kernel.org>, Ingo Molnar <mingo@kernel.org>,
Masahiro Yamada <yamada.masahiro@socionext.com>,
Michal Marek <michal.lkml@markovi.net>,
Brian Gerst <brgerst@gmail.com>, Uros Bizjak <ubizjak@gmail.com>,
"H. Peter Anvin" <hpa@zytor.com>,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: x86/core] gendwarfksyms: Define __GENKSYMS__ when processing <asm/asm-protoypes.h>
Date: Thu, 20 Mar 2025 09:01:04 -0000 [thread overview]
Message-ID: <174246126447.14745.7024307702923339978.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20250320070746.101552-2-ardb+git@google.com>
The following commit has been merged into the x86/core branch of tip:
Commit-ID: fb3135208f688c5cab7d05e3a0d229935ee7611a
Gitweb: https://git.kernel.org/tip/fb3135208f688c5cab7d05e3a0d229935ee7611a
Author: Ard Biesheuvel <ardb@kernel.org>
AuthorDate: Thu, 20 Mar 2025 08:07:47 +01:00
Committer: Ingo Molnar <mingo@kernel.org>
CommitterDate: Thu, 20 Mar 2025 09:48:49 +01:00
gendwarfksyms: Define __GENKSYMS__ when processing <asm/asm-protoypes.h>
Ensure that __GENKSYMS__ is #define'd when passing <asm/asm-prototypes.h>
through the compiler to capture the exported symbols. This ensures that
exported symbols such as __ref_stack_chk_guard on x86, which is declared
conditionally, is visible to the tool.
Otherwise the build might break when CONFIG_GENDWARFKSYMS=y:
<stdin>:4:15: error: use of undeclared identifier '__ref_stack_chk_guard'
Reported-by: syzbot+06fd1a3613c50d36129e@syzkaller.appspotmail.com
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: syzbot+06fd1a3613c50d36129e@syzkaller.appspotmail.com
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Michal Marek <michal.lkml@markovi.net>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Uros Bizjak <ubizjak@gmail.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Link: https://lore.kernel.org/r/20250320070746.101552-2-ardb+git@google.com
---
scripts/Makefile.build | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 993708d..7855cdc 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -305,6 +305,7 @@ $(obj)/%.rs: $(obj)/%.rs.S FORCE
getasmexports = \
{ echo "\#include <linux/kernel.h>" ; \
echo "\#include <linux/string.h>" ; \
+ echo "\#define __GENKSYMS__" ; \
echo "\#include <asm/asm-prototypes.h>" ; \
$(call getexportsymbols,EXPORT_SYMBOL(\1);) ; }
next prev parent reply other threads:[~2025-03-20 9:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-20 7:07 [PATCH] gendwarfksyms: define __GENKSYMS__ when processing asm-protoypes.h Ard Biesheuvel
2025-03-20 8:22 ` Ard Biesheuvel
2025-03-20 9:01 ` tip-bot2 for Ard Biesheuvel [this message]
2025-03-20 14:40 ` Masahiro Yamada
2025-03-20 14:45 ` Ard Biesheuvel
2025-03-20 14:47 ` Sami Tolvanen
2025-03-20 16:08 ` Ard Biesheuvel
2025-03-20 16:22 ` Sami Tolvanen
2025-03-20 16:41 ` Ard Biesheuvel
2025-03-20 20:00 ` Ingo Molnar
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=174246126447.14745.7024307702923339978.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=ardb@kernel.org \
--cc=brgerst@gmail.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=michal.lkml@markovi.net \
--cc=mingo@kernel.org \
--cc=syzbot+06fd1a3613c50d36129e@syzkaller.appspotmail.com \
--cc=ubizjak@gmail.com \
--cc=x86@kernel.org \
--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®