diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2018-10-31 10:37:46 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-12-01 09:47:59 +0100 |
commit | 4b382304be8c9e018fe3e07369f398f20251679b (patch) | |
tree | 864e1c5acfa2891acf22ba24c0698b64d7b39130 /include | |
parent | ac861eab3aa12cb205dfbf4f6c79f779588103b0 (diff) | |
download | linux-stable-4b382304be8c9e018fe3e07369f398f20251679b.tar.gz linux-stable-4b382304be8c9e018fe3e07369f398f20251679b.tar.bz2 linux-stable-4b382304be8c9e018fe3e07369f398f20251679b.zip |
can: dev: can_get_echo_skb(): factor out non sending code to __can_get_echo_skb()
commit a4310fa2f24687888ce80fdb0e88583561a23700 upstream.
This patch factors out all non sending parts of can_get_echo_skb() into
a seperate function __can_get_echo_skb(), so that it can be re-used in
an upcoming patch.
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/can/dev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/can/dev.h b/include/linux/can/dev.h index 49093889362c..45c2668ea0d8 100644 --- a/include/linux/can/dev.h +++ b/include/linux/can/dev.h @@ -148,6 +148,7 @@ void can_bus_off(struct net_device *dev); void can_put_echo_skb(struct sk_buff *skb, struct net_device *dev, unsigned int idx); +struct sk_buff *__can_get_echo_skb(struct net_device *dev, unsigned int idx, u8 *len_ptr); unsigned int can_get_echo_skb(struct net_device *dev, unsigned int idx); void can_free_echo_skb(struct net_device *dev, unsigned int idx); |