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] Remove numerous includes from <linux/mm.h>
Remove 4 #includes from <linux/mm.h> and fix up implicit includes.

This remove linux/gfp.h, linux/string.h, linux/mmzone.h and
linux/rbtree.h from <linux/mm.h> and fixes the callers which relied on
<linux/mm.h> to provide <linux/gfp.h>

This relies on all of the previously sent patches to work.

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

===== fs/isofs/namei.c 1.9 vs edited =====
--- 1.9/fs/isofs/namei.c Thu May 23 06:18:50 2002
+++ edited/fs/isofs/namei.c Thu Jun 6 12:33:14 2002
@@ -13,6 +13,7 @@
#include <linux/stat.h>
#include <linux/fcntl.h>
#include <linux/mm.h>
+#include <linux/gfp.h>
#include <linux/errno.h>
#include <linux/config.h> /* Joliet? */
#include <linux/smp_lock.h>
===== include/asm-i386/pgalloc.h 1.16 vs edited =====
--- 1.16/include/asm-i386/pgalloc.h Thu Jun 6 11:35:04 2002
+++ edited/include/asm-i386/pgalloc.h Thu Jun 6 12:15:09 2002
@@ -6,6 +6,7 @@
#include <asm/fixmap.h>
#include <linux/threads.h>
#include <linux/mm.h> /* for struct page */
+#include <linux/gfp.h>

#define pmd_populate_kernel(mm, pmd, pte) \
set_pmd(pmd, __pmd(_PAGE_TABLE + __pa(pte)))
===== include/linux/mm.h 1.55 vs edited =====
--- 1.55/include/linux/mm.h Sat May 25 16:25:47 2002
+++ edited/include/linux/mm.h Thu Jun 6 12:15:09 2002
@@ -7,12 +7,8 @@
#ifdef __KERNEL__

#include <linux/config.h>
-#include <linux/gfp.h>
-#include <linux/string.h>
#include <linux/list.h>
-#include <linux/mmzone.h>
#include <linux/swap.h>
-#include <linux/rbtree.h>
#include <linux/fs.h>

extern unsigned long max_mapnr;
===== mm/bootmem.c 1.9 vs edited =====
--- 1.9/mm/bootmem.c Mon Jun 3 08:24:55 2002
+++ edited/mm/bootmem.c Thu Jun 6 12:28:37 2002
@@ -10,6 +10,7 @@
*/

#include <linux/mm.h>
+#include <linux/gfp.h>
#include <linux/kernel_stat.h>
#include <linux/swap.h>
#include <linux/swapctl.h>
===== mm/numa.c 1.5 vs edited =====
--- 1.5/mm/numa.c Sat May 25 16:25:47 2002
+++ edited/mm/numa.c Thu Jun 6 12:28:35 2002
@@ -4,6 +4,7 @@
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/mm.h>
+#include <linux/gfp.h>
#include <linux/init.h>
#include <linux/bootmem.h>
#include <linux/mmzone.h>
-
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:26    [W:1.521 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site