Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
s390x: fix building with latest Linux kernel
Building on the latest Linux kernel (6.5-rc1) fails with: In file included from compel/include/uapi/compel/asm/infect-types.h:7, from compel/arch/s390/src/lib/infect.c:12: compel/arch/s390/src/lib/infect.c: In function 'rewind_psw': compel/arch/s390/src/lib/infect.c:157:29: error: 'UL' undeclared (first use in this function) 157 | mask = (psw->mask & PSW_MASK_EA) ? -1UL : (psw->mask & PSW_MASK_BA) ? (1UL << 31) - 1 : (1UL << 24) - 1; | ^~~~~~~~~~~ compel/arch/s390/src/lib/infect.c:157:29: note: each undeclared identifier is reported only once for each function it appears in compel/arch/s390/src/lib/infect.c: In function 'get_ri_cb': compel/arch/s390/src/lib/infect.c:272:25: error: 'UL' undeclared (first use in this function) 272 | if (psw->mask & PSW_MASK_RI) | ^~~~~~~~~~~ compel/arch/s390/src/lib/infect.c: In function 's390_disable_ri_bit': compel/arch/s390/src/lib/infect.c:289:23: error: 'UL' undeclared (first use in this function) 289 | psw->mask &= ~PSW_MASK_RI; | ^~~~~~~~~~~ compel/arch/s390/src/lib/infect.c: In function 'arch_can_dump_task': compel/arch/s390/src/lib/infect.c:523:25: error: 'UL' undeclared (first use in this function) 523 | if (psw->mask & PSW_MASK_RI) { | This is caused by: torvalds/linux@b8af599 This is fixed with this patch. Signed-off-by: Adrian Reber <[email protected]>
- Loading branch information