2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/arch/s390/kvm
Lorenzo Stoakes 15ac613f12 KVM: s390: rename PROT_NONE to PROT_TYPE_DUMMY
The enum type prot_type declared in arch/s390/kvm/gaccess.c declares an
unfortunate identifier within it - PROT_NONE.

This clashes with the protection bit define from the uapi for mmap()
declared in include/uapi/asm-generic/mman-common.h, which is indeed what
those casually reading this code would assume this to refer to.

This means that any changes which subsequently alter headers in any way
which results in the uapi header being imported here will cause build
errors.

Resolve the issue by renaming PROT_NONE to PROT_TYPE_DUMMY.

Link: https://lkml.kernel.org/r/20250519145657.178365-1-lorenzo.stoakes@oracle.com
Fixes: b3cefd6bf1 ("KVM: s390: Pass initialized arg even if unused")
Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Suggested-by: Ignacio Moreno Gonzalez <Ignacio.MorenoGonzalez@kuka.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202505140943.IgHDa9s7-lkp@intel.com/
Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Acked-by: Ignacio Moreno Gonzalez <Ignacio.MorenoGonzalez@kuka.com>
Acked-by: Yang Shi <yang@os.amperecomputing.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Cc: <stable@vger.kernel.org>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: James Houghton <jthoughton@google.com>
Cc: Janosch Frank <frankja@linux.ibm.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Sven Schnelle <svens@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-06-05 22:02:22 -07:00
..
diag.c KVM: s390: Refactor and split some gmap helpers 2025-05-28 17:48:04 +02:00
gaccess.c KVM: s390: rename PROT_NONE to PROT_TYPE_DUMMY 2025-06-05 22:02:22 -07:00
gaccess.h KVM: s390: gaccess: Check if guest address is in memslot 2024-10-10 15:31:55 +02:00
gmap-vsie.c KVM: s390: Simplify and move pv code 2025-05-28 17:48:04 +02:00
guestdbg.c KVM: s390: Harden copying of userspace-array against overflow 2023-12-01 08:00:42 -08:00
intercept.c KVM: s390: Simplify and move pv code 2025-05-28 17:48:04 +02:00
interrupt.c ARM: 2025-04-08 13:47:55 -07:00
Kconfig treewide: remove CONFIG_HAVE_KVM 2024-02-08 08:45:36 -05:00
kvm-s390.c KVM: s390: Simplify and move pv code 2025-05-28 17:48:04 +02:00
kvm-s390.h KVM: s390: Simplify and move pv code 2025-05-28 17:48:04 +02:00
Makefile KVM: s390: Simplify and move pv code 2025-05-28 17:48:04 +02:00
pci.c iommu/s390: handle IOAT registration based on domain 2025-02-21 12:01:58 +01:00
pci.h KVM: s390: Mark __kvm_s390_init() and its descendants as __init 2022-12-29 15:41:22 -05:00
priv.c KVM: s390: Remove unneeded srcu lock 2025-05-28 17:48:04 +02:00
pv.c KVM: s390: Simplify and move pv code 2025-05-28 17:48:04 +02:00
sigp.c KVM: s390: Refactor kvm_is_error_gpa() into kvm_is_gpa_in_memslot() 2024-02-20 07:37:45 -08:00
trace-s390.h KVM: s390: Don't use %pK through tracepoints 2025-03-17 08:55:46 +00:00
trace.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vsie.c KVM: s390: Simplify and move pv code 2025-05-28 17:48:04 +02:00