mac80211: move include statements for skb_get_hash_perturb() to prevent issues with...
authorFelix Fietkau <nbd@nbd.name>
Sun, 3 Jul 2016 16:13:11 +0000 (18:13 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sun, 3 Jul 2016 16:13:11 +0000 (18:13 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/kernel/mac80211/patches/005-backport_skb_get_hash_perturb.patch

index 8212910577b13eb23501d04f0b3c73eab5233141..29bccc1e995f910ff6d1aeaf0829e9bdfe4f72d7 100644 (file)
@@ -1,19 +1,13 @@
 --- a/backport-include/linux/skbuff.h
 +++ b/backport-include/linux/skbuff.h
-@@ -1,6 +1,8 @@
- #ifndef __BACKPORT_SKBUFF_H
- #define __BACKPORT_SKBUFF_H
- #include_next <linux/skbuff.h>
-+#include <net/flow_keys.h>
-+#include <linux/jhash.h>
- #include <linux/version.h>
- #include <generated/utsrelease.h>
-@@ -305,6 +307,16 @@ static inline void skb_free_frag(void *d
+@@ -305,6 +305,19 @@ static inline void skb_free_frag(void *d
  {
        put_page(virt_to_head_page(data));
  }
 +
++#include <net/flow_keys.h>
++#include <linux/jhash.h>
++
 +static inline u32 skb_get_hash_perturb(struct sk_buff *skb, u32 key)
 +{
 +      struct flow_keys keys;