Hide vfs.pfs.trace variable if it is not used.

This commit is contained in:
Dmitry Chagin 2015-05-24 18:11:22 +00:00
parent 4f65e9cff4
commit 63cc3320d9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283495
2 changed files with 8 additions and 0 deletions

View File

@ -52,9 +52,11 @@ static MALLOC_DEFINE(M_PFSNODES, "pfs_nodes", "pseudofs nodes");
SYSCTL_NODE(_vfs, OID_AUTO, pfs, CTLFLAG_RW, 0,
"pseudofs");
#ifdef PSEUDOFS_TRACE
int pfs_trace;
SYSCTL_INT(_vfs_pfs, OID_AUTO, trace, CTLFLAG_RW, &pfs_trace, 0,
"enable tracing of pseudofs vnode operations");
#endif
#if PFS_FSNAMELEN != MFSNAMELEN
#error "PFS_FSNAMELEN is not equal to MFSNAMELEN"

View File

@ -23,4 +23,10 @@ EXPORT_SYMS= pfs_mount \
pfs_enable \
pfs_destroy
.if !defined(KERNBUILDDIR)
.if defined(PSEUDOFS_TRACE)
CFLAGS+=-DPSEUDOFS_TRACE
.endif
.endif
.include <bsd.kmod.mk>