18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Procfs support for lockd 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (c) 2014 Jeff Layton <jlayton@primarydata.com> 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci#ifndef _LOCKD_PROCFS_H 88c2ecf20Sopenharmony_ci#define _LOCKD_PROCFS_H 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#if IS_ENABLED(CONFIG_PROC_FS) 118c2ecf20Sopenharmony_ciint lockd_create_procfs(void); 128c2ecf20Sopenharmony_civoid lockd_remove_procfs(void); 138c2ecf20Sopenharmony_ci#else 148c2ecf20Sopenharmony_cistatic inline int 158c2ecf20Sopenharmony_cilockd_create_procfs(void) 168c2ecf20Sopenharmony_ci{ 178c2ecf20Sopenharmony_ci return 0; 188c2ecf20Sopenharmony_ci} 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_cistatic inline void 218c2ecf20Sopenharmony_cilockd_remove_procfs(void) 228c2ecf20Sopenharmony_ci{ 238c2ecf20Sopenharmony_ci return; 248c2ecf20Sopenharmony_ci} 258c2ecf20Sopenharmony_ci#endif /* IS_ENABLED(CONFIG_PROC_FS) */ 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci#endif /* _LOCKD_PROCFS_H */ 28