diff options
Diffstat (limited to 'include/net/garp.h')
| -rw-r--r-- | include/net/garp.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/net/garp.h b/include/net/garp.h index abf33bbd2e6a..59a07b171def 100644 --- a/include/net/garp.h +++ b/include/net/garp.h @@ -1,6 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _NET_GARP_H #define _NET_GARP_H +#include <linux/if_ether.h> +#include <linux/types.h> #include <net/stp.h> #define GARP_PROTOCOL_ID 0x1 @@ -36,7 +39,7 @@ struct garp_skb_cb { static inline struct garp_skb_cb *garp_cb(struct sk_buff *skb) { BUILD_BUG_ON(sizeof(struct garp_skb_cb) > - FIELD_SIZEOF(struct sk_buff, cb)); + sizeof_field(struct sk_buff, cb)); return (struct garp_skb_cb *)skb->cb; } |
