mirror of
https://github.com/dynup/kpatch
synced 2025-04-11 03:31:20 +00:00
kpatch-syscall: Fix kpatch s390 build error when CONFIG_COMPAT is disabled
When CONFIG_COMPAT is disabled (No 31 bit emulation support), macro __S390_SYS_STUBx() is nop. (See arch/s390/include/asm/syscall_wrapper.h). Also, __SC_COMPAT_CAST definition is not available, which leads to build error. Hence, __KPATCH_S390_SYS_STUBx() inherited from __S390_SYS_STUBx() macro, should point also point to nop when CONFIG_COMPAT is disabled. Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
This commit is contained in:
parent
a9a7360a29
commit
55c118c942
@ -109,6 +109,7 @@
|
||||
/* arch/s390/include/asm/syscall_wrapper.h versions */
|
||||
#if defined(KPATCH_SYSCALL_WRAPPERS_V1)
|
||||
|
||||
#if defined(CONFIG_COMPAT)
|
||||
#define __KPATCH_S390_SYS_STUBx(x, name, ...) \
|
||||
long __s390_sys##name(struct pt_regs *regs); \
|
||||
ALLOW_ERROR_INJECTION(__s390_sys##name, ERRNO); \
|
||||
@ -119,6 +120,9 @@
|
||||
__MAP(x,__SC_TEST,__VA_ARGS__); \
|
||||
return ret; \
|
||||
}
|
||||
#else
|
||||
#define __KPATCH_S390_SYS_STUBx(x, name, ...)
|
||||
#endif /* CONFIG_COMPAT */
|
||||
|
||||
#define __KPATCH_SYSCALL_DEFINEx(x, name, ...) \
|
||||
__diag_push(); \
|
||||
@ -142,6 +146,7 @@
|
||||
|
||||
# else /* KPATCH_SYSCALL_WRAPPERS_V2 */
|
||||
|
||||
#if defined(CONFIG_COMPAT)
|
||||
#define __KPATCH_S390_SYS_STUBx(x, name, ...) \
|
||||
long __s390_sys##name(struct pt_regs *regs); \
|
||||
ALLOW_ERROR_INJECTION(__s390_sys##name, ERRNO); \
|
||||
@ -155,6 +160,9 @@
|
||||
__MAP(x, __SC_TEST, __VA_ARGS__); \
|
||||
return __kpatch_do_sys##name(__MAP(x, __SC_COMPAT_CAST, __VA_ARGS__)); \
|
||||
}
|
||||
#else
|
||||
#define __KPATCH_S390_SYS_STUBx(x, name, ...)
|
||||
#endif /* CONFIG_COMPAT */
|
||||
|
||||
#define __KPATCH_SYSCALL_DEFINEx(x, name, ...) \
|
||||
long __s390x_sys##name(struct pt_regs *regs); \
|
||||
|
Loading…
Reference in New Issue
Block a user