summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/pfault.h
blob: beabeebf2859f60e12f70c68c511aac773c3620f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: GPL-2.0 */
/*
 *    Copyright IBM Corp. 1999, 2023
 */
#ifndef _ASM_S390_PFAULT_H
#define _ASM_S390_PFAULT_H

int __pfault_init(void);
void __pfault_fini(void);

static inline int pfault_init(void)
{
	if (IS_ENABLED(CONFIG_PFAULT))
		return __pfault_init();
	return -1;
}

static inline void pfault_fini(void)
{
	if (IS_ENABLED(CONFIG_PFAULT))
		__pfault_fini();
}

#endif /* _ASM_S390_PFAULT_H */