projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3523b29
)
rxrpc: Use FIELD_SIZEOF() in af_rxrpc_init().
author
YOSHIFUJI Hideaki / 吉藤英明
<
[email protected]
>
Wed, 9 Jan 2013 07:20:01 +0000
(07:20 +0000)
committer
David S. Miller
<
[email protected]
>
Thu, 10 Jan 2013 07:38:24 +0000
(23:38 -0800)
Signed-off-by: YOSHIFUJI Hideaki <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/rxrpc/af_rxrpc.c
patch
|
blob
|
history
diff --git
a/net/rxrpc/af_rxrpc.c
b/net/rxrpc/af_rxrpc.c
index 05996d0dd828f57793441214831d88e0cf367b3e..5b0fd291babb9c1de343a0bfdd28b4054e392b4d 100644
(file)
--- a/
net/rxrpc/af_rxrpc.c
+++ b/
net/rxrpc/af_rxrpc.c
@@
-10,6
+10,7
@@
*/
#include <linux/module.h>
+#include <linux/kernel.h>
#include <linux/net.h>
#include <linux/slab.h>
#include <linux/skbuff.h>
@@
-792,10
+793,9
@@
static const struct net_proto_family rxrpc_family_ops = {
*/
static int __init af_rxrpc_init(void)
{
- struct sk_buff *dummy_skb;
int ret = -1;
- BUILD_BUG_ON(sizeof(struct rxrpc_skb_priv) >
sizeof(dummy_skb->
cb));
+ BUILD_BUG_ON(sizeof(struct rxrpc_skb_priv) >
FIELD_SIZEOF(struct sk_buff,
cb));
rxrpc_epoch = htonl(get_seconds());