summaryrefslogtreecommitdiff
path: root/include/linux/xarray.h
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@kernel.org>2025-09-17 19:03:30 +0300
committerJosh Poimboeuf <jpoimboe@kernel.org>2025-10-15 00:45:24 +0300
commit4cdee7888f42f5573b380ddfa9da43208e759bdc (patch)
tree27ab0f46e3f55c486a454912b04872ab27bd976b /include/linux/xarray.h
parent68245893cf447cca478e6bd71c02741656053ef4 (diff)
downloadlinux-4cdee7888f42f5573b380ddfa9da43208e759bdc.tar.xz
objtool: Fix "unexpected end of section" warning for alternatives
Due to the short circuiting logic in next_insn_to_validate(), control flow may silently transition from .altinstr_replacement to .text without a corresponding nested call to validate_branch(). As a result the validate_branch() 'sec' variable doesn't get reinitialized, which can trigger a confusing "unexpected end of section" warning which blames .altinstr_replacement rather than the offending fallthrough function. Fix that by not caching the section. There's no point in doing that anyway. Acked-by: Petr Mladek <pmladek@suse.com> Tested-by: Joe Lawrence <joe.lawrence@redhat.com> Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'include/linux/xarray.h')
0 files changed, 0 insertions, 0 deletions