aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/rxrpc/af_rxrpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c
index 05996d0dd828..5b0fd291babb 100644
--- a/net/rxrpc/af_rxrpc.c
+++ b/net/rxrpc/af_rxrpc.c
@@ -10,6 +10,7 @@
10 */ 10 */
11 11
12#include <linux/module.h> 12#include <linux/module.h>
13#include <linux/kernel.h>
13#include <linux/net.h> 14#include <linux/net.h>
14#include <linux/slab.h> 15#include <linux/slab.h>
15#include <linux/skbuff.h> 16#include <linux/skbuff.h>
@@ -792,10 +793,9 @@ static const struct net_proto_family rxrpc_family_ops = {
792 */ 793 */
793static int __init af_rxrpc_init(void) 794static int __init af_rxrpc_init(void)
794{ 795{
795 struct sk_buff *dummy_skb;
796 int ret = -1; 796 int ret = -1;
797 797
798 BUILD_BUG_ON(sizeof(struct rxrpc_skb_priv) > sizeof(dummy_skb->cb)); 798 BUILD_BUG_ON(sizeof(struct rxrpc_skb_priv) > FIELD_SIZEOF(struct sk_buff, cb));
799 799
800 rxrpc_epoch = htonl(get_seconds()); 800 rxrpc_epoch = htonl(get_seconds());
801 801