Skip to content

Commit ff42262

Browse files
jpoimboegregkh
authored andcommitted
objtool: Silence more KCOV warnings, part 2
commit 55c7803 upstream. Similar to GCOV, KCOV can leave behind dead code and undefined behavior. Warnings related to those should be ignored. The previous commit: 6b023c7 ("objtool: Silence more KCOV warnings") ... only did so for CONFIG_CGOV_KERNEL. Also do it for CONFIG_KCOV, but for real this time. Fixes the following warning: vmlinux.o: warning: objtool: synaptics_report_mt_data: unexpected end of section .text.synaptics_report_mt_data Fixes: 6b023c7 ("objtool: Silence more KCOV warnings") Reported-by: kernel test robot <[email protected]> Signed-off-by: Josh Poimboeuf <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: Linus Torvalds <[email protected]> Link: https://lore.kernel.org/r/a44ba16e194bcbc52c1cef3d3cd9051a62622723.1743481539.git.jpoimboe@kernel.org Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4dc5c03 commit ff42262

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Makefile.lib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ objtool-args-$(CONFIG_MITIGATION_SLS) += --sls
257257
objtool-args-$(CONFIG_STACK_VALIDATION) += --stackval
258258
objtool-args-$(CONFIG_HAVE_STATIC_CALL_INLINE) += --static-call
259259
objtool-args-$(CONFIG_HAVE_UACCESS_VALIDATION) += --uaccess
260-
objtool-args-$(CONFIG_GCOV_KERNEL) += --no-unreachable
260+
objtool-args-$(or $(CONFIG_GCOV_KERNEL),$(CONFIG_KCOV)) += --no-unreachable
261261
objtool-args-$(CONFIG_PREFIX_SYMBOLS) += --prefix=$(CONFIG_FUNCTION_PADDING_BYTES)
262262

263263
objtool-args = $(objtool-args-y) \

0 commit comments

Comments
 (0)