diff options
author | dchagin <dchagin@FreeBSD.org> | 2016-01-09 18:02:08 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2016-01-09 18:02:08 +0000 |
commit | 8f96e27e049a1090b1c13e788bd487a52e6c6867 (patch) | |
tree | 2e0aa6d07a78b12efe1259eb81cf646377bddd30 | |
parent | 1e8561a8e3e93cb5e99ec1b6531703316e8b2dd9 (diff) | |
download | FreeBSD-src-8f96e27e049a1090b1c13e788bd487a52e6c6867.zip FreeBSD-src-8f96e27e049a1090b1c13e788bd487a52e6c6867.tar.gz |
MFC r283495:
Hide vfs.pfs.trace variable if it is not used.
-rw-r--r-- | sys/fs/pseudofs/pseudofs.c | 2 | ||||
-rw-r--r-- | sys/modules/pseudofs/Makefile | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/fs/pseudofs/pseudofs.c b/sys/fs/pseudofs/pseudofs.c index d7894af..1824d0b 100644 --- a/sys/fs/pseudofs/pseudofs.c +++ b/sys/fs/pseudofs/pseudofs.c @@ -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" diff --git a/sys/modules/pseudofs/Makefile b/sys/modules/pseudofs/Makefile index d5696c5..6ddb749 100644 --- a/sys/modules/pseudofs/Makefile +++ b/sys/modules/pseudofs/Makefile @@ -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> |