瀏覽代碼

x86: change some functions in setup.c to static

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Yinghai Lu 17 年之前
父節點
當前提交
29f784e369
共有 3 個文件被更改,包括 4 次插入10 次删除
  1. 4 4
      arch/x86/kernel/setup.c
  2. 0 1
      include/asm-x86/bootparam.h
  3. 0 5
      include/asm-x86/setup.h

+ 4 - 4
arch/x86/kernel/setup.c

@@ -375,7 +375,7 @@ static void __init reserve_initrd(void)
 }
 }
 #endif /* CONFIG_BLK_DEV_INITRD */
 #endif /* CONFIG_BLK_DEV_INITRD */
 
 
-void __init parse_setup_data(void)
+static void __init parse_setup_data(void)
 {
 {
 	struct setup_data *data;
 	struct setup_data *data;
 	u64 pa_data;
 	u64 pa_data;
@@ -417,7 +417,7 @@ static inline unsigned long long get_total_mem(void)
 	return total << PAGE_SHIFT;
 	return total << PAGE_SHIFT;
 }
 }
 
 
-void __init reserve_crashkernel(void)
+static void __init reserve_crashkernel(void)
 {
 {
 	unsigned long long total_mem;
 	unsigned long long total_mem;
 	unsigned long long crash_size, crash_base;
 	unsigned long long crash_size, crash_base;
@@ -453,7 +453,7 @@ void __init reserve_crashkernel(void)
 	}
 	}
 }
 }
 #else
 #else
-void __init reserve_crashkernel(void)
+static void __init reserve_crashkernel(void)
 {
 {
 }
 }
 #endif
 #endif
@@ -481,7 +481,7 @@ static struct resource standard_io_resources[] = {
 		.flags = IORESOURCE_BUSY | IORESOURCE_IO }
 		.flags = IORESOURCE_BUSY | IORESOURCE_IO }
 };
 };
 
 
-void __init reserve_standard_io_resources(void)
+static void __init reserve_standard_io_resources(void)
 {
 {
 	int i;
 	int i;
 
 

+ 0 - 1
include/asm-x86/bootparam.h

@@ -109,6 +109,5 @@ struct boot_params {
 } __attribute__((packed));
 } __attribute__((packed));
 
 
 void reserve_setup_data(void);
 void reserve_setup_data(void);
-void parse_setup_data(void);
 
 
 #endif /* _ASM_BOOTPARAM_H */
 #endif /* _ASM_BOOTPARAM_H */

+ 0 - 5
include/asm-x86/setup.h

@@ -8,9 +8,6 @@
 /* Interrupt control for vSMPowered x86_64 systems */
 /* Interrupt control for vSMPowered x86_64 systems */
 void vsmp_init(void);
 void vsmp_init(void);
 
 
-/* Crashkernel reservation */
-void reserve_crashkernel(void);
-
 #ifndef CONFIG_PARAVIRT
 #ifndef CONFIG_PARAVIRT
 #define paravirt_post_allocator_init()	do {} while (0)
 #define paravirt_post_allocator_init()	do {} while (0)
 #endif
 #endif
@@ -38,8 +35,6 @@ void reserve_crashkernel(void);
 #ifndef __ASSEMBLY__
 #ifndef __ASSEMBLY__
 #include <asm/bootparam.h>
 #include <asm/bootparam.h>
 
 
-void reserve_standard_io_resources(void);
-
 #ifndef _SETUP
 #ifndef _SETUP
 
 
 /*
 /*