diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/inet_timewait_sock.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/ipv4/inet_timewait_sock.c b/net/ipv4/inet_timewait_sock.c index a60b99e0ebdc..d43e787031a4 100644 --- a/net/ipv4/inet_timewait_sock.c +++ b/net/ipv4/inet_timewait_sock.c | |||
@@ -194,16 +194,14 @@ out: | |||
194 | 194 | ||
195 | EXPORT_SYMBOL_GPL(inet_twdr_hangman); | 195 | EXPORT_SYMBOL_GPL(inet_twdr_hangman); |
196 | 196 | ||
197 | extern void twkill_slots_invalid(void); | ||
198 | |||
199 | void inet_twdr_twkill_work(struct work_struct *work) | 197 | void inet_twdr_twkill_work(struct work_struct *work) |
200 | { | 198 | { |
201 | struct inet_timewait_death_row *twdr = | 199 | struct inet_timewait_death_row *twdr = |
202 | container_of(work, struct inet_timewait_death_row, twkill_work); | 200 | container_of(work, struct inet_timewait_death_row, twkill_work); |
203 | int i; | 201 | int i; |
204 | 202 | ||
205 | if ((INET_TWDR_TWKILL_SLOTS - 1) > (sizeof(twdr->thread_slots) * 8)) | 203 | BUILD_BUG_ON((INET_TWDR_TWKILL_SLOTS - 1) > |
206 | twkill_slots_invalid(); | 204 | (sizeof(twdr->thread_slots) * 8)); |
207 | 205 | ||
208 | while (twdr->thread_slots) { | 206 | while (twdr->thread_slots) { |
209 | spin_lock_bh(&twdr->death_lock); | 207 | spin_lock_bh(&twdr->death_lock); |