mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
rxrpc: Use FIELD_SIZEOF() in af_rxrpc_init().
Signed-off-by: YOSHIFUJI Hideaki <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
3523b29bd2
commit
ce6654cfc1
1 changed files with 2 additions and 2 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue