lkml.org 
[lkml]   [2002]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] More work on removing <linux/mm.h> from <linux/vmalloc.h>
On Thu, Jun 06, 2002 at 12:44:54PM -0700, Tom Rini wrote:
> This removes <linux/mm.h> from <linux/vmalloc.h>.
>
> This then goes and fixes all of the files (x86 and PPC) which relied on
> implicit includes which don't happen anymore. This also takes
> <linux/kdev_t.h> out of fs/mpage.c and puts it into include/linux/bio.h
> where it belongs since <linux/bio.h> references 'kdev_t' directly.
>
> A quick summary of the of the added includes:
> arch/i386/kernel/microcode.c: needs extern for num_physpages, in linux/mm.h
> include/linux/spinlock.h: local_irq* is defined in <asm/system.h> but
> this was never directly included.
>
> This depends on the patch to move the vmalloc wrappers out of
> <linux/vmalloc.h>

And the following is in addition to that patch for stuff that's in the
current linux-2.5 tree but wasn't when I tested the inital patch.

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

===== arch/i386/kernel/cpu/amd.c 1.1 vs edited =====
--- 1.1/arch/i386/kernel/cpu/amd.c Wed May 8 08:11:31 2002
+++ edited/arch/i386/kernel/cpu/amd.c Thu Jun 6 13:51:10 2002
@@ -1,5 +1,6 @@
#include <linux/init.h>
#include <linux/bitops.h>
+#include <linux/mm.h>
#include <asm/io.h>
#include <asm/processor.h>

===== include/asm-i386/desc.h 1.4 vs edited =====
--- 1.4/include/asm-i386/desc.h Sat Apr 27 10:47:46 2002
+++ edited/include/asm-i386/desc.h Thu Jun 6 13:45:09 2002
@@ -49,6 +49,9 @@
#define __LDT(n) (((n)<<2) + __FIRST_LDT_ENTRY)

#ifndef __ASSEMBLY__
+
+#include <asm/mmu.h>
+
struct desc_struct {
unsigned long a,b;
};
-
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/
\
 
 \ /
  Last update: 2005-03-22 13:22    [W:0.293 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site