| To: | Mirko Lindner <mlindner@xxxxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH] (1/3) sk98lin -- build on smp fix |
| From: | Stephen Hemminger <shemminger@xxxxxxxx> |
| Date: | Fri, 26 Sep 2003 11:17:47 -0700 |
| Cc: | Jeff Garzik <jgarzik@xxxxxxxxx>, Ralph Roesler <rroesler@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx |
| In-reply-to: | <1220606764.18887.129.camel@mlindner-lin> |
| Organization: | Open Source Development Lab |
| References: | <20030904160658.5ae22c0d.shemminger@xxxxxxxx> <1220606764.18887.129.camel@mlindner-lin> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
There is no exported variable called smp_num_cpus! so this driver
won't build on SMP. Since the local variable is never used anyway
just get rid of it.
This applies against 2.6.0-test5-bk13 which has the last vendor
driver update.
diff -Nru a/drivers/net/sk98lin/skdim.c b/drivers/net/sk98lin/skdim.c
--- a/drivers/net/sk98lin/skdim.c Fri Sep 26 11:01:04 2003
+++ b/drivers/net/sk98lin/skdim.c Fri Sep 26 11:01:04 2003
@@ -318,11 +318,6 @@
unsigned int TotalTime = 0;
unsigned int UsedTime = 0;
unsigned int SystemLoad = 0;
-#ifdef CONFIG_SMP
- unsigned int SKNumCpus = smp_num_cpus;
-#else
- unsigned int SKNumCpus = 1;
-#endif
/* unsigned int NbrCpu = 0; */
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH][ATM]: [ioctl][1/8] move vcc_ioctl() to ioctl.c (from levon@xxxxxxxxxxxxxxxxx), David S. Miller |
|---|---|
| Next by Date: | [PATCH] (3/3) sk98lin -- use seq_file for /proc, Stephen Hemminger |
| Previous by Thread: | Re: [RFT] simplify skge /proc interface., Mirko Lindner |
| Next by Thread: | Re: [PATCH] (1/3) sk98lin -- build on smp fix, Jeff Garzik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |