linux-stable/arch/s390
Heiko Carstens a7eb28801b s390/mm: use __set_memory() variants where useful
Use the __set_memory_yy() variants instead of set_memory_yy() where
useful. This allows to make the code a bit more readable.

This also fixes the debug pagealloc case, where set_memory_4k() might be
called for an area larger than 8TB which would lead to an overflow of
the num_pages parameter of set_memory_4k().

However RELOC_HIDE() has to be used for the __set_memory_4k() case for
the time being, to avoid compiler warnings because of performing pointer
arithmetic on a NULL pointer, which has undefined behavior. This happens
because __va(0) always translates to NULL. However this will change, and
as soon as this happens the RELOC_HIDE() hack can be removed again.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2023-08-30 11:03:28 +02:00
..
appldata s390: include linux/io.h instead of asm/io.h 2023-07-03 11:19:40 +02:00
boot s390/mm: simplify kernel mapping setup 2023-08-30 11:03:27 +02:00
configs s390 updates for 6.6 merge window 2023-08-28 17:22:39 -07:00
crypto s390/paes: fix PKEY_TYPE_EP11_AES handling for secure keyblobs 2023-08-17 15:18:53 +02:00
hypfs s390 updates for 6.6 merge window 2023-08-28 17:22:39 -07:00
include s390/set_memory: add __set_memory() variant 2023-08-30 11:03:28 +02:00
kernel s390/amode31: change type of __samode31, __eamode31, etc 2023-08-30 11:03:27 +02:00
kvm s390 updates for 6.6 merge window 2023-08-28 17:22:39 -07:00
lib s390: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-09 15:20:50 +02:00
mm s390/mm: use __set_memory() variants where useful 2023-08-30 11:03:28 +02:00
net s390: consistently use .balign instead of .align 2023-06-28 13:57:09 +02:00
pci s390/pci: use builtin_misc_device macro to simplify the code 2023-08-23 14:37:42 +02:00
purgatory s390 updates for 6.5 merge window part 2 2023-07-06 13:18:30 -07:00
tools KVM: s390: Add facility 197 to the allow list 2022-07-13 15:25:25 +02:00
Kbuild s390/hypfs: factor out filesystem code 2023-07-24 12:12:22 +02:00
Kconfig s390/cert_store: select CRYPTO_LIB_SHA256 2023-08-01 08:01:39 +02:00
Kconfig.debug s390/Kconfig.debug: fix indentation 2022-06-01 12:03:15 +02:00
Makefile s390: use obj-y to descend into drivers/s390/ 2023-07-24 12:12:25 +02:00