Skip to contentSkip to conversation

lib: radix_tree.c make percpu variable static

PATCH New Harvey Harrison 1 participant 1 message Nov 10, 2008 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 lib: radix_tree.c make percpu variable static

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?

---
 lib/radix-tree.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/radix-tree.c +1 -1
index be86b32..8d3fb0b 100644
@@ -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)
 {
Signature · 1 line
1.6.0.3.866.gc189b