diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/3c505.c | 2 | ||||
-rw-r--r-- | drivers/net/8139too.c | 6 | ||||
-rw-r--r-- | drivers/net/Kconfig | 38 | ||||
-rwxr-xr-x | drivers/net/amd8111e.c | 2 | ||||
-rw-r--r-- | drivers/net/ne.c | 4 | ||||
-rw-r--r-- | drivers/net/plip.c | 29 | ||||
-rw-r--r-- | drivers/net/via-velocity.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/airo.c | 2 |
8 files changed, 42 insertions, 45 deletions
diff --git a/drivers/net/3c505.c b/drivers/net/3c505.c index ad17f17e8e7a..111601ca4ca3 100644 --- a/drivers/net/3c505.c +++ b/drivers/net/3c505.c | |||
@@ -272,7 +272,7 @@ static inline void set_hsf(struct net_device *dev, int hsf) | |||
272 | 272 | ||
273 | static int start_receive(struct net_device *, pcb_struct *); | 273 | static int start_receive(struct net_device *, pcb_struct *); |
274 | 274 | ||
275 | inline static void adapter_reset(struct net_device *dev) | 275 | static inline void adapter_reset(struct net_device *dev) |
276 | { | 276 | { |
277 | unsigned long timeout; | 277 | unsigned long timeout; |
278 | elp_device *adapter = dev->priv; | 278 | elp_device *adapter = dev->priv; |
diff --git a/drivers/net/8139too.c b/drivers/net/8139too.c index 5a4a08a7c951..4c2cf7bbd252 100644 --- a/drivers/net/8139too.c +++ b/drivers/net/8139too.c | |||
@@ -126,14 +126,14 @@ | |||
126 | #define USE_IO_OPS 1 | 126 | #define USE_IO_OPS 1 |
127 | #endif | 127 | #endif |
128 | 128 | ||
129 | /* define to 1 to enable copious debugging info */ | 129 | /* define to 1, 2 or 3 to enable copious debugging info */ |
130 | #undef RTL8139_DEBUG | 130 | #define RTL8139_DEBUG 0 |
131 | 131 | ||
132 | /* define to 1 to disable lightweight runtime debugging checks */ | 132 | /* define to 1 to disable lightweight runtime debugging checks */ |
133 | #undef RTL8139_NDEBUG | 133 | #undef RTL8139_NDEBUG |
134 | 134 | ||
135 | 135 | ||
136 | #ifdef RTL8139_DEBUG | 136 | #if RTL8139_DEBUG |
137 | /* note: prints function name for you */ | 137 | /* note: prints function name for you */ |
138 | # define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt, __FUNCTION__ , ## args) | 138 | # define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt, __FUNCTION__ , ## args) |
139 | #else | 139 | #else |
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 534b598866b3..8a835eb58808 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig | |||
@@ -23,9 +23,12 @@ config NETDEVICES | |||
23 | 23 | ||
24 | If unsure, say Y. | 24 | If unsure, say Y. |
25 | 25 | ||
26 | # All the following symbols are dependent on NETDEVICES - do not repeat | ||
27 | # that for each of the symbols. | ||
28 | if NETDEVICES | ||
29 | |||
26 | config DUMMY | 30 | config DUMMY |
27 | tristate "Dummy net driver support" | 31 | tristate "Dummy net driver support" |
28 | depends on NETDEVICES | ||
29 | ---help--- | 32 | ---help--- |
30 | This is essentially a bit-bucket device (i.e. traffic you send to | 33 | This is essentially a bit-bucket device (i.e. traffic you send to |
31 | this device is consigned into oblivion) with a configurable IP | 34 | this device is consigned into oblivion) with a configurable IP |
@@ -45,7 +48,6 @@ config DUMMY | |||
45 | 48 | ||
46 | config BONDING | 49 | config BONDING |
47 | tristate "Bonding driver support" | 50 | tristate "Bonding driver support" |
48 | depends on NETDEVICES | ||
49 | depends on INET | 51 | depends on INET |
50 | ---help--- | 52 | ---help--- |
51 | Say 'Y' or 'M' if you wish to be able to 'bond' multiple Ethernet | 53 | Say 'Y' or 'M' if you wish to be able to 'bond' multiple Ethernet |
@@ -63,7 +65,6 @@ config BONDING | |||
63 | 65 | ||
64 | config EQUALIZER | 66 | config EQUALIZER |
65 | tristate "EQL (serial line load balancing) support" | 67 | tristate "EQL (serial line load balancing) support" |
66 | depends on NETDEVICES | ||
67 | ---help--- | 68 | ---help--- |
68 | If you have two serial connections to some other computer (this | 69 | If you have two serial connections to some other computer (this |
69 | usually requires two modems and two telephone lines) and you use | 70 | usually requires two modems and two telephone lines) and you use |
@@ -83,7 +84,6 @@ config EQUALIZER | |||
83 | 84 | ||
84 | config TUN | 85 | config TUN |
85 | tristate "Universal TUN/TAP device driver support" | 86 | tristate "Universal TUN/TAP device driver support" |
86 | depends on NETDEVICES | ||
87 | select CRC32 | 87 | select CRC32 |
88 | ---help--- | 88 | ---help--- |
89 | TUN/TAP provides packet reception and transmission for user space | 89 | TUN/TAP provides packet reception and transmission for user space |
@@ -107,7 +107,7 @@ config TUN | |||
107 | 107 | ||
108 | config NET_SB1000 | 108 | config NET_SB1000 |
109 | tristate "General Instruments Surfboard 1000" | 109 | tristate "General Instruments Surfboard 1000" |
110 | depends on NETDEVICES && PNP | 110 | depends on PNP |
111 | ---help--- | 111 | ---help--- |
112 | This is a driver for the General Instrument (also known as | 112 | This is a driver for the General Instrument (also known as |
113 | NextLevel) SURFboard 1000 internal | 113 | NextLevel) SURFboard 1000 internal |
@@ -129,16 +129,14 @@ config NET_SB1000 | |||
129 | 129 | ||
130 | If you don't have this card, of course say N. | 130 | If you don't have this card, of course say N. |
131 | 131 | ||
132 | if NETDEVICES | ||
133 | source "drivers/net/arcnet/Kconfig" | 132 | source "drivers/net/arcnet/Kconfig" |
134 | endif | ||
135 | 133 | ||
136 | # | 134 | # |
137 | # Ethernet | 135 | # Ethernet |
138 | # | 136 | # |
139 | 137 | ||
140 | menu "Ethernet (10 or 100Mbit)" | 138 | menu "Ethernet (10 or 100Mbit)" |
141 | depends on NETDEVICES && !UML | 139 | depends on !UML |
142 | 140 | ||
143 | config NET_ETHERNET | 141 | config NET_ETHERNET |
144 | bool "Ethernet (10 or 100Mbit)" | 142 | bool "Ethernet (10 or 100Mbit)" |
@@ -1137,7 +1135,7 @@ config IBMLANA | |||
1137 | 1135 | ||
1138 | config IBMVETH | 1136 | config IBMVETH |
1139 | tristate "IBM LAN Virtual Ethernet support" | 1137 | tristate "IBM LAN Virtual Ethernet support" |
1140 | depends on NETDEVICES && NET_ETHERNET && PPC_PSERIES | 1138 | depends on NET_ETHERNET && PPC_PSERIES |
1141 | ---help--- | 1139 | ---help--- |
1142 | This driver supports virtual ethernet adapters on newer IBM iSeries | 1140 | This driver supports virtual ethernet adapters on newer IBM iSeries |
1143 | and pSeries systems. | 1141 | and pSeries systems. |
@@ -1760,7 +1758,7 @@ endmenu | |||
1760 | # | 1758 | # |
1761 | 1759 | ||
1762 | menu "Ethernet (1000 Mbit)" | 1760 | menu "Ethernet (1000 Mbit)" |
1763 | depends on NETDEVICES && !UML | 1761 | depends on !UML |
1764 | 1762 | ||
1765 | config ACENIC | 1763 | config ACENIC |
1766 | tristate "Alteon AceNIC/3Com 3C985/NetGear GA620 Gigabit support" | 1764 | tristate "Alteon AceNIC/3Com 3C985/NetGear GA620 Gigabit support" |
@@ -2091,7 +2089,7 @@ endmenu | |||
2091 | # | 2089 | # |
2092 | 2090 | ||
2093 | menu "Ethernet (10000 Mbit)" | 2091 | menu "Ethernet (10000 Mbit)" |
2094 | depends on NETDEVICES && !UML | 2092 | depends on !UML |
2095 | 2093 | ||
2096 | config IXGB | 2094 | config IXGB |
2097 | tristate "Intel(R) PRO/10GbE support" | 2095 | tristate "Intel(R) PRO/10GbE support" |
@@ -2186,11 +2184,11 @@ source "drivers/s390/net/Kconfig" | |||
2186 | 2184 | ||
2187 | config ISERIES_VETH | 2185 | config ISERIES_VETH |
2188 | tristate "iSeries Virtual Ethernet driver support" | 2186 | tristate "iSeries Virtual Ethernet driver support" |
2189 | depends on NETDEVICES && PPC_ISERIES | 2187 | depends on PPC_ISERIES |
2190 | 2188 | ||
2191 | config FDDI | 2189 | config FDDI |
2192 | bool "FDDI driver support" | 2190 | bool "FDDI driver support" |
2193 | depends on NETDEVICES && (PCI || EISA) | 2191 | depends on (PCI || EISA) |
2194 | help | 2192 | help |
2195 | Fiber Distributed Data Interface is a high speed local area network | 2193 | Fiber Distributed Data Interface is a high speed local area network |
2196 | design; essentially a replacement for high speed Ethernet. FDDI can | 2194 | design; essentially a replacement for high speed Ethernet. FDDI can |
@@ -2239,7 +2237,7 @@ config SKFP | |||
2239 | 2237 | ||
2240 | config HIPPI | 2238 | config HIPPI |
2241 | bool "HIPPI driver support (EXPERIMENTAL)" | 2239 | bool "HIPPI driver support (EXPERIMENTAL)" |
2242 | depends on NETDEVICES && EXPERIMENTAL && INET && PCI | 2240 | depends on EXPERIMENTAL && INET && PCI |
2243 | help | 2241 | help |
2244 | HIgh Performance Parallel Interface (HIPPI) is a 800Mbit/sec and | 2242 | HIgh Performance Parallel Interface (HIPPI) is a 800Mbit/sec and |
2245 | 1600Mbit/sec dual-simplex switched or point-to-point network. HIPPI | 2243 | 1600Mbit/sec dual-simplex switched or point-to-point network. HIPPI |
@@ -2271,7 +2269,7 @@ config ROADRUNNER_LARGE_RINGS | |||
2271 | 2269 | ||
2272 | config PLIP | 2270 | config PLIP |
2273 | tristate "PLIP (parallel port) support" | 2271 | tristate "PLIP (parallel port) support" |
2274 | depends on NETDEVICES && PARPORT | 2272 | depends on PARPORT |
2275 | ---help--- | 2273 | ---help--- |
2276 | PLIP (Parallel Line Internet Protocol) is used to create a | 2274 | PLIP (Parallel Line Internet Protocol) is used to create a |
2277 | reasonably fast mini network consisting of two (or, rarely, more) | 2275 | reasonably fast mini network consisting of two (or, rarely, more) |
@@ -2307,7 +2305,6 @@ config PLIP | |||
2307 | 2305 | ||
2308 | config PPP | 2306 | config PPP |
2309 | tristate "PPP (point-to-point protocol) support" | 2307 | tristate "PPP (point-to-point protocol) support" |
2310 | depends on NETDEVICES | ||
2311 | ---help--- | 2308 | ---help--- |
2312 | PPP (Point to Point Protocol) is a newer and better SLIP. It serves | 2309 | PPP (Point to Point Protocol) is a newer and better SLIP. It serves |
2313 | the same purpose: sending Internet traffic over telephone (and other | 2310 | the same purpose: sending Internet traffic over telephone (and other |
@@ -2443,7 +2440,6 @@ config PPPOATM | |||
2443 | 2440 | ||
2444 | config SLIP | 2441 | config SLIP |
2445 | tristate "SLIP (serial line) support" | 2442 | tristate "SLIP (serial line) support" |
2446 | depends on NETDEVICES | ||
2447 | ---help--- | 2443 | ---help--- |
2448 | Say Y if you intend to use SLIP or CSLIP (compressed SLIP) to | 2444 | Say Y if you intend to use SLIP or CSLIP (compressed SLIP) to |
2449 | connect to your Internet service provider or to connect to some | 2445 | connect to your Internet service provider or to connect to some |
@@ -2510,7 +2506,7 @@ config SLIP_MODE_SLIP6 | |||
2510 | 2506 | ||
2511 | config NET_FC | 2507 | config NET_FC |
2512 | bool "Fibre Channel driver support" | 2508 | bool "Fibre Channel driver support" |
2513 | depends on NETDEVICES && SCSI && PCI | 2509 | depends on SCSI && PCI |
2514 | help | 2510 | help |
2515 | Fibre Channel is a high speed serial protocol mainly used to connect | 2511 | Fibre Channel is a high speed serial protocol mainly used to connect |
2516 | large storage devices to the computer; it is compatible with and | 2512 | large storage devices to the computer; it is compatible with and |
@@ -2523,7 +2519,7 @@ config NET_FC | |||
2523 | 2519 | ||
2524 | config SHAPER | 2520 | config SHAPER |
2525 | tristate "Traffic Shaper (EXPERIMENTAL)" | 2521 | tristate "Traffic Shaper (EXPERIMENTAL)" |
2526 | depends on NETDEVICES && EXPERIMENTAL | 2522 | depends on EXPERIMENTAL |
2527 | ---help--- | 2523 | ---help--- |
2528 | The traffic shaper is a virtual network device that allows you to | 2524 | The traffic shaper is a virtual network device that allows you to |
2529 | limit the rate of outgoing data flow over some other network device. | 2525 | limit the rate of outgoing data flow over some other network device. |
@@ -2544,11 +2540,13 @@ config SHAPER | |||
2544 | 2540 | ||
2545 | config NETCONSOLE | 2541 | config NETCONSOLE |
2546 | tristate "Network console logging support (EXPERIMENTAL)" | 2542 | tristate "Network console logging support (EXPERIMENTAL)" |
2547 | depends on NETDEVICES && INET && EXPERIMENTAL | 2543 | depends on EXPERIMENTAL |
2548 | ---help--- | 2544 | ---help--- |
2549 | If you want to log kernel messages over the network, enable this. | 2545 | If you want to log kernel messages over the network, enable this. |
2550 | See <file:Documentation/networking/netconsole.txt> for details. | 2546 | See <file:Documentation/networking/netconsole.txt> for details. |
2551 | 2547 | ||
2548 | endif #NETDEVICES | ||
2549 | |||
2552 | config NETPOLL | 2550 | config NETPOLL |
2553 | def_bool NETCONSOLE | 2551 | def_bool NETCONSOLE |
2554 | 2552 | ||
diff --git a/drivers/net/amd8111e.c b/drivers/net/amd8111e.c index 8618012df06a..d9ba8be72af8 100755 --- a/drivers/net/amd8111e.c +++ b/drivers/net/amd8111e.c | |||
@@ -1290,7 +1290,7 @@ static irqreturn_t amd8111e_interrupt(int irq, void *dev_id, struct pt_regs *reg | |||
1290 | writel(intr0, mmio + INT0); | 1290 | writel(intr0, mmio + INT0); |
1291 | 1291 | ||
1292 | /* Check if Receive Interrupt has occurred. */ | 1292 | /* Check if Receive Interrupt has occurred. */ |
1293 | #if CONFIG_AMD8111E_NAPI | 1293 | #ifdef CONFIG_AMD8111E_NAPI |
1294 | if(intr0 & RINT0){ | 1294 | if(intr0 & RINT0){ |
1295 | if(netif_rx_schedule_prep(dev)){ | 1295 | if(netif_rx_schedule_prep(dev)){ |
1296 | /* Disable receive interupts */ | 1296 | /* Disable receive interupts */ |
diff --git a/drivers/net/ne.c b/drivers/net/ne.c index 6c57096aa2e1..d209a1556b2e 100644 --- a/drivers/net/ne.c +++ b/drivers/net/ne.c | |||
@@ -129,9 +129,9 @@ bad_clone_list[] __initdata = { | |||
129 | #define NESM_START_PG 0x40 /* First page of TX buffer */ | 129 | #define NESM_START_PG 0x40 /* First page of TX buffer */ |
130 | #define NESM_STOP_PG 0x80 /* Last page +1 of RX ring */ | 130 | #define NESM_STOP_PG 0x80 /* Last page +1 of RX ring */ |
131 | 131 | ||
132 | #ifdef CONFIG_PLAT_MAPPI | 132 | #if defined(CONFIG_PLAT_MAPPI) |
133 | # define DCR_VAL 0x4b | 133 | # define DCR_VAL 0x4b |
134 | #elif CONFIG_PLAT_OAKS32R | 134 | #elif defined(CONFIG_PLAT_OAKS32R) |
135 | # define DCR_VAL 0x48 | 135 | # define DCR_VAL 0x48 |
136 | #else | 136 | #else |
137 | # define DCR_VAL 0x49 | 137 | # define DCR_VAL 0x49 |
diff --git a/drivers/net/plip.c b/drivers/net/plip.c index 21537ee3a6a7..1bd22cd40c75 100644 --- a/drivers/net/plip.c +++ b/drivers/net/plip.c | |||
@@ -160,7 +160,7 @@ static struct net_device_stats *plip_get_stats(struct net_device *dev); | |||
160 | static int plip_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); | 160 | static int plip_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); |
161 | static int plip_preempt(void *handle); | 161 | static int plip_preempt(void *handle); |
162 | static void plip_wakeup(void *handle); | 162 | static void plip_wakeup(void *handle); |
163 | 163 | ||
164 | enum plip_connection_state { | 164 | enum plip_connection_state { |
165 | PLIP_CN_NONE=0, | 165 | PLIP_CN_NONE=0, |
166 | PLIP_CN_RECEIVE, | 166 | PLIP_CN_RECEIVE, |
@@ -231,8 +231,8 @@ struct net_local { | |||
231 | atomic_t kill_timer; | 231 | atomic_t kill_timer; |
232 | struct semaphore killed_timer_sem; | 232 | struct semaphore killed_timer_sem; |
233 | }; | 233 | }; |
234 | 234 | ||
235 | inline static void enable_parport_interrupts (struct net_device *dev) | 235 | static inline void enable_parport_interrupts (struct net_device *dev) |
236 | { | 236 | { |
237 | if (dev->irq != -1) | 237 | if (dev->irq != -1) |
238 | { | 238 | { |
@@ -242,7 +242,7 @@ inline static void enable_parport_interrupts (struct net_device *dev) | |||
242 | } | 242 | } |
243 | } | 243 | } |
244 | 244 | ||
245 | inline static void disable_parport_interrupts (struct net_device *dev) | 245 | static inline void disable_parport_interrupts (struct net_device *dev) |
246 | { | 246 | { |
247 | if (dev->irq != -1) | 247 | if (dev->irq != -1) |
248 | { | 248 | { |
@@ -252,7 +252,7 @@ inline static void disable_parport_interrupts (struct net_device *dev) | |||
252 | } | 252 | } |
253 | } | 253 | } |
254 | 254 | ||
255 | inline static void write_data (struct net_device *dev, unsigned char data) | 255 | static inline void write_data (struct net_device *dev, unsigned char data) |
256 | { | 256 | { |
257 | struct parport *port = | 257 | struct parport *port = |
258 | ((struct net_local *)dev->priv)->pardev->port; | 258 | ((struct net_local *)dev->priv)->pardev->port; |
@@ -260,14 +260,14 @@ inline static void write_data (struct net_device *dev, unsigned char data) | |||
260 | port->ops->write_data (port, data); | 260 | port->ops->write_data (port, data); |
261 | } | 261 | } |
262 | 262 | ||
263 | inline static unsigned char read_status (struct net_device *dev) | 263 | static inline unsigned char read_status (struct net_device *dev) |
264 | { | 264 | { |
265 | struct parport *port = | 265 | struct parport *port = |
266 | ((struct net_local *)dev->priv)->pardev->port; | 266 | ((struct net_local *)dev->priv)->pardev->port; |
267 | 267 | ||
268 | return port->ops->read_status (port); | 268 | return port->ops->read_status (port); |
269 | } | 269 | } |
270 | 270 | ||
271 | /* Entry point of PLIP driver. | 271 | /* Entry point of PLIP driver. |
272 | Probe the hardware, and register/initialize the driver. | 272 | Probe the hardware, and register/initialize the driver. |
273 | 273 | ||
@@ -316,7 +316,7 @@ plip_init_netdev(struct net_device *dev) | |||
316 | 316 | ||
317 | spin_lock_init(&nl->lock); | 317 | spin_lock_init(&nl->lock); |
318 | } | 318 | } |
319 | 319 | ||
320 | /* Bottom half handler for the delayed request. | 320 | /* Bottom half handler for the delayed request. |
321 | This routine is kicked by do_timer(). | 321 | This routine is kicked by do_timer(). |
322 | Request `plip_bh' to be invoked. */ | 322 | Request `plip_bh' to be invoked. */ |
@@ -471,7 +471,7 @@ plip_bh_timeout_error(struct net_device *dev, struct net_local *nl, | |||
471 | 471 | ||
472 | return TIMEOUT; | 472 | return TIMEOUT; |
473 | } | 473 | } |
474 | 474 | ||
475 | static int | 475 | static int |
476 | plip_none(struct net_device *dev, struct net_local *nl, | 476 | plip_none(struct net_device *dev, struct net_local *nl, |
477 | struct plip_local *snd, struct plip_local *rcv) | 477 | struct plip_local *snd, struct plip_local *rcv) |
@@ -481,7 +481,7 @@ plip_none(struct net_device *dev, struct net_local *nl, | |||
481 | 481 | ||
482 | /* PLIP_RECEIVE --- receive a byte(two nibbles) | 482 | /* PLIP_RECEIVE --- receive a byte(two nibbles) |
483 | Returns OK on success, TIMEOUT on timeout */ | 483 | Returns OK on success, TIMEOUT on timeout */ |
484 | inline static int | 484 | static inline int |
485 | plip_receive(unsigned short nibble_timeout, struct net_device *dev, | 485 | plip_receive(unsigned short nibble_timeout, struct net_device *dev, |
486 | enum plip_nibble_state *ns_p, unsigned char *data_p) | 486 | enum plip_nibble_state *ns_p, unsigned char *data_p) |
487 | { | 487 | { |
@@ -582,7 +582,6 @@ static __be16 plip_type_trans(struct sk_buff *skb, struct net_device *dev) | |||
582 | return htons(ETH_P_802_2); | 582 | return htons(ETH_P_802_2); |
583 | } | 583 | } |
584 | 584 | ||
585 | |||
586 | /* PLIP_RECEIVE_PACKET --- receive a packet */ | 585 | /* PLIP_RECEIVE_PACKET --- receive a packet */ |
587 | static int | 586 | static int |
588 | plip_receive_packet(struct net_device *dev, struct net_local *nl, | 587 | plip_receive_packet(struct net_device *dev, struct net_local *nl, |
@@ -702,7 +701,7 @@ plip_receive_packet(struct net_device *dev, struct net_local *nl, | |||
702 | 701 | ||
703 | /* PLIP_SEND --- send a byte (two nibbles) | 702 | /* PLIP_SEND --- send a byte (two nibbles) |
704 | Returns OK on success, TIMEOUT when timeout */ | 703 | Returns OK on success, TIMEOUT when timeout */ |
705 | inline static int | 704 | static inline int |
706 | plip_send(unsigned short nibble_timeout, struct net_device *dev, | 705 | plip_send(unsigned short nibble_timeout, struct net_device *dev, |
707 | enum plip_nibble_state *ns_p, unsigned char data) | 706 | enum plip_nibble_state *ns_p, unsigned char data) |
708 | { | 707 | { |
@@ -902,7 +901,7 @@ plip_error(struct net_device *dev, struct net_local *nl, | |||
902 | 901 | ||
903 | return OK; | 902 | return OK; |
904 | } | 903 | } |
905 | 904 | ||
906 | /* Handle the parallel port interrupts. */ | 905 | /* Handle the parallel port interrupts. */ |
907 | static void | 906 | static void |
908 | plip_interrupt(int irq, void *dev_id, struct pt_regs * regs) | 907 | plip_interrupt(int irq, void *dev_id, struct pt_regs * regs) |
@@ -957,7 +956,7 @@ plip_interrupt(int irq, void *dev_id, struct pt_regs * regs) | |||
957 | 956 | ||
958 | spin_unlock_irq(&nl->lock); | 957 | spin_unlock_irq(&nl->lock); |
959 | } | 958 | } |
960 | 959 | ||
961 | static int | 960 | static int |
962 | plip_tx_packet(struct sk_buff *skb, struct net_device *dev) | 961 | plip_tx_packet(struct sk_buff *skb, struct net_device *dev) |
963 | { | 962 | { |
@@ -1238,7 +1237,7 @@ plip_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | |||
1238 | } | 1237 | } |
1239 | return 0; | 1238 | return 0; |
1240 | } | 1239 | } |
1241 | 1240 | ||
1242 | static int parport[PLIP_MAX] = { [0 ... PLIP_MAX-1] = -1 }; | 1241 | static int parport[PLIP_MAX] = { [0 ... PLIP_MAX-1] = -1 }; |
1243 | static int timid; | 1242 | static int timid; |
1244 | 1243 | ||
diff --git a/drivers/net/via-velocity.h b/drivers/net/via-velocity.h index 1b70b7c97580..d9a774b91ddc 100644 --- a/drivers/net/via-velocity.h +++ b/drivers/net/via-velocity.h | |||
@@ -1414,7 +1414,7 @@ static inline void mac_get_cam(struct mac_regs __iomem * regs, int idx, u8 *addr | |||
1414 | * the rest of the logic from the result of sleep/wakeup | 1414 | * the rest of the logic from the result of sleep/wakeup |
1415 | */ | 1415 | */ |
1416 | 1416 | ||
1417 | inline static void mac_wol_reset(struct mac_regs __iomem * regs) | 1417 | static inline void mac_wol_reset(struct mac_regs __iomem * regs) |
1418 | { | 1418 | { |
1419 | 1419 | ||
1420 | /* Turn off SWPTAG right after leaving power mode */ | 1420 | /* Turn off SWPTAG right after leaving power mode */ |
@@ -1811,7 +1811,7 @@ struct velocity_info { | |||
1811 | * CHECK ME: locking | 1811 | * CHECK ME: locking |
1812 | */ | 1812 | */ |
1813 | 1813 | ||
1814 | inline static int velocity_get_ip(struct velocity_info *vptr) | 1814 | static inline int velocity_get_ip(struct velocity_info *vptr) |
1815 | { | 1815 | { |
1816 | struct in_device *in_dev = (struct in_device *) vptr->dev->ip_ptr; | 1816 | struct in_device *in_dev = (struct in_device *) vptr->dev->ip_ptr; |
1817 | struct in_ifaddr *ifa; | 1817 | struct in_ifaddr *ifa; |
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 47f3c5d0203d..df20adcd0730 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c | |||
@@ -5013,7 +5013,7 @@ static void proc_SSID_on_close( struct inode *inode, struct file *file ) { | |||
5013 | enable_MAC(ai, &rsp, 1); | 5013 | enable_MAC(ai, &rsp, 1); |
5014 | } | 5014 | } |
5015 | 5015 | ||
5016 | inline static u8 hexVal(char c) { | 5016 | static inline u8 hexVal(char c) { |
5017 | if (c>='0' && c<='9') return c -= '0'; | 5017 | if (c>='0' && c<='9') return c -= '0'; |
5018 | if (c>='a' && c<='f') return c -= 'a'-10; | 5018 | if (c>='a' && c<='f') return c -= 'a'-10; |
5019 | if (c>='A' && c<='F') return c -= 'A'-10; | 5019 | if (c>='A' && c<='F') return c -= 'A'-10; |