diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-11-07 05:12:16 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-12-02 00:12:02 -0500 |
commit | 1494a81410d8c53fa6c800be1e22b6b6f64180e6 (patch) | |
tree | 39a550ccc2596d38277dc822e0c527d09627dd41 /drivers/net/netxen | |
parent | acd70c2bfddb52aee27a4864c160bea7f0d117e1 (diff) |
[netdrvr] netxen: build fixes
Most contributed and Signed-off-by: Andrew Morton <akpm@osdl.org>
with some from me as well.
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/netxen')
-rw-r--r-- | drivers/net/netxen/netxen_nic.h | 1 | ||||
-rw-r--r-- | drivers/net/netxen/netxen_nic_hdr.h | 1 | ||||
-rw-r--r-- | drivers/net/netxen/netxen_nic_hw.c | 2 | ||||
-rw-r--r-- | drivers/net/netxen/netxen_nic_main.c | 9 |
4 files changed, 7 insertions, 6 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h index c7d76c14f7be..0458db45e700 100644 --- a/drivers/net/netxen/netxen_nic.h +++ b/drivers/net/netxen/netxen_nic.h | |||
@@ -30,7 +30,6 @@ | |||
30 | #ifndef _NETXEN_NIC_H_ | 30 | #ifndef _NETXEN_NIC_H_ |
31 | #define _NETXEN_NIC_H_ | 31 | #define _NETXEN_NIC_H_ |
32 | 32 | ||
33 | #include <linux/config.h> | ||
34 | #include <linux/module.h> | 33 | #include <linux/module.h> |
35 | #include <linux/kernel.h> | 34 | #include <linux/kernel.h> |
36 | #include <linux/types.h> | 35 | #include <linux/types.h> |
diff --git a/drivers/net/netxen/netxen_nic_hdr.h b/drivers/net/netxen/netxen_nic_hdr.h index 965cf625ba4b..83bf28b372a4 100644 --- a/drivers/net/netxen/netxen_nic_hdr.h +++ b/drivers/net/netxen/netxen_nic_hdr.h | |||
@@ -32,7 +32,6 @@ | |||
32 | 32 | ||
33 | #include <linux/module.h> | 33 | #include <linux/module.h> |
34 | #include <linux/kernel.h> | 34 | #include <linux/kernel.h> |
35 | #include <linux/config.h> | ||
36 | #include <linux/version.h> | 35 | #include <linux/version.h> |
37 | 36 | ||
38 | #include <asm/semaphore.h> | 37 | #include <asm/semaphore.h> |
diff --git a/drivers/net/netxen/netxen_nic_hw.c b/drivers/net/netxen/netxen_nic_hw.c index c7d97054d05c..9603c635b054 100644 --- a/drivers/net/netxen/netxen_nic_hw.c +++ b/drivers/net/netxen/netxen_nic_hw.c | |||
@@ -351,7 +351,7 @@ void netxen_tso_check(struct netxen_adapter *adapter, | |||
351 | ((skb->nh.iph)->ihl * sizeof(u32)) + | 351 | ((skb->nh.iph)->ihl * sizeof(u32)) + |
352 | ((skb->h.th)->doff * sizeof(u32)); | 352 | ((skb->h.th)->doff * sizeof(u32)); |
353 | desc->opcode = TX_TCP_LSO; | 353 | desc->opcode = TX_TCP_LSO; |
354 | } else if (skb->ip_summed == CHECKSUM_HW) { | 354 | } else if (skb->ip_summed == CHECKSUM_COMPLETE) { |
355 | if (skb->nh.iph->protocol == IPPROTO_TCP) { | 355 | if (skb->nh.iph->protocol == IPPROTO_TCP) { |
356 | desc->opcode = TX_TCP_PKT; | 356 | desc->opcode = TX_TCP_PKT; |
357 | } else if (skb->nh.iph->protocol == IPPROTO_UDP) { | 357 | } else if (skb->nh.iph->protocol == IPPROTO_UDP) { |
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index b54ea164e0ea..145bf47f0a8d 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c | |||
@@ -38,6 +38,9 @@ | |||
38 | #include "netxen_nic_phan_reg.h" | 38 | #include "netxen_nic_phan_reg.h" |
39 | #include "netxen_nic_ioctl.h" | 39 | #include "netxen_nic_ioctl.h" |
40 | 40 | ||
41 | #include <linux/dma-mapping.h> | ||
42 | #include <linux/vmalloc.h> | ||
43 | |||
41 | MODULE_DESCRIPTION("NetXen Multi port (1/10) Gigabit Network Driver"); | 44 | MODULE_DESCRIPTION("NetXen Multi port (1/10) Gigabit Network Driver"); |
42 | MODULE_LICENSE("GPL"); | 45 | MODULE_LICENSE("GPL"); |
43 | MODULE_VERSION(NETXEN_NIC_LINUX_VERSIONID); | 46 | MODULE_VERSION(NETXEN_NIC_LINUX_VERSIONID); |
@@ -66,7 +69,7 @@ static int netxen_nic_poll(struct net_device *dev, int *budget); | |||
66 | #ifdef CONFIG_NET_POLL_CONTROLLER | 69 | #ifdef CONFIG_NET_POLL_CONTROLLER |
67 | static void netxen_nic_poll_controller(struct net_device *netdev); | 70 | static void netxen_nic_poll_controller(struct net_device *netdev); |
68 | #endif | 71 | #endif |
69 | static irqreturn_t netxen_intr(int irq, void *data, struct pt_regs *regs); | 72 | static irqreturn_t netxen_intr(int irq, void *data); |
70 | 73 | ||
71 | /* PCI Device ID Table */ | 74 | /* PCI Device ID Table */ |
72 | static struct pci_device_id netxen_pci_tbl[] __devinitdata = { | 75 | static struct pci_device_id netxen_pci_tbl[] __devinitdata = { |
@@ -969,7 +972,7 @@ netxen_handle_int(struct netxen_adapter *adapter, struct net_device *netdev) | |||
969 | * @irq: interrupt number | 972 | * @irq: interrupt number |
970 | * data points to adapter stucture (which may be handling more than 1 port | 973 | * data points to adapter stucture (which may be handling more than 1 port |
971 | */ | 974 | */ |
972 | irqreturn_t netxen_intr(int irq, void *data, struct pt_regs * regs) | 975 | irqreturn_t netxen_intr(int irq, void *data) |
973 | { | 976 | { |
974 | struct netxen_adapter *adapter; | 977 | struct netxen_adapter *adapter; |
975 | struct netxen_port *port; | 978 | struct netxen_port *port; |
@@ -1049,7 +1052,7 @@ static void netxen_nic_poll_controller(struct net_device *netdev) | |||
1049 | struct netxen_port *port = netdev_priv(netdev); | 1052 | struct netxen_port *port = netdev_priv(netdev); |
1050 | struct netxen_adapter *adapter = port->adapter; | 1053 | struct netxen_adapter *adapter = port->adapter; |
1051 | disable_irq(adapter->irq); | 1054 | disable_irq(adapter->irq); |
1052 | netxen_intr(adapter->irq, adapter, NULL); | 1055 | netxen_intr(adapter->irq, adapter); |
1053 | enable_irq(adapter->irq); | 1056 | enable_irq(adapter->irq); |
1054 | } | 1057 | } |
1055 | #endif | 1058 | #endif |