Commit d19201a6 authored by Jeff Garzik's avatar Jeff Garzik

Merge pobox.com:/spare/repo/linux-2.6

into pobox.com:/spare/repo/net-drivers-2.6
parents 004a3668 79cfb1fa
...@@ -777,7 +777,7 @@ static int __devinit rtl8139_init_board (struct pci_dev *pdev, ...@@ -777,7 +777,7 @@ static int __devinit rtl8139_init_board (struct pci_dev *pdev,
u8 tmp8; u8 tmp8;
int rc; int rc;
unsigned int i; unsigned int i;
u32 pio_start, pio_end, pio_flags, pio_len; unsigned long pio_start, pio_end, pio_flags, pio_len;
unsigned long mmio_start, mmio_end, mmio_flags, mmio_len; unsigned long mmio_start, mmio_end, mmio_flags, mmio_len;
u32 version; u32 version;
......
...@@ -479,7 +479,7 @@ static int arcnet_header(struct sk_buff *skb, struct net_device *dev, ...@@ -479,7 +479,7 @@ static int arcnet_header(struct sk_buff *skb, struct net_device *dev,
*(uint16_t *) skb_push(skb, 2) = type; *(uint16_t *) skb_push(skb, 2) = type;
if (skb->nh.raw - skb->mac.raw != 2) if (skb->nh.raw - skb->mac.raw != 2)
BUGMSG(D_NORMAL, "arcnet_header: Yikes! diff (%d) is not 2!\n", BUGMSG(D_NORMAL, "arcnet_header: Yikes! diff (%d) is not 2!\n",
skb->nh.raw - skb->mac.raw); (int)(skb->nh.raw - skb->mac.raw));
return -2; /* return error -- can't transmit yet! */ return -2; /* return error -- can't transmit yet! */
} }
/* otherwise, we can just add the header as usual. */ /* otherwise, we can just add the header as usual. */
...@@ -514,7 +514,7 @@ static int arcnet_rebuild_header(struct sk_buff *skb) ...@@ -514,7 +514,7 @@ static int arcnet_rebuild_header(struct sk_buff *skb)
if (skb->nh.raw - skb->mac.raw != 2) { if (skb->nh.raw - skb->mac.raw != 2) {
BUGMSG(D_NORMAL, BUGMSG(D_NORMAL,
"rebuild_header: shouldn't be here! (hdrsize=%d)\n", "rebuild_header: shouldn't be here! (hdrsize=%d)\n",
skb->nh.raw - skb->mac.raw); (int)(skb->nh.raw - skb->mac.raw));
return 0; return 0;
} }
type = *(uint16_t *) skb_pull(skb, 2); type = *(uint16_t *) skb_pull(skb, 2);
......
...@@ -333,7 +333,7 @@ config WINBOND_FIR ...@@ -333,7 +333,7 @@ config WINBOND_FIR
config TOSHIBA_FIR config TOSHIBA_FIR
tristate "Toshiba Type-O IR Port" tristate "Toshiba Type-O IR Port"
depends on IRDA depends on IRDA && !64BIT
help help
Say Y here if you want to build support for the Toshiba Type-O IR Say Y here if you want to build support for the Toshiba Type-O IR
and Donau oboe chipsets. These chipsets are used by the Toshiba and Donau oboe chipsets. These chipsets are used by the Toshiba
......
...@@ -1622,6 +1622,10 @@ toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid) ...@@ -1622,6 +1622,10 @@ toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid)
goto freeregion; goto freeregion;
} }
#if (BITS_PER_LONG == 64)
#error broken on 64-bit: casts pointer to 32-bit, and then back to pointer.
#endif
/*We need to align the taskfile on a taskfile size boundary */ /*We need to align the taskfile on a taskfile size boundary */
{ {
unsigned long addr; unsigned long addr;
......
...@@ -1335,10 +1335,10 @@ static void rr_dump(struct net_device *dev) ...@@ -1335,10 +1335,10 @@ static void rr_dump(struct net_device *dev)
if (rrpriv->tx_skbuff[cons]){ if (rrpriv->tx_skbuff[cons]){
len = min_t(int, 0x80, rrpriv->tx_skbuff[cons]->len); len = min_t(int, 0x80, rrpriv->tx_skbuff[cons]->len);
printk("skbuff for cons %i is valid - dumping data (0x%x bytes - skbuff len 0x%x)\n", cons, len, rrpriv->tx_skbuff[cons]->len); printk("skbuff for cons %i is valid - dumping data (0x%x bytes - skbuff len 0x%x)\n", cons, len, rrpriv->tx_skbuff[cons]->len);
printk("mode 0x%x, size 0x%x,\n phys %08x, skbuff-addr %08lx, truesize 0x%x\n", printk("mode 0x%x, size 0x%x,\n phys %08Lx, skbuff-addr %08lx, truesize 0x%x\n",
rrpriv->tx_ring[cons].mode, rrpriv->tx_ring[cons].mode,
rrpriv->tx_ring[cons].size, rrpriv->tx_ring[cons].size,
rrpriv->tx_ring[cons].addr.addrlo, (unsigned long long) rrpriv->tx_ring[cons].addr.addrlo,
(unsigned long)rrpriv->tx_skbuff[cons]->data, (unsigned long)rrpriv->tx_skbuff[cons]->data,
(unsigned int)rrpriv->tx_skbuff[cons]->truesize); (unsigned int)rrpriv->tx_skbuff[cons]->truesize);
for (i = 0; i < len; i++){ for (i = 0; i < len; i++){
...@@ -1351,10 +1351,10 @@ static void rr_dump(struct net_device *dev) ...@@ -1351,10 +1351,10 @@ static void rr_dump(struct net_device *dev)
printk("dumping TX ring info:\n"); printk("dumping TX ring info:\n");
for (i = 0; i < TX_RING_ENTRIES; i++) for (i = 0; i < TX_RING_ENTRIES; i++)
printk("mode 0x%x, size 0x%x, phys-addr %08x\n", printk("mode 0x%x, size 0x%x, phys-addr %08Lx\n",
rrpriv->tx_ring[i].mode, rrpriv->tx_ring[i].mode,
rrpriv->tx_ring[i].size, rrpriv->tx_ring[i].size,
rrpriv->tx_ring[i].addr.addrlo); (unsigned long long) rrpriv->tx_ring[i].addr.addrlo);
} }
......
...@@ -54,7 +54,7 @@ config IBMOL ...@@ -54,7 +54,7 @@ config IBMOL
config IBMLS config IBMLS
tristate "IBM Lanstreamer chipset PCI adapter support" tristate "IBM Lanstreamer chipset PCI adapter support"
depends on TR && PCI depends on TR && PCI && !64BIT
help help
This is support for IBM Lanstreamer PCI Token Ring Cards. This is support for IBM Lanstreamer PCI Token Ring Cards.
......
...@@ -129,6 +129,11 @@ ...@@ -129,6 +129,11 @@
#include "lanstreamer.h" #include "lanstreamer.h"
#if (BITS_PER_LONG == 64)
#error broken on 64-bit: stores pointer to rx_ring->buffer in 32-bit int
#endif
/* I've got to put some intelligence into the version number so that Peter and I know /* I've got to put some intelligence into the version number so that Peter and I know
* which version of the code somebody has got. * which version of the code somebody has got.
* Version Number = a.b.c.d where a.b.c is the level of code and d is the latest author. * Version Number = a.b.c.d where a.b.c is the level of code and d is the latest author.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment