diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2017-11-09 14:38:17 +0100 |
---|---|---|
committer | Christian Gromm <christian.gromm@microchip.com> | 2017-11-09 14:38:30 +0100 |
commit | 3386278db196969e6b4c77b7d06e6d7dd1ed044c (patch) | |
tree | 14517b130efaf19d82ec201eb0403b640617babe /recipes-kernel/most/files/0001-src-most-net-add-skb_put_data-function.patch | |
parent | 10c9f16b8853d0e4c2e75b4382122b6a6aa4a734 (diff) |
recipes-kernel: most: update recipes
This patch updates the most.bb and most.bbappend files to be in sync with
the recently pushed driver package to src/most. It adds and removes
backport patches as needed new driver source tree.
Change-Id: I091d925219eeb2986ce5b1545f41d3693500f7d3
Signed-off-by: Christian Gromm <christian.gromm@microchip.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, 33 insertions, 0 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 new file mode 100644 index 000000000..b9ef59515 --- /dev/null +++ b/recipes-kernel/most/files/0001-src-most-net-add-skb_put_data-function.patch @@ -0,0 +1,33 @@ +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 + |