[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241128094312.611961175@infradead.org>
Date: Thu, 28 Nov 2024 10:39:07 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: jpoimboe@...nel.org
Cc: chenhuacai@...nel.org,
kernel@...0n.name,
x86@...nel.org,
peterz@...radead.org,
loongarch@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: [PATCH v2 16/16] objtool: Warn about unknown annotation types
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
---
tools/objtool/check.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
--- a/tools/objtool/check.c
+++ b/tools/objtool/check.c
@@ -2335,6 +2335,10 @@ static int __annotate_ifc(struct objtool
static int __annotate_late(struct objtool_file *file, int type, struct instruction *insn)
{
switch (type) {
+ case ANNOTYPE_NOENDBR:
+ /* early */
+ break;
+
case ANNOTYPE_RETPOLINE_SAFE:
if (insn->type != INSN_JUMP_DYNAMIC &&
insn->type != INSN_CALL_DYNAMIC &&
@@ -2359,11 +2363,20 @@ static int __annotate_late(struct objtoo
insn->unret = 1;
break;
+ case ANNOTYPE_IGNORE_ALTS:
+ /* early */
+ break;
+
+ case ANNOTYPE_INTRA_FUNCTION_CALL:
+ /* ifc */
+ break;
+
case ANNOTYPE_REACHABLE:
insn->dead_end = false;
break;
default:
+ WARN_INSN(insn, "Unknown annotation type: %d", type);
break;
}
Powered by blists - more mailing lists