Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S272577AbTHPEJl (ORCPT ); Sat, 16 Aug 2003 00:09:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S272586AbTHPEJl (ORCPT ); Sat, 16 Aug 2003 00:09:41 -0400 Received: from relais.videotron.ca ([24.201.245.36]:12995 "EHLO VL-MO-MR004.ip.videotron.ca") by vger.kernel.org with ESMTP id S272577AbTHPEJk (ORCPT ); Sat, 16 Aug 2003 00:09:40 -0400 Date: Sat, 16 Aug 2003 00:01:02 -0400 From: Stephane Ouellette Subject: [PATCH 2.4][TRIVIAL][RESEND] Fix warning in arch/i386/kernel/setup.c To: davej@suse.de Cc: linux-kernel Message-id: <3F3DAC7E.204@videotron.ca> MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_kbYT149qAHTAkqGaDVNm+w)" X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1298 Lines: 39 This is a multi-part message in MIME format. --Boundary_(ID_kbYT149qAHTAkqGaDVNm+w) Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT Dave, the following patch fixes a warning if CONFIG_SMP is not defined. The patch applies to 2.4.22-rc1-ac1. Stephane Ouellette --Boundary_(ID_kbYT149qAHTAkqGaDVNm+w) Content-type: text/plain; name=setup.c-2.4.22-rc1-ac1.diff; CHARSET=US-ASCII Content-transfer-encoding: 7BIT Content-disposition: inline; filename=setup.c-2.4.22-rc1-ac1.diff --- 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//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", --Boundary_(ID_kbYT149qAHTAkqGaDVNm+w)-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/