mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 14:41:39 +00:00
97139d4a6f
Kernel source files need not include <linux/kconfig.h> explicitly because the top Makefile forces to include it with: -include $(srctree)/include/linux/kconfig.h This commit removes explicit includes except the following: * arch/s390/include/asm/facilities_src.h * tools/testing/radix-tree/linux/kernel.h These two are used for host programs. Link: http://lkml.kernel.org/r/1473656164-11929-1-git-send-email-yamada.masahiro@socionext.com Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
27 lines
435 B
C
27 lines
435 B
C
/*
|
|
* Procfs support for lockd
|
|
*
|
|
* Copyright (c) 2014 Jeff Layton <jlayton@primarydata.com>
|
|
*/
|
|
#ifndef _LOCKD_PROCFS_H
|
|
#define _LOCKD_PROCFS_H
|
|
|
|
#if IS_ENABLED(CONFIG_PROC_FS)
|
|
int lockd_create_procfs(void);
|
|
void lockd_remove_procfs(void);
|
|
#else
|
|
static inline int
|
|
lockd_create_procfs(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void
|
|
lockd_remove_procfs(void)
|
|
{
|
|
return;
|
|
}
|
|
#endif /* IS_ENABLED(CONFIG_PROC_FS) */
|
|
|
|
#endif /* _LOCKD_PROCFS_H */
|