* [PATCH 2/3] lib: radix_tree.c make percpu variable static
@ 2008-11-10 5:36 Harvey Harrison
0 siblings, 0 replies; only message in thread
From: Harvey Harrison @ 2008-11-10 5:36 UTC (permalink / raw)
To: Andrew Morton; +Cc: LKML
radix_tree_preloads is unused outside of this file, make it static.
Noticed by sparse:
lib/radix-tree.c:84:1: warning: symbol 'per_cpu__radix_tree_preloads' was not declared. Should it be static?
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
lib/radix-tree.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/radix-tree.c b/lib/radix-tree.c
index be86b32..8d3fb0b 100644
--- a/lib/radix-tree.c
+++ b/lib/radix-tree.c
@@ -81,7 +81,7 @@ struct radix_tree_preload {
int nr;
struct radix_tree_node *nodes[RADIX_TREE_MAX_PATH];
};
-DEFINE_PER_CPU(struct radix_tree_preload, radix_tree_preloads) = { 0, };
+static DEFINE_PER_CPU(struct radix_tree_preload, radix_tree_preloads) = { 0, };
static inline gfp_t root_gfp_mask(struct radix_tree_root *root)
{
--
1.6.0.3.866.gc189b
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-10 5:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-10 5:36 [PATCH 2/3] lib: radix_tree.c make percpu variable static Harvey Harrison
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox