Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jan 2016 18:02:08 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r293595 - in stable/10/sys: fs/pseudofs modules/pseudofs
Message-ID:  <201601091802.u09I28E4071323@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dchagin
Date: Sat Jan  9 18:02:08 2016
New Revision: 293595
URL: https://svnweb.freebsd.org/changeset/base/293595

Log:
  MFC r283495:
  
  Hide vfs.pfs.trace variable if it is not used.

Modified:
  stable/10/sys/fs/pseudofs/pseudofs.c
  stable/10/sys/modules/pseudofs/Makefile
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/fs/pseudofs/pseudofs.c
==============================================================================
--- stable/10/sys/fs/pseudofs/pseudofs.c	Sat Jan  9 18:00:51 2016	(r293594)
+++ stable/10/sys/fs/pseudofs/pseudofs.c	Sat Jan  9 18:02:08 2016	(r293595)
@@ -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: stable/10/sys/modules/pseudofs/Makefile
==============================================================================
--- stable/10/sys/modules/pseudofs/Makefile	Sat Jan  9 18:00:51 2016	(r293594)
+++ stable/10/sys/modules/pseudofs/Makefile	Sat Jan  9 18:02:08 2016	(r293595)
@@ -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?201601091802.u09I28E4071323>