summaryrefslogtreecommitdiff
path: root/tools/objtool/Documentation
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@kernel.org>2023-04-19 00:27:54 +0300
committerJosh Poimboeuf <jpoimboe@kernel.org>2023-05-16 16:31:55 +0300
commit6245ce4ab670166efcdae843c35c14e4c0811aa3 (patch)
treeda60345ea949fa5900e561160c06776822014b3b /tools/objtool/Documentation
parentd59fec29b131f30b27343d54bdf1071ee98eda8e (diff)
downloadlinux-6245ce4ab670166efcdae843c35c14e4c0811aa3.tar.xz
objtool: Move noreturn function list to separate file
This makes it a little cleaner and easier to maintain. Suggested-by: Peter Zijlstra <peterz@infradead.org> Reviewed-by: Miroslav Benes <mbenes@suse.cz> Link: https://lore.kernel.org/r/cecacf07a69a244c74474c18b7652627de67a528.1681853186.git.jpoimboe@kernel.org Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'tools/objtool/Documentation')
-rw-r--r--tools/objtool/Documentation/objtool.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/objtool/Documentation/objtool.txt b/tools/objtool/Documentation/objtool.txt
index f9345e0ce740..fe39c2a8ef0d 100644
--- a/tools/objtool/Documentation/objtool.txt
+++ b/tools/objtool/Documentation/objtool.txt
@@ -306,9 +306,8 @@ the objtool maintainers.
3. file.o: warning: objtool: foo+0x48c: bar() is missing a __noreturn annotation
The call from foo() to bar() doesn't return, but bar() is missing the
- __noreturn annotation. NOTE: In addition to adding the __noreturn
- annotation, the function name also needs to be added to
- 'global_noreturns' in tools/objtool/check.c.
+ __noreturn annotation. NOTE: In addition to annotating the function
+ with __noreturn, please also add it to tools/objtool/noreturns.h.
4. file.o: warning: objtool: func(): can't find starting instruction
or