summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/netdevice.h3
-rw-r--r--include/net/neighbour.h4
2 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index cc07c3be2705..8ea8a8b70755 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -237,8 +237,7 @@ struct netdev_hw_addr_list {
237 netdev_hw_addr_list_for_each(ha, &(dev)->mc) 237 netdev_hw_addr_list_for_each(ha, &(dev)->mc)
238 238
239struct hh_cache { 239struct hh_cache {
240 u16 hh_len; 240 unsigned int hh_len;
241 u16 __pad;
242 seqlock_t hh_lock; 241 seqlock_t hh_lock;
243 242
244 /* cached hardware header; allow for machine alignment needs. */ 243 /* cached hardware header; allow for machine alignment needs. */
diff --git a/include/net/neighbour.h b/include/net/neighbour.h
index 9496179c7b4e..e4dd3a214034 100644
--- a/include/net/neighbour.h
+++ b/include/net/neighbour.h
@@ -450,7 +450,7 @@ static inline int neigh_hh_bridge(struct hh_cache *hh, struct sk_buff *skb)
450static inline int neigh_hh_output(const struct hh_cache *hh, struct sk_buff *skb) 450static inline int neigh_hh_output(const struct hh_cache *hh, struct sk_buff *skb)
451{ 451{
452 unsigned int seq; 452 unsigned int seq;
453 int hh_len; 453 unsigned int hh_len;
454 454
455 do { 455 do {
456 seq = read_seqbegin(&hh->hh_lock); 456 seq = read_seqbegin(&hh->hh_lock);
@@ -459,7 +459,7 @@ static inline int neigh_hh_output(const struct hh_cache *hh, struct sk_buff *skb
459 /* this is inlined by gcc */ 459 /* this is inlined by gcc */
460 memcpy(skb->data - HH_DATA_MOD, hh->hh_data, HH_DATA_MOD); 460 memcpy(skb->data - HH_DATA_MOD, hh->hh_data, HH_DATA_MOD);
461 } else { 461 } else {
462 int hh_alen = HH_DATA_ALIGN(hh_len); 462 unsigned int hh_alen = HH_DATA_ALIGN(hh_len);
463 463
464 memcpy(skb->data - hh_alen, hh->hh_data, hh_alen); 464 memcpy(skb->data - hh_alen, hh->hh_data, hh_alen);
465 } 465 }