aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2011-11-07 15:43:11 +0000
committerEd Schouten <ed@FreeBSD.org>2011-11-07 15:43:11 +0000
commit6472ac3d8a86336899b6cfb789a4cd9897e3fab5 (patch)
treebf1175813c8ae55dc563480a7eadad2ffae50256 /sys/sparc64
parent37c1ff48a96739fe34d68a6602b70f2dca23920b (diff)
downloadsrc-6472ac3d8a86336899b6cfb789a4cd9897e3fab5.tar.gz
src-6472ac3d8a86336899b6cfb789a4cd9897e3fab5.zip
Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.
The SYSCTL_NODE macro defines a list that stores all child-elements of that node. If there's no SYSCTL_DECL macro anywhere else, there's no reason why it shouldn't be static.
Notes
Notes: svn path=/head/; revision=227309
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/identcpu.c2
-rw-r--r--sys/sparc64/sparc64/tick.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/sparc64/identcpu.c b/sys/sparc64/sparc64/identcpu.c
index 455aa6719bc8..592bb3456585 100644
--- a/sys/sparc64/sparc64/identcpu.c
+++ b/sys/sparc64/sparc64/identcpu.c
@@ -26,7 +26,7 @@ static char cpu_model[128];
SYSCTL_STRING(_hw, HW_MODEL, model, CTLFLAG_RD,
cpu_model, 0, "Machine model");
-SYSCTL_NODE(_hw, OID_AUTO, freq, CTLFLAG_RD, 0, "");
+static SYSCTL_NODE(_hw, OID_AUTO, freq, CTLFLAG_RD, 0, "");
static u_int cpu_count;
static u_int cpu_freq;
diff --git a/sys/sparc64/sparc64/tick.c b/sys/sparc64/sparc64/tick.c
index 0c0decc5a9d3..4950cca5640a 100644
--- a/sys/sparc64/sparc64/tick.c
+++ b/sys/sparc64/sparc64/tick.c
@@ -56,7 +56,7 @@ __FBSDID("$FreeBSD$");
#define TICK_QUALITY_MP 10
#define TICK_QUALITY_UP 1000
-SYSCTL_NODE(_machdep, OID_AUTO, tick, CTLFLAG_RD, 0, "tick statistics");
+static SYSCTL_NODE(_machdep, OID_AUTO, tick, CTLFLAG_RD, 0, "tick statistics");
static int adjust_edges = 0;
SYSCTL_INT(_machdep_tick, OID_AUTO, adjust_edges, CTLFLAG_RD, &adjust_edges,