Browse Source

[PATCH] bootmem: remove useless headers inclusions

Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com>
Cc: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Franck Bui-Huu 19 years ago
parent
commit
e786e86a54
2 changed files with 4 additions and 11 deletions
  1. 1 4
      include/linux/bootmem.h
  2. 3 7
      mm/bootmem.c

+ 1 - 4
include/linux/bootmem.h

@@ -4,11 +4,8 @@
 #ifndef _LINUX_BOOTMEM_H
 #ifndef _LINUX_BOOTMEM_H
 #define _LINUX_BOOTMEM_H
 #define _LINUX_BOOTMEM_H
 
 
-#include <asm/pgtable.h>
-#include <asm/dma.h>
-#include <linux/cache.h>
-#include <linux/init.h>
 #include <linux/mmzone.h>
 #include <linux/mmzone.h>
+#include <asm/dma.h>
 
 
 /*
 /*
  *  simple boot-time physical memory area allocator.
  *  simple boot-time physical memory area allocator.

+ 3 - 7
mm/bootmem.c

@@ -8,17 +8,13 @@
  *  free memory collector. It's used to deal with reserved
  *  free memory collector. It's used to deal with reserved
  *  system memory and memory holes as well.
  *  system memory and memory holes as well.
  */
  */
-
-#include <linux/mm.h>
-#include <linux/kernel_stat.h>
-#include <linux/swap.h>
-#include <linux/interrupt.h>
 #include <linux/init.h>
 #include <linux/init.h>
 #include <linux/bootmem.h>
 #include <linux/bootmem.h>
-#include <linux/mmzone.h>
 #include <linux/module.h>
 #include <linux/module.h>
-#include <asm/dma.h>
+
+#include <asm/bug.h>
 #include <asm/io.h>
 #include <asm/io.h>
+
 #include "internal.h"
 #include "internal.h"
 
 
 /*
 /*