aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-09-14 13:37:28 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-14 13:37:28 -0400
commitd7e9660ad9d5e0845f52848bce31bcf5cdcdea6b (patch)
treec6c67d145771187b194d79d603742b31090a59d6 /drivers/char
parentb8cb48aae1b8c50b37dcb7710363aa69a7a0d9ca (diff)
parent13af7a6ea502fcdd4c0e3d7de6e332b102309491 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1623 commits) netxen: update copyright netxen: fix tx timeout recovery netxen: fix file firmware leak netxen: improve pci memory access netxen: change firmware write size tg3: Fix return ring size breakage netxen: build fix for INET=n cdc-phonet: autoconfigure Phonet address Phonet: back-end for autoconfigured addresses Phonet: fix netlink address dump error handling ipv6: Add IFA_F_DADFAILED flag net: Add DEVTYPE support for Ethernet based devices mv643xx_eth.c: remove unused txq_set_wrr() ucc_geth: Fix hangs after switching from full to half duplex ucc_geth: Rearrange some code to avoid forward declarations phy/marvell: Make non-aneg speed/duplex forcing work for 88E1111 PHYs drivers/net/phy: introduce missing kfree drivers/net/wan: introduce missing kfree net: force bridge module(s) to be GPL Subject: [PATCH] appletalk: Fix skb leak when ipddp interface is not loaded ... Fixed up trivial conflicts: - arch/x86/include/asm/socket.h converted to <asm-generic/socket.h> in the x86 tree. The generic header has the same new #define's, so that works out fine. - drivers/net/tun.c fix conflict between 89f56d1e9 ("tun: reuse struct sock fields") that switched over to using 'tun->socket.sk' instead of the redundantly available (and thus removed) 'tun->sk', and 2b980dbd ("lsm: Add hooks to the TUN driver") which added a new 'tun->sk' use. Noted in 'next' by Stephen Rothwell.
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/pcmcia/synclink_cs.c7
-rw-r--r--drivers/char/synclink.c7
-rw-r--r--drivers/char/synclink_gt.c7
-rw-r--r--drivers/char/synclinkmp.c7
4 files changed, 12 insertions, 16 deletions
diff --git a/drivers/char/pcmcia/synclink_cs.c b/drivers/char/pcmcia/synclink_cs.c
index 77b364889224..caf6e4d19469 100644
--- a/drivers/char/pcmcia/synclink_cs.c
+++ b/drivers/char/pcmcia/synclink_cs.c
@@ -4005,10 +4005,9 @@ static int hdlcdev_attach(struct net_device *dev, unsigned short encoding,
4005 * 4005 *
4006 * skb socket buffer containing HDLC frame 4006 * skb socket buffer containing HDLC frame
4007 * dev pointer to network device structure 4007 * dev pointer to network device structure
4008 *
4009 * returns 0 if success, otherwise error code
4010 */ 4008 */
4011static int hdlcdev_xmit(struct sk_buff *skb, struct net_device *dev) 4009static netdev_tx_t hdlcdev_xmit(struct sk_buff *skb,
4010 struct net_device *dev)
4012{ 4011{
4013 MGSLPC_INFO *info = dev_to_port(dev); 4012 MGSLPC_INFO *info = dev_to_port(dev);
4014 unsigned long flags; 4013 unsigned long flags;
@@ -4043,7 +4042,7 @@ static int hdlcdev_xmit(struct sk_buff *skb, struct net_device *dev)
4043 } 4042 }
4044 spin_unlock_irqrestore(&info->lock,flags); 4043 spin_unlock_irqrestore(&info->lock,flags);
4045 4044
4046 return 0; 4045 return NETDEV_TX_OK;
4047} 4046}
4048 4047
4049/** 4048/**
diff --git a/drivers/char/synclink.c b/drivers/char/synclink.c
index 813552f14884..4846b73ef28d 100644
--- a/drivers/char/synclink.c
+++ b/drivers/char/synclink.c
@@ -7697,10 +7697,9 @@ static int hdlcdev_attach(struct net_device *dev, unsigned short encoding,
7697 * 7697 *
7698 * skb socket buffer containing HDLC frame 7698 * skb socket buffer containing HDLC frame
7699 * dev pointer to network device structure 7699 * dev pointer to network device structure
7700 *
7701 * returns 0 if success, otherwise error code
7702 */ 7700 */
7703static int hdlcdev_xmit(struct sk_buff *skb, struct net_device *dev) 7701static netdev_tx_t hdlcdev_xmit(struct sk_buff *skb,
7702 struct net_device *dev)
7704{ 7703{
7705 struct mgsl_struct *info = dev_to_port(dev); 7704 struct mgsl_struct *info = dev_to_port(dev);
7706 unsigned long flags; 7705 unsigned long flags;
@@ -7731,7 +7730,7 @@ static int hdlcdev_xmit(struct sk_buff *skb, struct net_device *dev)
7731 usc_start_transmitter(info); 7730 usc_start_transmitter(info);
7732 spin_unlock_irqrestore(&info->irq_spinlock,flags); 7731 spin_unlock_irqrestore(&info->irq_spinlock,flags);
7733 7732
7734 return 0; 7733 return NETDEV_TX_OK;
7735} 7734}
7736 7735
7737/** 7736/**
diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c
index 91f20a92fddf..8678f0c8699d 100644
--- a/drivers/char/synclink_gt.c
+++ b/drivers/char/synclink_gt.c
@@ -1497,10 +1497,9 @@ static int hdlcdev_attach(struct net_device *dev, unsigned short encoding,
1497 * 1497 *
1498 * skb socket buffer containing HDLC frame 1498 * skb socket buffer containing HDLC frame
1499 * dev pointer to network device structure 1499 * dev pointer to network device structure
1500 *
1501 * returns 0 if success, otherwise error code
1502 */ 1500 */
1503static int hdlcdev_xmit(struct sk_buff *skb, struct net_device *dev) 1501static netdev_tx_t hdlcdev_xmit(struct sk_buff *skb,
1502 struct net_device *dev)
1504{ 1503{
1505 struct slgt_info *info = dev_to_port(dev); 1504 struct slgt_info *info = dev_to_port(dev);
1506 unsigned long flags; 1505 unsigned long flags;
@@ -1529,7 +1528,7 @@ static int hdlcdev_xmit(struct sk_buff *skb, struct net_device *dev)
1529 update_tx_timer(info); 1528 update_tx_timer(info);
1530 spin_unlock_irqrestore(&info->lock,flags); 1529 spin_unlock_irqrestore(&info->lock,flags);
1531 1530
1532 return 0; 1531 return NETDEV_TX_OK;
1533} 1532}
1534 1533
1535/** 1534/**
diff --git a/drivers/char/synclinkmp.c b/drivers/char/synclinkmp.c
index 8d4a2a8a0a70..2b18adc4ee19 100644
--- a/drivers/char/synclinkmp.c
+++ b/drivers/char/synclinkmp.c
@@ -1608,10 +1608,9 @@ static int hdlcdev_attach(struct net_device *dev, unsigned short encoding,
1608 * 1608 *
1609 * skb socket buffer containing HDLC frame 1609 * skb socket buffer containing HDLC frame
1610 * dev pointer to network device structure 1610 * dev pointer to network device structure
1611 *
1612 * returns 0 if success, otherwise error code
1613 */ 1611 */
1614static int hdlcdev_xmit(struct sk_buff *skb, struct net_device *dev) 1612static netdev_tx_t hdlcdev_xmit(struct sk_buff *skb,
1613 struct net_device *dev)
1615{ 1614{
1616 SLMP_INFO *info = dev_to_port(dev); 1615 SLMP_INFO *info = dev_to_port(dev);
1617 unsigned long flags; 1616 unsigned long flags;
@@ -1642,7 +1641,7 @@ static int hdlcdev_xmit(struct sk_buff *skb, struct net_device *dev)
1642 tx_start(info); 1641 tx_start(info);
1643 spin_unlock_irqrestore(&info->lock,flags); 1642 spin_unlock_irqrestore(&info->lock,flags);
1644 1643
1645 return 0; 1644 return NETDEV_TX_OK;
1646} 1645}
1647 1646
1648/** 1647/**