1c28c07feSHeiko Carstens /* SPDX-License-Identifier: GPL-2.0 */ 2c28c07feSHeiko Carstens /* 3c28c07feSHeiko Carstens * Copyright IBM Corp. 1999, 2023 4c28c07feSHeiko Carstens */ 5c28c07feSHeiko Carstens #ifndef _ASM_S390_PFAULT_H 6c28c07feSHeiko Carstens #define _ASM_S390_PFAULT_H 7c28c07feSHeiko Carstens 8*4c89eb87SHeiko Carstens #include <linux/errno.h> 9*4c89eb87SHeiko Carstens 10c28c07feSHeiko Carstens int __pfault_init(void); 11c28c07feSHeiko Carstens void __pfault_fini(void); 12c28c07feSHeiko Carstens pfault_init(void)13c28c07feSHeiko Carstensstatic inline int pfault_init(void) 14c28c07feSHeiko Carstens { 15c28c07feSHeiko Carstens if (IS_ENABLED(CONFIG_PFAULT)) 16c28c07feSHeiko Carstens return __pfault_init(); 17*4c89eb87SHeiko Carstens return -EOPNOTSUPP; 18c28c07feSHeiko Carstens } 19c28c07feSHeiko Carstens pfault_fini(void)20c28c07feSHeiko Carstensstatic inline void pfault_fini(void) 21c28c07feSHeiko Carstens { 22c28c07feSHeiko Carstens if (IS_ENABLED(CONFIG_PFAULT)) 23c28c07feSHeiko Carstens __pfault_fini(); 24c28c07feSHeiko Carstens } 25c28c07feSHeiko Carstens 26c28c07feSHeiko Carstens #endif /* _ASM_S390_PFAULT_H */ 27