1
0
This repository has been archived on 2025-07-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
orange_kernel/arch/s390/include/asm/pfault.h
2025-03-18 09:50:07 +08:00

27 lines
461 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright IBM Corp. 1999, 2023
*/
#ifndef _ASM_S390_PFAULT_H
#define _ASM_S390_PFAULT_H
#include <linux/errno.h>
int __pfault_init(void);
void __pfault_fini(void);
static inline int pfault_init(void)
{
if (IS_ENABLED(CONFIG_PFAULT))
return __pfault_init();
return -EOPNOTSUPP;
}
static inline void pfault_fini(void)
{
if (IS_ENABLED(CONFIG_PFAULT))
__pfault_fini();
}
#endif /* _ASM_S390_PFAULT_H */