diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-02-06 04:36:45 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-06 13:41:02 -0500 |
commit | bb695170d8dff3f22682b6c19df64dc093f58c0a (patch) | |
tree | a78249958fe4c0906f5cbcd3501cc409b4f88841 /kernel/srcu.c | |
parent | f17d30a803e8434c4ef381bb5cfa1956ff0201f0 (diff) |
make srcu_readers_active() static
Make the needlessly global srcu_readers_active() static.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Cc: "Paul E. McKenney" <paulmck@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/srcu.c')
-rw-r--r-- | kernel/srcu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/srcu.c b/kernel/srcu.c index 3507cabe963b..b0aeeaf22ce4 100644 --- a/kernel/srcu.c +++ b/kernel/srcu.c | |||
@@ -74,7 +74,7 @@ static int srcu_readers_active_idx(struct srcu_struct *sp, int idx) | |||
74 | * severe errors when invoked on an active srcu_struct. That said, it | 74 | * severe errors when invoked on an active srcu_struct. That said, it |
75 | * can be useful as an error check at cleanup time. | 75 | * can be useful as an error check at cleanup time. |
76 | */ | 76 | */ |
77 | int srcu_readers_active(struct srcu_struct *sp) | 77 | static int srcu_readers_active(struct srcu_struct *sp) |
78 | { | 78 | { |
79 | return srcu_readers_active_idx(sp, 0) + srcu_readers_active_idx(sp, 1); | 79 | return srcu_readers_active_idx(sp, 0) + srcu_readers_active_idx(sp, 1); |
80 | } | 80 | } |
@@ -255,4 +255,3 @@ EXPORT_SYMBOL_GPL(srcu_read_lock); | |||
255 | EXPORT_SYMBOL_GPL(srcu_read_unlock); | 255 | EXPORT_SYMBOL_GPL(srcu_read_unlock); |
256 | EXPORT_SYMBOL_GPL(synchronize_srcu); | 256 | EXPORT_SYMBOL_GPL(synchronize_srcu); |
257 | EXPORT_SYMBOL_GPL(srcu_batches_completed); | 257 | EXPORT_SYMBOL_GPL(srcu_batches_completed); |
258 | EXPORT_SYMBOL_GPL(srcu_readers_active); | ||