ar71xx: ag71xx: fix build_skb arguments for 3.6
authorGabor Juhos <juhosg@openwrt.org>
Sat, 27 Oct 2012 17:11:06 +0000 (17:11 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sat, 27 Oct 2012 17:11:06 +0000 (17:11 +0000)
Also add a compatibility patch for 3.3

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33969

target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
target/linux/ar71xx/patches-3.3/a01-ag71xx-build_skb-compat.patch [new file with mode: 0644]

index fb99d272816c7eaa169a5b9ca21cdebec1b92f49..1564504486d083c9462959470d2553533b29e794 100644 (file)
@@ -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 (file)
index 0000000..a75f8ef
--- /dev/null
@@ -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;