Commit bb695170d8dff3f22682b6c19df64dc093f58c0a
Committed by
Linus Torvalds
1 parent
f17d30a803
Exists in
master
and in
4 other branches
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>
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
kernel/srcu.c
... | ... | @@ -74,7 +74,7 @@ |
74 | 74 | * severe errors when invoked on an active srcu_struct. That said, it |
75 | 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 | 79 | return srcu_readers_active_idx(sp, 0) + srcu_readers_active_idx(sp, 1); |
80 | 80 | } |
... | ... | @@ -255,5 +255,4 @@ |
255 | 255 | EXPORT_SYMBOL_GPL(srcu_read_unlock); |
256 | 256 | EXPORT_SYMBOL_GPL(synchronize_srcu); |
257 | 257 | EXPORT_SYMBOL_GPL(srcu_batches_completed); |
258 | -EXPORT_SYMBOL_GPL(srcu_readers_active); |