diff options
author | ed <ed@FreeBSD.org> | 2011-11-07 15:43:11 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-07 15:43:11 +0000 |
commit | 0c56cf839d3e773173db46a972d3792e8a36820d (patch) | |
tree | bf1175813c8ae55dc563480a7eadad2ffae50256 /sys/sparc64 | |
parent | 599a401646fe914e6aca992bf3d53f0d7b937253 (diff) | |
download | FreeBSD-src-0c56cf839d3e773173db46a972d3792e8a36820d.zip FreeBSD-src-0c56cf839d3e773173db46a972d3792e8a36820d.tar.gz |
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.
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/identcpu.c | 2 | ||||
-rw-r--r-- | sys/sparc64/sparc64/tick.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/sparc64/identcpu.c b/sys/sparc64/sparc64/identcpu.c index 455aa67..592bb34 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 0c0decc..4950cca 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, |