mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 00:11:13 +00:00
b0a34e886d
Ran update_kernel.sh in a fresh clone without any existing toolchains. Manually rebased due to movement of rx-offload.c in 5.4.110: layerscape/patches-5.4/802-can-0002-can-rx-offload-fix-long-lines.patch layerscape/patches-5.4/802-can-0003-can-rx-offload-can_rx_offload_compare-fix-typo.patch layerscape/patches-5.4/802-can-0004-can-rx-offload-can_rx_offload_irq_offload_timestamp-.patch layerscape/patches-5.4/802-can-0005-can-rx-offload-can_rx_offload_reset-remove-no-op-fun.patch layerscape/patches-5.4/802-can-0006-can-rx-offload-Prepare-for-CAN-FD-support.patch layerscape/patches-5.4/802-can-0018-can-flexcan-use-struct-canfd_frame-for-CAN-classic-f.patch Build system: x86_64 Build-tested: ipq806x/R7800 Run-tested: ipq806x/R7800 No dmesg regressions, everything functional Signed-off-by: John Audia <graysky@archlinux.us>
53 lines
1.8 KiB
Diff
53 lines
1.8 KiB
Diff
From 88b21e30646ba263df647469c3af8c09e43a99d6 Mon Sep 17 00:00:00 2001
|
|
From: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
Date: Mon, 7 Oct 2019 13:36:58 +0200
|
|
Subject: [PATCH] can: rx-offload: can_rx_offload_reset(): remove no-op
|
|
function
|
|
|
|
This patch removes the function can_rx_offload_reset(), as it does
|
|
nothing. If we ever need this function, add it back again.
|
|
|
|
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
---
|
|
drivers/net/can/dev/rx-offload.c | 7 -------
|
|
include/linux/can/rx-offload.h | 1 -
|
|
2 files changed, 8 deletions(-)
|
|
|
|
--- a/drivers/net/can/dev/rx-offload.c
|
|
+++ b/drivers/net/can/dev/rx-offload.c
|
|
@@ -348,7 +348,6 @@ static int can_rx_offload_init_queue(str
|
|
offload->skb_queue_len_max *= 4;
|
|
skb_queue_head_init(&offload->skb_queue);
|
|
|
|
- can_rx_offload_reset(offload);
|
|
netif_napi_add(dev, &offload->napi, can_rx_offload_napi_poll, weight);
|
|
|
|
dev_dbg(dev->dev.parent, "%s: skb_queue_len_max=%d\n",
|
|
@@ -390,7 +389,6 @@ EXPORT_SYMBOL_GPL(can_rx_offload_add_fif
|
|
|
|
void can_rx_offload_enable(struct can_rx_offload *offload)
|
|
{
|
|
- can_rx_offload_reset(offload);
|
|
napi_enable(&offload->napi);
|
|
}
|
|
EXPORT_SYMBOL_GPL(can_rx_offload_enable);
|
|
@@ -401,8 +399,3 @@ void can_rx_offload_del(struct can_rx_of
|
|
skb_queue_purge(&offload->skb_queue);
|
|
}
|
|
EXPORT_SYMBOL_GPL(can_rx_offload_del);
|
|
-
|
|
-void can_rx_offload_reset(struct can_rx_offload *offload)
|
|
-{
|
|
-}
|
|
-EXPORT_SYMBOL_GPL(can_rx_offload_reset);
|
|
--- a/include/linux/can/rx-offload.h
|
|
+++ b/include/linux/can/rx-offload.h
|
|
@@ -44,7 +44,6 @@ unsigned int can_rx_offload_get_echo_skb
|
|
unsigned int idx, u32 timestamp);
|
|
int can_rx_offload_queue_tail(struct can_rx_offload *offload,
|
|
struct sk_buff *skb);
|
|
-void can_rx_offload_reset(struct can_rx_offload *offload);
|
|
void can_rx_offload_del(struct can_rx_offload *offload);
|
|
void can_rx_offload_enable(struct can_rx_offload *offload);
|
|
|