diff options
author | ronan <ronan.lemartret@gmail.com> | 2018-02-09 11:56:29 +0100 |
---|---|---|
committer | ronan <ronan.lemartret@gmail.com> | 2018-02-13 17:22:38 +0100 |
commit | 23492d46ea0fd81aa05528ad423bb5e1a10e111b (patch) | |
tree | dc039d5a21a817e615e8b5f0712444ee21e9ea6a /recipes-kernel/most/files/0001-src-most-net-add-skb_put_data-function.patch | |
parent | 27913bb1820be75d08355923f10d1d149893ecdb (diff) |
Fix most for kernel 4.14
Change-Id: I799a4e5bac5f381ba72ee889d34a9faec29205e7
Signed-off-by: ronan <ronan.lemartret@gmail.com>
Diffstat (limited to 'recipes-kernel/most/files/0001-src-most-net-add-skb_put_data-function.patch')
-rw-r--r-- | recipes-kernel/most/files/0001-src-most-net-add-skb_put_data-function.patch | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/recipes-kernel/most/files/0001-src-most-net-add-skb_put_data-function.patch b/recipes-kernel/most/files/0001-src-most-net-add-skb_put_data-function.patch deleted file mode 100644 index b9ef59515..000000000 --- a/recipes-kernel/most/files/0001-src-most-net-add-skb_put_data-function.patch +++ /dev/null @@ -1,33 +0,0 @@ -From d297f3ec0c45a6cfff6d83d8f0eb1c4a5ed0b95f Mon Sep 17 00:00:00 2001 -From: Christian Gromm <christian.gromm@microchip.com> -Date: Thu, 9 Nov 2017 11:31:27 +0100 -Subject: [PATCH 1/2] src: most: net: add skb_put_data function - -This patch adds the function skb_put_data. It is needed to backport -the sources to kernel versions prior to 4.13. - -Signed-off-by: Christian Gromm <christian.gromm@microchip.com> ---- - driver/aim-network/networking.c | 6 ++++++ - 1 file changed, 6 insertions(+) - -diff --git a/aim-network/networking.c b/aim-network/networking.c -index 936f013..9c3d1eb 100644 ---- a/aim-network/networking.c -+++ b/aim-network/networking.c -@@ -419,6 +419,12 @@ put_nd: - return 0; - } - -+static inline void skb_put_data(struct sk_buff *skb, const void *data, -+ unsigned int len) -+{ -+ memcpy(skb_put(skb, len), data, len); -+} -+ - static int aim_rx_data(struct mbo *mbo) - { - const u32 zero = 0; --- -2.7.4 - |