浏览代码

[PATCH] arch/i386/mm/init.c: small cleanups

This patch contains the following cleanups:
- make a needlessly global function static
- every file should include the headers containing the prototypes for
  it's global functions

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Adrian Bunk 20 年之前
父节点
当前提交
27d99f7ead
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      arch/i386/mm/init.c

+ 2 - 1
arch/i386/mm/init.c

@@ -28,6 +28,7 @@
 #include <linux/proc_fs.h>
 #include <linux/proc_fs.h>
 #include <linux/efi.h>
 #include <linux/efi.h>
 #include <linux/memory_hotplug.h>
 #include <linux/memory_hotplug.h>
+#include <linux/initrd.h>
 
 
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/system.h>
 #include <asm/system.h>
@@ -267,7 +268,7 @@ static void __init permanent_kmaps_init(pgd_t *pgd_base)
 	pkmap_page_table = pte;	
 	pkmap_page_table = pte;	
 }
 }
 
 
-void __devinit free_new_highpage(struct page *page)
+static void __devinit free_new_highpage(struct page *page)
 {
 {
 	set_page_count(page, 1);
 	set_page_count(page, 1);
 	__free_page(page);
 	__free_page(page);