瀏覽代碼

[TCP] tcp_bic: use BUILD_BUG_ON

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Alexey Dobriyan 18 年之前
父節點
當前提交
65e3d72654
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      net/ipv4/tcp_bic.c

+ 1 - 1
net/ipv4/tcp_bic.c

@@ -231,7 +231,7 @@ static struct tcp_congestion_ops bictcp = {
 
 
 static int __init bictcp_register(void)
 static int __init bictcp_register(void)
 {
 {
-	BUG_ON(sizeof(struct bictcp) > ICSK_CA_PRIV_SIZE);
+	BUILD_BUG_ON(sizeof(struct bictcp) > ICSK_CA_PRIV_SIZE);
 	return tcp_register_congestion_control(&bictcp);
 	return tcp_register_congestion_control(&bictcp);
 }
 }