Re: [PATCH 0/3] KVM: selftests: Delete three pieces of dead library code
From: Sean Christopherson
Date: Fri Oct 02 2026 - 17:16:42 EST
On Fri, 18 Sep 2026 17:06:28 +0530, Gokul K wrote:
> Three unused things in the selftest library, found by asking the linker
> rather than by reading: build the selftests, then look for global symbols
> in lib/ that no object refers to, and check each survivor against the
> whole source tree by hand.
>
> 1/3 sparsebit_copy() and sparsebit_num_set(), neither called
> 2/3 the declaration of vcpu_set_cpuid_maxphyaddr(), which has no
> definition anywhere
> 3/3 guest_snprintf(), a varargs wrapper nobody calls
>
> [...]
Applied 2 and 3 to kvm-x86 selftests, thanks!
[1/3] KVM: selftests: Delete the unused sparsebit copy and count helpers
[SKIP, handled in a separate series]
[2/3] KVM: selftests: Delete the declaration of vcpu_set_cpuid_maxphyaddr()
https://github.com/kvm-x86/linux/commit/dd572ec94640
[3/3] KVM: selftests: Delete the unused guest_snprintf()
https://github.com/kvm-x86/linux/commit/3bac3b77c5e6
--
https://github.com/kvm-x86/linux/tree/next