public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.4][TRIVIAL][RESEND]   Fix warning in arch/i386/kernel/setup.c
@ 2003-08-16  4:01 Stephane Ouellette
  0 siblings, 0 replies; only message in thread
From: Stephane Ouellette @ 2003-08-16  4:01 UTC (permalink / raw)
  To: davej; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 138 bytes --]

Dave,

   the following patch fixes a warning if CONFIG_SMP is not defined.

   The patch applies to 2.4.22-rc1-ac1.

Stephane Ouellette


[-- Attachment #2: setup.c-2.4.22-rc1-ac1.diff --]
[-- Type: text/plain, Size: 482 bytes --]

--- linux-2.4.22-rc1-ac1-orig/arch/i386/kernel/setup.c	Fri Aug  8 22:34:38 2003
+++ linux-2.4.22-rc1-ac1-fixed/arch/i386/kernel/setup.c	Sat Aug  9 00:41:01 2003
@@ -2978,7 +2978,9 @@
 	 * applications want to get the raw CPUID data, they should access
 	 * /dev/cpu/<cpu_nr>/cpuid instead.
 	 */
+#ifdef CONFIG_SMP
 	extern	int phys_proc_id[NR_CPUS];
+#endif
 	static char *x86_cap_flags[] = {
 		/* Intel-defined */
 	        "fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce",

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-16  4:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-16  4:01 [PATCH 2.4][TRIVIAL][RESEND] Fix warning in arch/i386/kernel/setup.c Stephane Ouellette

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox