diff options
-rw-r--r-- | net/ipv4/tcp_cubic.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_highspeed.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_htcp.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_hybla.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_vegas.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_veno.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_westwood.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/net/ipv4/tcp_cubic.c b/net/ipv4/tcp_cubic.c index 2be27980ca78..a60ef38d75c6 100644 --- a/net/ipv4/tcp_cubic.c +++ b/net/ipv4/tcp_cubic.c | |||
@@ -358,7 +358,7 @@ static struct tcp_congestion_ops cubictcp = { | |||
358 | 358 | ||
359 | static int __init cubictcp_register(void) | 359 | static int __init cubictcp_register(void) |
360 | { | 360 | { |
361 | BUG_ON(sizeof(struct bictcp) > ICSK_CA_PRIV_SIZE); | 361 | BUILD_BUG_ON(sizeof(struct bictcp) > ICSK_CA_PRIV_SIZE); |
362 | 362 | ||
363 | /* Precompute a bunch of the scaling factors that are used per-packet | 363 | /* Precompute a bunch of the scaling factors that are used per-packet |
364 | * based on SRTT of 100ms | 364 | * based on SRTT of 100ms |
diff --git a/net/ipv4/tcp_highspeed.c b/net/ipv4/tcp_highspeed.c index fa3e1aad660c..c4fc811bf377 100644 --- a/net/ipv4/tcp_highspeed.c +++ b/net/ipv4/tcp_highspeed.c | |||
@@ -189,7 +189,7 @@ static struct tcp_congestion_ops tcp_highspeed = { | |||
189 | 189 | ||
190 | static int __init hstcp_register(void) | 190 | static int __init hstcp_register(void) |
191 | { | 191 | { |
192 | BUG_ON(sizeof(struct hstcp) > ICSK_CA_PRIV_SIZE); | 192 | BUILD_BUG_ON(sizeof(struct hstcp) > ICSK_CA_PRIV_SIZE); |
193 | return tcp_register_congestion_control(&tcp_highspeed); | 193 | return tcp_register_congestion_control(&tcp_highspeed); |
194 | } | 194 | } |
195 | 195 | ||
diff --git a/net/ipv4/tcp_htcp.c b/net/ipv4/tcp_htcp.c index 6edfe5e4510e..682e7d5b6f2f 100644 --- a/net/ipv4/tcp_htcp.c +++ b/net/ipv4/tcp_htcp.c | |||
@@ -286,7 +286,7 @@ static struct tcp_congestion_ops htcp = { | |||
286 | 286 | ||
287 | static int __init htcp_register(void) | 287 | static int __init htcp_register(void) |
288 | { | 288 | { |
289 | BUG_ON(sizeof(struct htcp) > ICSK_CA_PRIV_SIZE); | 289 | BUILD_BUG_ON(sizeof(struct htcp) > ICSK_CA_PRIV_SIZE); |
290 | BUILD_BUG_ON(BETA_MIN >= BETA_MAX); | 290 | BUILD_BUG_ON(BETA_MIN >= BETA_MAX); |
291 | return tcp_register_congestion_control(&htcp); | 291 | return tcp_register_congestion_control(&htcp); |
292 | } | 292 | } |
diff --git a/net/ipv4/tcp_hybla.c b/net/ipv4/tcp_hybla.c index 7406e0c5fb8e..59e691d26f64 100644 --- a/net/ipv4/tcp_hybla.c +++ b/net/ipv4/tcp_hybla.c | |||
@@ -170,7 +170,7 @@ static struct tcp_congestion_ops tcp_hybla = { | |||
170 | 170 | ||
171 | static int __init hybla_register(void) | 171 | static int __init hybla_register(void) |
172 | { | 172 | { |
173 | BUG_ON(sizeof(struct hybla) > ICSK_CA_PRIV_SIZE); | 173 | BUILD_BUG_ON(sizeof(struct hybla) > ICSK_CA_PRIV_SIZE); |
174 | return tcp_register_congestion_control(&tcp_hybla); | 174 | return tcp_register_congestion_control(&tcp_hybla); |
175 | } | 175 | } |
176 | 176 | ||
diff --git a/net/ipv4/tcp_vegas.c b/net/ipv4/tcp_vegas.c index 490360b5b4bf..a3b7aa015a2f 100644 --- a/net/ipv4/tcp_vegas.c +++ b/net/ipv4/tcp_vegas.c | |||
@@ -370,7 +370,7 @@ static struct tcp_congestion_ops tcp_vegas = { | |||
370 | 370 | ||
371 | static int __init tcp_vegas_register(void) | 371 | static int __init tcp_vegas_register(void) |
372 | { | 372 | { |
373 | BUG_ON(sizeof(struct vegas) > ICSK_CA_PRIV_SIZE); | 373 | BUILD_BUG_ON(sizeof(struct vegas) > ICSK_CA_PRIV_SIZE); |
374 | tcp_register_congestion_control(&tcp_vegas); | 374 | tcp_register_congestion_control(&tcp_vegas); |
375 | return 0; | 375 | return 0; |
376 | } | 376 | } |
diff --git a/net/ipv4/tcp_veno.c b/net/ipv4/tcp_veno.c index 5b2fe6d2aba9..ce57bf302f6c 100644 --- a/net/ipv4/tcp_veno.c +++ b/net/ipv4/tcp_veno.c | |||
@@ -212,7 +212,7 @@ static struct tcp_congestion_ops tcp_veno = { | |||
212 | 212 | ||
213 | static int __init tcp_veno_register(void) | 213 | static int __init tcp_veno_register(void) |
214 | { | 214 | { |
215 | BUG_ON(sizeof(struct veno) > ICSK_CA_PRIV_SIZE); | 215 | BUILD_BUG_ON(sizeof(struct veno) > ICSK_CA_PRIV_SIZE); |
216 | tcp_register_congestion_control(&tcp_veno); | 216 | tcp_register_congestion_control(&tcp_veno); |
217 | return 0; | 217 | return 0; |
218 | } | 218 | } |
diff --git a/net/ipv4/tcp_westwood.c b/net/ipv4/tcp_westwood.c index 5446312ffd2a..4f42a86c77f3 100644 --- a/net/ipv4/tcp_westwood.c +++ b/net/ipv4/tcp_westwood.c | |||
@@ -289,7 +289,7 @@ static struct tcp_congestion_ops tcp_westwood = { | |||
289 | 289 | ||
290 | static int __init tcp_westwood_register(void) | 290 | static int __init tcp_westwood_register(void) |
291 | { | 291 | { |
292 | BUG_ON(sizeof(struct westwood) > ICSK_CA_PRIV_SIZE); | 292 | BUILD_BUG_ON(sizeof(struct westwood) > ICSK_CA_PRIV_SIZE); |
293 | return tcp_register_congestion_control(&tcp_westwood); | 293 | return tcp_register_congestion_control(&tcp_westwood); |
294 | } | 294 | } |
295 | 295 | ||