Paul Lawrence | 5bb92df | 2020-10-26 09:36:39 -0700 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | /* | ||||
3 | * Copyright 2020 Google LLC | ||||
4 | */ | ||||
5 | |||||
6 | #ifndef _INCFS_VERITY_H | ||||
7 | #define _INCFS_VERITY_H | ||||
8 | |||||
9 | #ifdef CONFIG_FS_VERITY | ||||
10 | |||||
11 | int incfs_ioctl_enable_verity(struct file *filp, const void __user *uarg); | ||||
12 | |||||
13 | #else /* !CONFIG_FS_VERITY */ | ||||
14 | |||||
15 | static inline int incfs_ioctl_enable_verity(struct file *filp, | ||||
16 | const void __user *uarg) | ||||
17 | { | ||||
18 | return -EOPNOTSUPP; | ||||
19 | } | ||||
20 | |||||
21 | #endif /* !CONFIG_FS_VERITY */ | ||||
22 | |||||
23 | #endif |