Makefile: remove redundant tool coverage variables
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 6 May 2024 13:35:43 +0000 (22:35 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 14 May 2024 14:35:48 +0000 (23:35 +0900)
commit7f7f6f7ad654b326897c9f54438a06f03454bd0d
treece70b1dee7124751bf7f644e69117ec5d9c135e1
parent9c2d1328f88adb6cbfb218163623254b96f680d3
Makefile: remove redundant tool coverage variables

Now Kbuild provides reasonable defaults for objtool, sanitizers, and
profilers.

Remove redundant variables.

Note:

This commit changes the coverage for some objects:

  - include arch/mips/vdso/vdso-image.o into UBSAN, GCOV, KCOV
  - include arch/sparc/vdso/vdso-image-*.o into UBSAN
  - include arch/sparc/vdso/vma.o into UBSAN
  - include arch/x86/entry/vdso/extable.o into KASAN, KCSAN, UBSAN, GCOV, KCOV
  - include arch/x86/entry/vdso/vdso-image-*.o into KASAN, KCSAN, UBSAN, GCOV, KCOV
  - include arch/x86/entry/vdso/vdso32-setup.o into KASAN, KCSAN, UBSAN, GCOV, KCOV
  - include arch/x86/entry/vdso/vma.o into GCOV, KCOV
  - include arch/x86/um/vdso/vma.o into KASAN, GCOV, KCOV

I believe these are positive effects because all of them are kernel
space objects.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Tested-by: Roberto Sassu <roberto.sassu@huawei.com>
34 files changed:
arch/arm/boot/bootp/Makefile
arch/arm/boot/compressed/Makefile
arch/arm/vdso/Makefile
arch/arm64/kernel/pi/Makefile
arch/arm64/kernel/vdso/Makefile
arch/arm64/kvm/hyp/nvhe/Makefile
arch/csky/kernel/vdso/Makefile
arch/loongarch/vdso/Makefile
arch/mips/boot/compressed/Makefile
arch/mips/vdso/Makefile
arch/parisc/boot/compressed/Makefile
arch/powerpc/kernel/vdso/Makefile
arch/powerpc/purgatory/Makefile
arch/riscv/boot/Makefile
arch/riscv/kernel/compat_vdso/Makefile
arch/riscv/kernel/pi/Makefile
arch/riscv/kernel/vdso/Makefile
arch/riscv/purgatory/Makefile
arch/s390/kernel/vdso32/Makefile
arch/s390/kernel/vdso64/Makefile
arch/s390/purgatory/Makefile
arch/sh/boot/compressed/Makefile
arch/sparc/vdso/Makefile
arch/x86/boot/Makefile
arch/x86/boot/compressed/Makefile
arch/x86/entry/vdso/Makefile
arch/x86/purgatory/Makefile
arch/x86/realmode/rm/Makefile
arch/x86/um/vdso/Makefile
drivers/firmware/efi/libstub/Makefile
drivers/misc/lkdtm/Makefile
init/Makefile
scripts/Makefile.vmlinux
scripts/mod/Makefile