Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 19 Jun 2002 14:27:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 19 Jun 2002 14:27:15 -0400 Received: from hermes.fachschaften.tu-muenchen.de ([129.187.176.19]:28888 "HELO hermes.fachschaften.tu-muenchen.de") by vger.kernel.org with SMTP id ; Wed, 19 Jun 2002 14:27:14 -0400 Date: Wed, 19 Jun 2002 20:27:10 +0200 (CEST) From: Adrian Bunk X-X-Sender: bunk@mimas.fachschaften.tu-muenchen.de To: Kirk Reiser cc: linux-kernel@vger.kernel.org Subject: Re: another sched.c error with athlon In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1803 Lines: 50 On 19 Jun 2002, Kirk Reiser wrote: > Here's another error I'm getting from sched.c and don't seem to be > able to find where it should be #define'd. > > gcc -Wp,-MD,./.sched.o.d -D__KERNEL__ > -I/usr/src/linux-2.5.23/include -Wall -Wstrict-prototypes > -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing > -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 > -malign-functions=4 -nostdinc -iwithprefix include > -fno-omit-frame-pointer -DKBUILD_BASENAME=sched -c -o sched.o > sched.c > sched.c: In function `sys_sched_setaffinity': > sched.c:1332: `cpu_online_map' undeclared (first use in this function) > sched.c:1332: (Each undeclared identifier is reported only once > sched.c:1332: for each function it appears in.) > sched.c: In function `sys_sched_getaffinity': > sched.c:1391: `cpu_online_map' undeclared (first use in this function) > make[1]: *** [sched.o] Error 1 The following patch (that is already in Linus' BK repository) fixes this: --- a/include/linux/smp.h Wed Jun 19 00:00:41 2002 +++ b/include/linux/smp.h Wed Jun 19 00:00:41 2002 @@ -86,6 +86,7 @@ #define smp_call_function(func,info,retry,wait) ({ 0; }) static inline void smp_send_reschedule(int cpu) { } static inline void smp_send_reschedule_all(void) { } +#define cpu_online_map 1 #define cpu_online(cpu) 1 #define num_online_cpus() 1 #define __per_cpu_data > Kirk cu Adrian -- You only think this is a free country. Like the US the UK spends a lot of time explaining its a free country because its a police state. Alan Cox - 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/