Re: [PATCH][2.5.21] compilation fix

From: Russell King (rmk@arm.linux.org.uk)
Date: Sun Jun 09 2002 - 10:07:25 EST


On Sun, Jun 09, 2002 at 04:55:08PM +0200, Thomas 'Dent' Mirlacher wrote:
> seems the include file cleanup was a little bit over-optimized :)

The patch I'm using is as follows. Since namespace.h needs the contents
of dcache, task struct and semaphores, it seems sensible to include
these two files into namespace.h.

For the future: If the task_struct in sched.h is split into its own
include file, namespace.h could include this file, but namespace.h
will also need asm/semaphore.h

--- orig/kernel/fork.c Sun Jun 9 16:02:04 2002
+++ linux/kernel/fork.c Sun Jun 9 15:19:30 2002
@@ -24,6 +24,7 @@
 #include <linux/file.h>
 #include <linux/binfmts.h>
 #include <linux/fs.h>
+#include <linux/mm.h>
 
 #include <asm/pgtable.h>
 #include <asm/pgalloc.h>
--- orig/mm/vmalloc.c Sun Jun 9 16:02:04 2002
+++ linux/mm/vmalloc.c Sun Jun 9 15:26:25 2002
@@ -10,6 +10,7 @@
 #include <linux/slab.h>
 #include <linux/vmalloc.h>
 #include <linux/spinlock.h>
+#include <linux/mm.h>
 #include <linux/highmem.h>
 #include <linux/smp_lock.h>
 
--- orig/include/linux/namespace.h Tue Feb 19 00:47:25 2002
+++ linux/include/linux/namespace.h Sun Jun 9 16:04:05 2002
@@ -2,6 +2,9 @@
 #define _NAMESPACE_H_
 #ifdef __KERNEL__
 
+#include <linux/dcache.h>
+#include <linux/sched.h>
+
 struct namespace {
         atomic_t count;
         struct vfsmount * root;

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- 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/



This archive was generated by hypermail 2b29 : Sat Jun 15 2002 - 22:00:14 EST