[source] mac80211: move include statements for skb_get_hash_perturb() to prevent issues with newer kernels

LEDE Commits lede-commits at lists.infradead.org
Sun Jul 3 09:13:23 PDT 2016


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=f226d5879e9f38bbc0aabbaeca94622e2a4b0cee

commit f226d5879e9f38bbc0aabbaeca94622e2a4b0cee
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Sun Jul 3 18:13:11 2016 +0200

    mac80211: move include statements for skb_get_hash_perturb() to prevent issues with newer kernels
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 .../patches/005-backport_skb_get_hash_perturb.patch        | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/package/kernel/mac80211/patches/005-backport_skb_get_hash_perturb.patch b/package/kernel/mac80211/patches/005-backport_skb_get_hash_perturb.patch
index 8212910..29bccc1 100644
--- a/package/kernel/mac80211/patches/005-backport_skb_get_hash_perturb.patch
+++ b/package/kernel/mac80211/patches/005-backport_skb_get_hash_perturb.patch
@@ -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;



More information about the lede-commits mailing list