[GIT PULL] objtool fix

Ingo Molnar posted 1 patch 3 months, 1 week ago
tools/objtool/check.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
[GIT PULL] objtool fix
Posted by Ingo Molnar 3 months, 1 week ago
Linus,

Please pull the latest objtool/urgent Git tree from:

   git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git objtool-urgent-2025-11-01

   # HEAD: c44b4b9eeb71f5b0b617abf6fd66d1ef0aab6200 objtool: Fix skip_alt_group() for non-alternative STAC/CLAC

Fix objtool warning when faced with raw STAC/CLAC instructions.

 Thanks,

	Ingo

------------------>
Josh Poimboeuf (1):
      objtool: Fix skip_alt_group() for non-alternative STAC/CLAC


 tools/objtool/check.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tools/objtool/check.c b/tools/objtool/check.c
index 620854fdaaf6..9004fbc06769 100644
--- a/tools/objtool/check.c
+++ b/tools/objtool/check.c
@@ -3516,8 +3516,11 @@ static bool skip_alt_group(struct instruction *insn)
 {
 	struct instruction *alt_insn = insn->alts ? insn->alts->insn : NULL;
 
+	if (!insn->alt_group)
+		return false;
+
 	/* ANNOTATE_IGNORE_ALTERNATIVE */
-	if (insn->alt_group && insn->alt_group->ignore)
+	if (insn->alt_group->ignore)
 		return true;
 
 	/*
Re: [GIT PULL] objtool fix
Posted by pr-tracker-bot@kernel.org 3 months, 1 week ago
The pull request you sent on Sat, 1 Nov 2025 08:08:09 +0100:

> git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git objtool-urgent-2025-11-01

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/74131a0f1b9efc1364871a04b704e54309861668

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html