162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Procfs support for lockd 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (c) 2014 Jeff Layton <jlayton@primarydata.com> 662306a36Sopenharmony_ci */ 762306a36Sopenharmony_ci#ifndef _LOCKD_PROCFS_H 862306a36Sopenharmony_ci#define _LOCKD_PROCFS_H 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#if IS_ENABLED(CONFIG_PROC_FS) 1162306a36Sopenharmony_ciint lockd_create_procfs(void); 1262306a36Sopenharmony_civoid lockd_remove_procfs(void); 1362306a36Sopenharmony_ci#else 1462306a36Sopenharmony_cistatic inline int 1562306a36Sopenharmony_cilockd_create_procfs(void) 1662306a36Sopenharmony_ci{ 1762306a36Sopenharmony_ci return 0; 1862306a36Sopenharmony_ci} 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_cistatic inline void 2162306a36Sopenharmony_cilockd_remove_procfs(void) 2262306a36Sopenharmony_ci{ 2362306a36Sopenharmony_ci return; 2462306a36Sopenharmony_ci} 2562306a36Sopenharmony_ci#endif /* IS_ENABLED(CONFIG_PROC_FS) */ 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_ci#endif /* _LOCKD_PROCFS_H */ 28