Skip to content

Commit b5e2cc5

Browse files
jpoimboeIngo Molnar
authored andcommitted
objtool: Fix STACK_FRAME_NON_STANDARD for cold subfunctions
The recent STACK_FRAME_NON_STANDARD refactoring forgot about .cold subfunctions. They must also be ignored. Fixes the following warning: drivers/gpu/drm/vmwgfx/vmwgfx_msg.o: warning: objtool: vmw_recv_msg.cold+0x0: unreachable instruction Fixes: c84301d ("objtool: Ignore entire functions rather than instructions") Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/70a09ec0b0704398b2bbfb3153ce3d7cb8a381be.1743136205.git.jpoimboe@kernel.org
1 parent 69d41d6 commit b5e2cc5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/objtool/check.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,6 +1014,8 @@ static int add_ignores(struct objtool_file *file)
10141014
}
10151015

10161016
func->ignore = true;
1017+
if (func->cfunc)
1018+
func->cfunc->ignore = true;
10171019
}
10181020

10191021
return 0;

0 commit comments

Comments
 (0)