Make the needlessly global srcu_readers_active() static.
Showing the changes to kernel/srcu.c (1 of 1 file). Show all
Unified · Split
| @@ -74,7 +74,7 @@ static int srcu_readers_active_idx(struct srcu_struct *sp, int idx) · 73 unmodified lines | ||
| 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,4 +255,3 @@ EXPORT_SYMBOL_GPL(srcu_read_lock); · 174 unmodified lines | ||
| 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); | |