Skip to contentSkip to conversation

s390: remove kvm_types.h from Kbuild

PATCH Applied Randy Dunlap 4 participants 4 messages Feb 3 – Feb 5 s390

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390: remove kvm_types.h from Kbuild

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

---
Cc: Heiko Carstens <[email protected]>
Cc: Vasily Gorbik <[email protected]>
Cc: Alexander Gordeev <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: Sven Schnelle <[email protected]>
Cc: [email protected]

 arch/s390/include/asm/Kbuild |    1 -
 1 file changed, 1 deletion(-)
arch/s390/include/asm/Kbuild +0 -1
@@ -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
maintainer
#1 lore raw
Quoted 14 lines · Randy Dunlap

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

---
 arch/s390/include/asm/Kbuild |    1 -
 1 file changed, 1 deletion(-)

arch/s390/include/asm/Kbuild generated-y += syscall_table.h · line 9

Quoted 6 lines
arch/s390/include/asm/Kbuild +0 -1
@@ -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?

#2 lore raw
Quoted 26 lines · Heiko Carstens
Quoted 14 lines · Randy Dunlap

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

---
 arch/s390/include/asm/Kbuild |    1 -
 1 file changed, 1 deletion(-)

arch/s390/include/asm/Kbuild generated-y += syscall_table.h · line 9

Quoted 6 lines
arch/s390/include/asm/Kbuild +0 -1
@@ -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.

Quoted 1 line

Peter?

Let me see if I can manage to apply a patch I don't have ;-)

merge bot Applied
#3 lore raw
In reply to Randy Dunlap
The following commit has been merged into the perf/core branch of tip:

The following commit has been merged into the perf/core branch of tip:

Commit-ID:     7db06e329af30dcb170a6782c1714217ad65033d
Gitweb:        https://git.kernel.org/tip/7db06e329af30dcb170a6782c1714217ad65033d
Author:        Randy Dunlap <[email protected]>
AuthorDate:    Tue, 03 Feb 2026 10:42:04 -08:00
Committer:     Peter Zijlstra <[email protected]>
CommitterDate: Thu, 05 Feb 2026 09:43:47 +01:00

s390: remove kvm_types.h from Kbuild

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

---
 arch/s390/include/asm/Kbuild | 1 -
 1 file changed, 1 deletion(-)
arch/s390/include/asm/Kbuild +0 -1
index 297bf71..80bad7d 100644
@@ -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