2.2.5-pre2 SMP compilation error in kernel/signal.c

Tom Eastep (eastep@loc1.tandem.com)
Sat, 27 Mar 1999 04:15:15 +0000


This is a multi-part message in MIME format.
--------------B8A30367943CB4FC26F6357C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

2.2.5 pre-patch 2 fails to compile with CONFIG_SMP=y (runqueue_lock is
undeclared in kernel/signal.c). The attached patch corrects this
problem; the resulting kernel seems to work ok in my environment (SMP
ppro 150s, aic7880, eepro 100, hp100).

-Tom

-- 
Tom Eastep
Compaq Computer Corporation
Enterprise Computing Group
Tandem Division
tom.eastep@compaq.com
--------------B8A30367943CB4FC26F6357C
Content-Type: text/plain; charset=us-ascii;
 name="patch-2.2.5"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch-2.2.5"

--- include/linux/sched.h~ Fri Mar 26 19:41:21 1999 +++ include/linux/sched.h Fri Mar 26 19:48:07 1999 @@ -113,6 +113,8 @@ */ extern rwlock_t tasklist_lock; extern spinlock_t scheduler_lock; +extern spinlock_t runqueue_lock; + extern void sched_init(void); extern void show_state(void); --- kernel/signal.c~ Fri Mar 26 19:39:57 1999 +++ kernel/signal.c Fri Mar 26 19:45:49 1999 @@ -11,6 +11,7 @@ #include <linux/unistd.h> #include <linux/smp_lock.h> #include <linux/init.h> +#include <linux/sched.h> #include <asm/uaccess.h>

--------------B8A30367943CB4FC26F6357C--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/