diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2008-10-13 12:13:56 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-10-13 12:13:56 -0400 |
commit | e758936e02700ff88a0b08b722a3847b95283ef2 (patch) | |
tree | 50c919bef1b459a778b85159d5929de95b6c4a01 /drivers/net/wan | |
parent | 239cfbde1f5843c4a24199f117d5f67f637d72d5 (diff) | |
parent | 4480f15b3306f43bbb0310d461142b4e897ca45b (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
include/asm-x86/statfs.h
Diffstat (limited to 'drivers/net/wan')
-rw-r--r-- | drivers/net/wan/cycx_drv.c | 6 | ||||
-rw-r--r-- | drivers/net/wan/cycx_x25.c | 12 | ||||
-rw-r--r-- | drivers/net/wan/dscc4.c | 2 | ||||
-rw-r--r-- | drivers/net/wan/hdlc_x25.c | 8 | ||||
-rw-r--r-- | drivers/net/wan/pc300_tty.c | 2 | ||||
-rw-r--r-- | drivers/net/wan/sbni.c | 2 |
6 files changed, 17 insertions, 15 deletions
diff --git a/drivers/net/wan/cycx_drv.c b/drivers/net/wan/cycx_drv.c index d14e6678deed..a5ddc6c8963e 100644 --- a/drivers/net/wan/cycx_drv.c +++ b/drivers/net/wan/cycx_drv.c | |||
@@ -407,7 +407,7 @@ static int load_cyc2x(struct cycx_hw *hw, struct cycx_firmware *cfm, u32 len) | |||
407 | if (cfm->version != CFM_VERSION) { | 407 | if (cfm->version != CFM_VERSION) { |
408 | printk(KERN_ERR "%s:%s: firmware format %u rejected! " | 408 | printk(KERN_ERR "%s:%s: firmware format %u rejected! " |
409 | "Expecting %u.\n", | 409 | "Expecting %u.\n", |
410 | modname, __FUNCTION__, cfm->version, CFM_VERSION); | 410 | modname, __func__, cfm->version, CFM_VERSION); |
411 | return -EINVAL; | 411 | return -EINVAL; |
412 | } | 412 | } |
413 | 413 | ||
@@ -420,7 +420,7 @@ static int load_cyc2x(struct cycx_hw *hw, struct cycx_firmware *cfm, u32 len) | |||
420 | */ | 420 | */ |
421 | if (cksum != cfm->checksum) { | 421 | if (cksum != cfm->checksum) { |
422 | printk(KERN_ERR "%s:%s: firmware corrupted!\n", | 422 | printk(KERN_ERR "%s:%s: firmware corrupted!\n", |
423 | modname, __FUNCTION__); | 423 | modname, __func__); |
424 | printk(KERN_ERR " cdsize = 0x%x (expected 0x%lx)\n", | 424 | printk(KERN_ERR " cdsize = 0x%x (expected 0x%lx)\n", |
425 | len - (int)sizeof(struct cycx_firmware) - 1, | 425 | len - (int)sizeof(struct cycx_firmware) - 1, |
426 | cfm->info.codesize); | 426 | cfm->info.codesize); |
@@ -432,7 +432,7 @@ static int load_cyc2x(struct cycx_hw *hw, struct cycx_firmware *cfm, u32 len) | |||
432 | /* If everything is ok, set reset, data and code pointers */ | 432 | /* If everything is ok, set reset, data and code pointers */ |
433 | img_hdr = (struct cycx_fw_header *)&cfm->image; | 433 | img_hdr = (struct cycx_fw_header *)&cfm->image; |
434 | #ifdef FIRMWARE_DEBUG | 434 | #ifdef FIRMWARE_DEBUG |
435 | printk(KERN_INFO "%s:%s: image sizes\n", __FUNCTION__, modname); | 435 | printk(KERN_INFO "%s:%s: image sizes\n", __func__, modname); |
436 | printk(KERN_INFO " reset=%lu\n", img_hdr->reset_size); | 436 | printk(KERN_INFO " reset=%lu\n", img_hdr->reset_size); |
437 | printk(KERN_INFO " data=%lu\n", img_hdr->data_size); | 437 | printk(KERN_INFO " data=%lu\n", img_hdr->data_size); |
438 | printk(KERN_INFO " code=%lu\n", img_hdr->code_size); | 438 | printk(KERN_INFO " code=%lu\n", img_hdr->code_size); |
diff --git a/drivers/net/wan/cycx_x25.c b/drivers/net/wan/cycx_x25.c index d3b28b01b9f9..5a7303dc0965 100644 --- a/drivers/net/wan/cycx_x25.c +++ b/drivers/net/wan/cycx_x25.c | |||
@@ -874,7 +874,7 @@ static void cycx_x25_irq_connect(struct cycx_device *card, | |||
874 | nibble_to_byte(d + (sizeloc >> 1), rem, sizerem, sizeloc & 1); | 874 | nibble_to_byte(d + (sizeloc >> 1), rem, sizerem, sizeloc & 1); |
875 | 875 | ||
876 | dprintk(1, KERN_INFO "%s:lcn=%d, local=%s, remote=%s\n", | 876 | dprintk(1, KERN_INFO "%s:lcn=%d, local=%s, remote=%s\n", |
877 | __FUNCTION__, lcn, loc, rem); | 877 | __func__, lcn, loc, rem); |
878 | 878 | ||
879 | dev = cycx_x25_get_dev_by_dte_addr(wandev, rem); | 879 | dev = cycx_x25_get_dev_by_dte_addr(wandev, rem); |
880 | if (!dev) { | 880 | if (!dev) { |
@@ -902,7 +902,7 @@ static void cycx_x25_irq_connect_confirm(struct cycx_device *card, | |||
902 | cycx_peek(&card->hw, cmd->buf, &lcn, sizeof(lcn)); | 902 | cycx_peek(&card->hw, cmd->buf, &lcn, sizeof(lcn)); |
903 | cycx_peek(&card->hw, cmd->buf + 1, &key, sizeof(key)); | 903 | cycx_peek(&card->hw, cmd->buf + 1, &key, sizeof(key)); |
904 | dprintk(1, KERN_INFO "%s: %s:lcn=%d, key=%d\n", | 904 | dprintk(1, KERN_INFO "%s: %s:lcn=%d, key=%d\n", |
905 | card->devname, __FUNCTION__, lcn, key); | 905 | card->devname, __func__, lcn, key); |
906 | 906 | ||
907 | dev = cycx_x25_get_dev_by_lcn(wandev, -key); | 907 | dev = cycx_x25_get_dev_by_lcn(wandev, -key); |
908 | if (!dev) { | 908 | if (!dev) { |
@@ -929,7 +929,7 @@ static void cycx_x25_irq_disconnect_confirm(struct cycx_device *card, | |||
929 | 929 | ||
930 | cycx_peek(&card->hw, cmd->buf, &lcn, sizeof(lcn)); | 930 | cycx_peek(&card->hw, cmd->buf, &lcn, sizeof(lcn)); |
931 | dprintk(1, KERN_INFO "%s: %s:lcn=%d\n", | 931 | dprintk(1, KERN_INFO "%s: %s:lcn=%d\n", |
932 | card->devname, __FUNCTION__, lcn); | 932 | card->devname, __func__, lcn); |
933 | dev = cycx_x25_get_dev_by_lcn(wandev, lcn); | 933 | dev = cycx_x25_get_dev_by_lcn(wandev, lcn); |
934 | if (!dev) { | 934 | if (!dev) { |
935 | /* Invalid channel, discard packet */ | 935 | /* Invalid channel, discard packet */ |
@@ -950,7 +950,7 @@ static void cycx_x25_irq_disconnect(struct cycx_device *card, | |||
950 | u8 lcn; | 950 | u8 lcn; |
951 | 951 | ||
952 | cycx_peek(&card->hw, cmd->buf, &lcn, sizeof(lcn)); | 952 | cycx_peek(&card->hw, cmd->buf, &lcn, sizeof(lcn)); |
953 | dprintk(1, KERN_INFO "%s:lcn=%d\n", __FUNCTION__, lcn); | 953 | dprintk(1, KERN_INFO "%s:lcn=%d\n", __func__, lcn); |
954 | 954 | ||
955 | dev = cycx_x25_get_dev_by_lcn(wandev, lcn); | 955 | dev = cycx_x25_get_dev_by_lcn(wandev, lcn); |
956 | if (dev) { | 956 | if (dev) { |
@@ -1381,7 +1381,7 @@ static void cycx_x25_chan_timer(unsigned long d) | |||
1381 | cycx_x25_chan_disconnect(dev); | 1381 | cycx_x25_chan_disconnect(dev); |
1382 | else | 1382 | else |
1383 | printk(KERN_ERR "%s: %s for svc (%s) not connected!\n", | 1383 | printk(KERN_ERR "%s: %s for svc (%s) not connected!\n", |
1384 | chan->card->devname, __FUNCTION__, dev->name); | 1384 | chan->card->devname, __func__, dev->name); |
1385 | } | 1385 | } |
1386 | 1386 | ||
1387 | /* Set logical channel state. */ | 1387 | /* Set logical channel state. */ |
@@ -1485,7 +1485,7 @@ static void cycx_x25_chan_send_event(struct net_device *dev, u8 event) | |||
1485 | unsigned char *ptr; | 1485 | unsigned char *ptr; |
1486 | 1486 | ||
1487 | if ((skb = dev_alloc_skb(1)) == NULL) { | 1487 | if ((skb = dev_alloc_skb(1)) == NULL) { |
1488 | printk(KERN_ERR "%s: out of memory\n", __FUNCTION__); | 1488 | printk(KERN_ERR "%s: out of memory\n", __func__); |
1489 | return; | 1489 | return; |
1490 | } | 1490 | } |
1491 | 1491 | ||
diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c index f5d55ad02267..5f1ccb2b08b1 100644 --- a/drivers/net/wan/dscc4.c +++ b/drivers/net/wan/dscc4.c | |||
@@ -647,7 +647,7 @@ static inline void dscc4_rx_skb(struct dscc4_dev_priv *dpriv, | |||
647 | 647 | ||
648 | skb = dpriv->rx_skbuff[dpriv->rx_current++%RX_RING_SIZE]; | 648 | skb = dpriv->rx_skbuff[dpriv->rx_current++%RX_RING_SIZE]; |
649 | if (!skb) { | 649 | if (!skb) { |
650 | printk(KERN_DEBUG "%s: skb=0 (%s)\n", dev->name, __FUNCTION__); | 650 | printk(KERN_DEBUG "%s: skb=0 (%s)\n", dev->name, __func__); |
651 | goto refill; | 651 | goto refill; |
652 | } | 652 | } |
653 | pkt_len = TO_SIZE(le32_to_cpu(rx_fd->state2)); | 653 | pkt_len = TO_SIZE(le32_to_cpu(rx_fd->state2)); |
diff --git a/drivers/net/wan/hdlc_x25.c b/drivers/net/wan/hdlc_x25.c index 8b7e5d2e2ac9..cbcbf6f0414c 100644 --- a/drivers/net/wan/hdlc_x25.c +++ b/drivers/net/wan/hdlc_x25.c | |||
@@ -163,15 +163,17 @@ static void x25_close(struct net_device *dev) | |||
163 | 163 | ||
164 | static int x25_rx(struct sk_buff *skb) | 164 | static int x25_rx(struct sk_buff *skb) |
165 | { | 165 | { |
166 | struct net_device *dev = skb->dev; | ||
167 | |||
166 | if ((skb = skb_share_check(skb, GFP_ATOMIC)) == NULL) { | 168 | if ((skb = skb_share_check(skb, GFP_ATOMIC)) == NULL) { |
167 | skb->dev->stats.rx_dropped++; | 169 | dev->stats.rx_dropped++; |
168 | return NET_RX_DROP; | 170 | return NET_RX_DROP; |
169 | } | 171 | } |
170 | 172 | ||
171 | if (lapb_data_received(skb->dev, skb) == LAPB_OK) | 173 | if (lapb_data_received(dev, skb) == LAPB_OK) |
172 | return NET_RX_SUCCESS; | 174 | return NET_RX_SUCCESS; |
173 | 175 | ||
174 | skb->dev->stats.rx_errors++; | 176 | dev->stats.rx_errors++; |
175 | dev_kfree_skb_any(skb); | 177 | dev_kfree_skb_any(skb); |
176 | return NET_RX_DROP; | 178 | return NET_RX_DROP; |
177 | } | 179 | } |
diff --git a/drivers/net/wan/pc300_tty.c b/drivers/net/wan/pc300_tty.c index 4518d0aa2480..4917a94943bd 100644 --- a/drivers/net/wan/pc300_tty.c +++ b/drivers/net/wan/pc300_tty.c | |||
@@ -548,7 +548,7 @@ static int pc300_tiocmset(struct tty_struct *tty, struct file *file, | |||
548 | { | 548 | { |
549 | st_cpc_tty_area *cpc_tty; | 549 | st_cpc_tty_area *cpc_tty; |
550 | 550 | ||
551 | CPC_TTY_DBG("%s: set:%x clear:%x\n", __FUNCTION__, set, clear); | 551 | CPC_TTY_DBG("%s: set:%x clear:%x\n", __func__, set, clear); |
552 | 552 | ||
553 | if (!tty || !tty->driver_data ) { | 553 | if (!tty || !tty->driver_data ) { |
554 | CPC_TTY_DBG("hdlcX-tty: no TTY to chars in buffer\n"); | 554 | CPC_TTY_DBG("hdlcX-tty: no TTY to chars in buffer\n"); |
diff --git a/drivers/net/wan/sbni.c b/drivers/net/wan/sbni.c index 6596cd0742b9..f972fef87c98 100644 --- a/drivers/net/wan/sbni.c +++ b/drivers/net/wan/sbni.c | |||
@@ -856,7 +856,7 @@ prepare_to_send( struct sk_buff *skb, struct net_device *dev ) | |||
856 | len = SBNI_MIN_LEN; | 856 | len = SBNI_MIN_LEN; |
857 | 857 | ||
858 | nl->tx_buf_p = skb; | 858 | nl->tx_buf_p = skb; |
859 | nl->tx_frameno = (len + nl->maxframe - 1) / nl->maxframe; | 859 | nl->tx_frameno = DIV_ROUND_UP(len, nl->maxframe); |
860 | nl->framelen = len < nl->maxframe ? len : nl->maxframe; | 860 | nl->framelen = len < nl->maxframe ? len : nl->maxframe; |
861 | 861 | ||
862 | outb( inb( dev->base_addr + CSR0 ) | TR_REQ, dev->base_addr + CSR0 ); | 862 | outb( inb( dev->base_addr + CSR0 ) | TR_REQ, dev->base_addr + CSR0 ); |