Date: Sun, 24 May 2015 18:11:22 +0000 (UTC) From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r283495 - in head/sys: fs/pseudofs modules/pseudofs Message-ID: <201505241811.t4OIBMIZ044027@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dchagin Date: Sun May 24 18:11:22 2015 New Revision: 283495 URL: https://svnweb.freebsd.org/changeset/base/283495 Log: Hide vfs.pfs.trace variable if it is not used. Modified: head/sys/fs/pseudofs/pseudofs.c head/sys/modules/pseudofs/Makefile Modified: head/sys/fs/pseudofs/pseudofs.c ============================================================================== --- head/sys/fs/pseudofs/pseudofs.c Sun May 24 18:10:07 2015 (r283494) +++ head/sys/fs/pseudofs/pseudofs.c Sun May 24 18:11:22 2015 (r283495) @@ -52,9 +52,11 @@ static MALLOC_DEFINE(M_PFSNODES, "pfs_no 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" Modified: head/sys/modules/pseudofs/Makefile ============================================================================== --- head/sys/modules/pseudofs/Makefile Sun May 24 18:10:07 2015 (r283494) +++ head/sys/modules/pseudofs/Makefile Sun May 24 18:11:22 2015 (r283495) @@ -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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505241811.t4OIBMIZ044027>