Skip to content

Commit 3c6f390

Browse files
jpoimboePeter Zijlstra
authored andcommitted
objtool: Remove "ANNOTATE_NOENDBR on ENDBR" warning
This warning isn't very useful: why would you put ANNOTATE_NOENDBR on ENDBR, and if you did, what's the harm? And thus far it's only found one non-bug, where the '__end_entry_SYSENTER_compat' label happens to land on the ENDBR from entry_SYSCALL_compat: vmlinux.o: warning: objtool: entry_SYSCALL_compat+0x0: ANNOTATE_NOENDBR on ENDBR .. which is fine. Just remove the warning. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/142341a5dafdfc788e4c95b9e226a6eefc9b626e.1660839773.git.jpoimboe@kernel.org
1 parent 7b3e318 commit 3c6f390

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tools/objtool/check.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2102,9 +2102,6 @@ static int read_noendbr_hints(struct objtool_file *file)
21022102
return -1;
21032103
}
21042104

2105-
if (insn->type == INSN_ENDBR)
2106-
WARN_FUNC("ANNOTATE_NOENDBR on ENDBR", insn->sec, insn->offset);
2107-
21082105
insn->noendbr = 1;
21092106
}
21102107

0 commit comments

Comments
 (0)