Re: [PATCH] s390: remove kvm_types.h from Kbuild

From: Heiko Carstens

Date: Thu Feb 05 2026 - 02:48:47 EST


On Tue, Feb 03, 2026 at 10:42:04AM -0800, Randy Dunlap wrote:
> kvm_types.h is mandatory in include/asm-generic/Kbuild so having it
> in another Kbuild file causes a warning. Remove it from the arch/
> Kbuild file to fix the warning.
>
> ../scripts/Makefile.asm-headers:39: redundant generic-y found in ../arch/s390/include/asm/Kbuild: kvm_types.h
>
> Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
> ---
> arch/s390/include/asm/Kbuild | 1 -
> 1 file changed, 1 deletion(-)
>
> --- linux-next-20260202.orig/arch/s390/include/asm/Kbuild
> +++ linux-next-20260202/arch/s390/include/asm/Kbuild
> @@ -5,6 +5,5 @@ generated-y += syscall_table.h
> generated-y += unistd_nr.h
>
> generic-y += asm-offsets.h
> -generic-y += kvm_types.h
> generic-y += mcs_spinlock.h
> generic-y += mmzone.h

This should go via perf/core from the tip tree, since Peter's not-yet upstream
commit 01122b89361e ("perf: Use EXPORT_SYMBOL_FOR_KVM() for the mediated
APIs") adds the mandatory-y statement to include/asm-generic/Kbuild.

Peter?