blob: ba9a82f4ce283dbc6255ecc1af0a8f7370f69978 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Jeff Laytond68e3c42014-09-12 16:40:20 -04002/*
3 * Procfs support for lockd
4 *
5 * Copyright (c) 2014 Jeff Layton <jlayton@primarydata.com>
6 */
7#ifndef _LOCKD_PROCFS_H
8#define _LOCKD_PROCFS_H
9
Jeff Laytond68e3c42014-09-12 16:40:20 -040010#if IS_ENABLED(CONFIG_PROC_FS)
11int lockd_create_procfs(void);
12void lockd_remove_procfs(void);
13#else
14static inline int
15lockd_create_procfs(void)
16{
17 return 0;
18}
19
20static inline void
21lockd_remove_procfs(void)
22{
23 return;
24}
25#endif /* IS_ENABLED(CONFIG_PROC_FS) */
26
27#endif /* _LOCKD_PROCFS_H */