public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk@arm.linux.org.uk>
To: "Thomas 'Dent' Mirlacher" <dent@cosy.sbg.ac.at>
Cc: linux-kernel@vger.kernel.org, Linus Torvalds <torvalds@transmeta.com>
Subject: Re: [PATCH][2.5.21] compilation fix
Date: Sun, 9 Jun 2002 16:07:25 +0100	[thread overview]
Message-ID: <20020609160725.A8761@flint.arm.linux.org.uk> (raw)
In-Reply-To: <Pine.GSO.4.05.10206091653110.16366-100000@mausmaki.cosy.sbg.ac.at>

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


      reply	other threads:[~2002-06-09 15:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-09 14:55 [PATCH][2.5.21] compilation fix Thomas 'Dent' Mirlacher
2002-06-09 15:07 ` Russell King [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020609160725.A8761@flint.arm.linux.org.uk \
    --to=rmk@arm.linux.org.uk \
    --cc=dent@cosy.sbg.ac.at \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox