]> www.infradead.org Git - users/dwmw2/linux.git/commit
s390/facility: Disable compile time optimization for decompressor code
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 4 Sep 2024 09:39:24 +0000 (11:39 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Sat, 7 Sep 2024 15:12:42 +0000 (17:12 +0200)
commit0147addc4fb72a39448b8873d8acdf3a0f29aa65
treed189959bf5d947188fcf1c091f8e751ba5be7ec1
parentdb545f5387472176cf1e7df76fe97a4f56b7158d
s390/facility: Disable compile time optimization for decompressor code

Disable compile time optimizations of test_facility() for the
decompressor. The decompressor should not contain any optimized code
depending on the architecture level set the kernel image is compiled
for to avoid unexpected operation exceptions.

Add a __DECOMPRESSOR check to test_facility() to enforce that
facilities are always checked during runtime for the decompressor.

Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/facility.h