]> www.infradead.org Git - users/jedix/linux-maple.git/commit
objtool: Fix false-positive "ignoring unreachables" warning
authorJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 9 Apr 2025 22:49:36 +0000 (15:49 -0700)
committerIngo Molnar <mingo@kernel.org>
Thu, 10 Apr 2025 20:55:00 +0000 (22:55 +0200)
commit87cb582d2f55d379ce95b5bcc4ec596e29b0a65e
tree2f59be37d12c8b4b5e30c893eada1ffd83c8d23a
parent2d12c6fb78753925f494ca9079e2383529e8ae0e
objtool: Fix false-positive "ignoring unreachables" warning

There's no need to try to automatically disable unreachable warnings if
they've already been manually disabled due to CONFIG_KCOV quirks.

This avoids a spurious warning with a KCOV kernel:

  fs/smb/client/cifs_unicode.o: warning: objtool: cifsConvertToUTF16.part.0+0xce5: ignoring unreachables due to jump table quirk

Fixes: eeff7ac61526 ("objtool: Warn when disabling unreachable warnings")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/5eb28eeb6a724b7d945a961cfdcf8d41e6edf3dc.1744238814.git.jpoimboe@kernel.org
Closes: https://lore.kernel.org/r/202504090910.QkvTAR36-lkp@intel.com/
tools/objtool/arch/x86/special.c