]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
objtool: Warn about unknown annotation types
authorPeter Zijlstra <peterz@infradead.org>
Thu, 28 Nov 2024 09:39:07 +0000 (10:39 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 2 Dec 2024 11:01:45 +0000 (12:01 +0100)
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
Link: https://lore.kernel.org/r/20241128094312.611961175@infradead.org
tools/objtool/check.c

index 26bdd3ebf5d2bf49588e111bff7cd1de946c0853..bfb407f3ac9686288127167b660ea61b5afe98c5 100644 (file)
@@ -2335,6 +2335,10 @@ static int __annotate_ifc(struct objtool_file *file, int type, struct instructio
 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 objtool_file *file, int type, struct instructi
                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;
        }