summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-10-27 17:11:06 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-10-27 17:11:06 +0000
commite2ec99889ed2ca5c164e2be2fb8100aa56b16137 (patch)
tree5d71e8cfb614444d6f78ae518fa12b0b637f2d89 /target
parent7640a7cc2434d1ef5689b465c7ff6729bc109577 (diff)
downloadmtk-20170518-e2ec99889ed2ca5c164e2be2fb8100aa56b16137.zip
mtk-20170518-e2ec99889ed2ca5c164e2be2fb8100aa56b16137.tar.gz
mtk-20170518-e2ec99889ed2ca5c164e2be2fb8100aa56b16137.tar.bz2
ar71xx: ag71xx: fix build_skb arguments for 3.6
Also add a compatibility patch for 3.3 Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 33969
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c2
-rw-r--r--target/linux/ar71xx/patches-3.3/a01-ag71xx-build_skb-compat.patch12
2 files changed, 13 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
index fb99d27..1564504 100644
--- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
+++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
@@ -891,7 +891,7 @@ static int ag71xx_rx_packets(struct ag71xx *ag, int limit)
dev->stats.rx_packets++;
dev->stats.rx_bytes += pktlen;
- skb = build_skb(ring->buf[i].rx_buf);
+ skb = build_skb(ring->buf[i].rx_buf, 0);
if (!skb) {
kfree(ring->buf[i].rx_buf);
goto next;
diff --git a/target/linux/ar71xx/patches-3.3/a01-ag71xx-build_skb-compat.patch b/target/linux/ar71xx/patches-3.3/a01-ag71xx-build_skb-compat.patch
new file mode 100644
index 0000000..a75f8ef
--- /dev/null
+++ b/target/linux/ar71xx/patches-3.3/a01-ag71xx-build_skb-compat.patch
@@ -0,0 +1,12 @@
+reverted:
+--- a/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
++++ b/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
+@@ -891,7 +891,7 @@ static int ag71xx_rx_packets(struct ag71
+ dev->stats.rx_packets++;
+ dev->stats.rx_bytes += pktlen;
+
+- skb = build_skb(ring->buf[i].rx_buf, 0);
++ skb = build_skb(ring->buf[i].rx_buf);
+ if (!skb) {
+ kfree(ring->buf[i].rx_buf);
+ goto next;