History

make srcu_readers_active() static

Make the needlessly global srcu_readers_active() static.

Adrian Bunk committed 18 years ago

Commit bb695171 parent f17d30a1 file · +1 −2Browse files

Showing the changes to kernel/srcu.c (1 of 1 file). Show all

Unified · Split

kernel/srcu.c+1−2
@@ -74,7 +74,7 @@ static int srcu_readers_active_idx(struct srcu_struct *sp, int idx) · 73 unmodified lines
74 * severe errors when invoked on an active srcu_struct. That said, it74 * 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 */
77int srcu_readers_active(struct srcu_struct *sp)77static 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); · 174 unmodified lines
255EXPORT_SYMBOL_GPL(srcu_read_unlock);255EXPORT_SYMBOL_GPL(srcu_read_unlock);
256EXPORT_SYMBOL_GPL(synchronize_srcu);256EXPORT_SYMBOL_GPL(synchronize_srcu);
257EXPORT_SYMBOL_GPL(srcu_batches_completed);257EXPORT_SYMBOL_GPL(srcu_batches_completed);
258EXPORT_SYMBOL_GPL(srcu_readers_active);