patch-2.4.21 linux-2.4.21/arch/parisc/kernel/led.c

Next file: linux-2.4.21/arch/parisc/kernel/parisc_ksyms.c
Previous file: linux-2.4.21/arch/parisc/kernel/lba_pci.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/arch/parisc/kernel/led.c linux-2.4.21/arch/parisc/kernel/led.c
@@ -352,7 +352,8 @@
 static unsigned long led_net_rx_counter, led_net_tx_counter;
 
 static void led_get_net_stats(int addvalue)
-{
+{ 
+#ifdef CONFIG_NET
 	static unsigned long rx_total_last, tx_total_last;
 	unsigned long rx_total, tx_total;
 	struct net_device *dev;
@@ -383,6 +384,7 @@
         
 	rx_total_last += rx_total;
         tx_total_last += tx_total;
+#endif
 }
 
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)