Jelajahi Sumber

[TCP] tcp_lp: use BUILD_BUG_ON

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Alexey Dobriyan 19 tahun lalu
induk
melakukan
298969727e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      net/ipv4/tcp_lp.c

+ 1 - 1
net/ipv4/tcp_lp.c

@@ -327,7 +327,7 @@ static struct tcp_congestion_ops tcp_lp = {
 
 
 static int __init tcp_lp_register(void)
 static int __init tcp_lp_register(void)
 {
 {
-	BUG_ON(sizeof(struct lp) > ICSK_CA_PRIV_SIZE);
+	BUILD_BUG_ON(sizeof(struct lp) > ICSK_CA_PRIV_SIZE);
 	return tcp_register_congestion_control(&tcp_lp);
 	return tcp_register_congestion_control(&tcp_lp);
 }
 }