File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -319,14 +319,12 @@ the objtool maintainers.
319
319
a just a bad person, you can tell objtool to ignore it. See the
320
320
"Adding exceptions" section below.
321
321
322
- If it's not actually in a callable function (e.g. kernel entry code),
323
- change ENDPROC to END.
322
+ 3. file.o: warning: objtool: foo+0x48c: bar() missing __noreturn in .c/.h or NORETURN() in noreturns.h
324
323
325
- 3. file.o: warning: objtool: foo+0x48c: bar() is missing a __noreturn annotation
326
-
327
- The call from foo() to bar() doesn't return, but bar() is missing the
328
- __noreturn annotation. NOTE: In addition to annotating the function
329
- with __noreturn, please also add it to tools/objtool/noreturns.h.
324
+ The call from foo() to bar() doesn't return, but bar() is incorrectly
325
+ annotated. A noreturn function must be marked __noreturn in both its
326
+ declaration and its definition, and must have a NORETURN() annotation
327
+ in tools/objtool/noreturns.h.
330
328
331
329
4. file.o: warning: objtool: func(): can't find starting instruction
332
330
or
Original file line number Diff line number Diff line change @@ -4477,7 +4477,7 @@ static int validate_reachable_instructions(struct objtool_file *file)
4477
4477
if (prev_insn && prev_insn -> dead_end ) {
4478
4478
call_dest = insn_call_dest (prev_insn );
4479
4479
if (call_dest ) {
4480
- WARN_INSN (insn , "%s() is missing a __noreturn annotation " ,
4480
+ WARN_INSN (insn , "%s() missing __noreturn in .c/.h or NORETURN() in noreturns.h " ,
4481
4481
call_dest -> name );
4482
4482
warnings ++ ;
4483
4483
continue ;
You can’t perform that action at this time.
0 commit comments