提交 013d23e1 编写于 作者: A Adrian Bunk 提交者: Ingo Molnar

x86 e820_64.c: make 2 functions static

This patch makes the following needlessly global functions static:
- e820_print_map()
- early_panic()
Signed-off-by: NAdrian Bunk <bunk@kernel.org>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 6b592570
...@@ -373,7 +373,7 @@ unsigned long __init e820_hole_size(unsigned long start, unsigned long end) ...@@ -373,7 +373,7 @@ unsigned long __init e820_hole_size(unsigned long start, unsigned long end)
return end - start - (ram << PAGE_SHIFT); return end - start - (ram << PAGE_SHIFT);
} }
void __init e820_print_map(char *who) static void __init e820_print_map(char *who)
{ {
int i; int i;
...@@ -633,7 +633,7 @@ static int __init copy_e820_map(struct e820entry *biosmap, int nr_map) ...@@ -633,7 +633,7 @@ static int __init copy_e820_map(struct e820entry *biosmap, int nr_map)
return 0; return 0;
} }
void early_panic(char *msg) static void early_panic(char *msg)
{ {
early_printk(msg); early_printk(msg);
panic(msg); panic(msg);
......
...@@ -21,7 +21,6 @@ extern void contig_e820_setup(void); ...@@ -21,7 +21,6 @@ extern void contig_e820_setup(void);
extern unsigned long e820_end_of_ram(void); extern unsigned long e820_end_of_ram(void);
extern void e820_reserve_resources(void); extern void e820_reserve_resources(void);
extern void e820_mark_nosave_regions(void); extern void e820_mark_nosave_regions(void);
extern void e820_print_map(char *who);
extern int e820_any_mapped(unsigned long start, unsigned long end, unsigned type); extern int e820_any_mapped(unsigned long start, unsigned long end, unsigned type);
extern int e820_all_mapped(unsigned long start, unsigned long end, unsigned type); extern int e820_all_mapped(unsigned long start, unsigned long end, unsigned type);
extern unsigned long e820_hole_size(unsigned long start, unsigned long end); extern unsigned long e820_hole_size(unsigned long start, unsigned long end);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册