Skip to content

Commit

Permalink
convert hamradio drivers to netdev_txreturnt_t
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Hemminger <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Stephen Hemminger authored and davem330 committed Sep 1, 2009
1 parent 3c805a2 commit 36e4d64
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion drivers/net/hamradio/6pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ static void sp_encaps(struct sixpack *sp, unsigned char *icp, int len)

/* Encapsulate an IP datagram and kick it into a TTY queue. */

static int sp_xmit(struct sk_buff *skb, struct net_device *dev)
static netdev_tx_t sp_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct sixpack *sp = netdev_priv(dev);

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/hamradio/bpqether.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ static int bpq_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_ty
/*
* Send an AX.25 frame via an ethernet interface
*/
static int bpq_xmit(struct sk_buff *skb, struct net_device *dev)
static netdev_tx_t bpq_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct sk_buff *newskb;
unsigned char *ptr;
Expand Down
3 changes: 2 additions & 1 deletion drivers/net/hamradio/hdlcdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ void hdlcdrv_arbitrate(struct net_device *dev, struct hdlcdrv_state *s)
* ===================== network driver interface =========================
*/

static int hdlcdrv_send_packet(struct sk_buff *skb, struct net_device *dev)
static netdev_tx_t hdlcdrv_send_packet(struct sk_buff *skb,
struct net_device *dev)
{
struct hdlcdrv_state *sm = netdev_priv(dev);

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/hamradio/mkiss.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ static void ax_encaps(struct net_device *dev, unsigned char *icp, int len)
}

/* Encapsulate an AX.25 packet and kick it into a TTY queue. */
static int ax_xmit(struct sk_buff *skb, struct net_device *dev)
static netdev_tx_t ax_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct mkiss *ax = netdev_priv(dev);

Expand Down
5 changes: 3 additions & 2 deletions drivers/net/hamradio/scc.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ static void scc_net_setup(struct net_device *dev);
static int scc_net_open(struct net_device *dev);
static int scc_net_close(struct net_device *dev);
static void scc_net_rx(struct scc_channel *scc, struct sk_buff *skb);
static int scc_net_tx(struct sk_buff *skb, struct net_device *dev);
static netdev_tx_t scc_net_tx(struct sk_buff *skb,
struct net_device *dev);
static int scc_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);
static int scc_net_set_mac_address(struct net_device *dev, void *addr);
static struct net_device_stats * scc_net_get_stats(struct net_device *dev);
Expand Down Expand Up @@ -1634,7 +1635,7 @@ static void scc_net_rx(struct scc_channel *scc, struct sk_buff *skb)

/* ----> transmit frame <---- */

static int scc_net_tx(struct sk_buff *skb, struct net_device *dev)
static netdev_tx_t scc_net_tx(struct sk_buff *skb, struct net_device *dev)
{
struct scc_channel *scc = (struct scc_channel *) dev->ml_priv;
unsigned long flags;
Expand Down
3 changes: 2 additions & 1 deletion drivers/net/hamradio/yam.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,8 @@ static void ptt_off(struct net_device *dev)
outb(PTT_OFF, MCR(dev->base_addr));
}

static int yam_send_packet(struct sk_buff *skb, struct net_device *dev)
static netdev_tx_t yam_send_packet(struct sk_buff *skb,
struct net_device *dev)
{
struct yam_port *yp = netdev_priv(dev);

Expand Down
2 changes: 1 addition & 1 deletion net/netrom/nr_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ static int nr_close(struct net_device *dev)
return 0;
}

static int nr_xmit(struct sk_buff *skb, struct net_device *dev)
static netdev_tx_t nr_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct net_device_stats *stats = &dev->stats;
unsigned int len = skb->len;
Expand Down
2 changes: 1 addition & 1 deletion net/rose/rose_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static int rose_close(struct net_device *dev)
return 0;
}

static int rose_xmit(struct sk_buff *skb, struct net_device *dev)
static netdev_tx_t rose_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct net_device_stats *stats = &dev->stats;

Expand Down

0 comments on commit 36e4d64

Please sign in to comment.