aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2016-09-17 17:39:25 -0400
committerIngo Molnar <mingo@kernel.org>2016-09-21 09:02:11 -0400
commit8c2103f224216a45c1a4d7aebbc13f3e007cde34 (patch)
treeb9f0a01b6b5a27fb0b7e4896e8085bf066e0ca7b /arch/x86/kernel
parent580498a23be1de55be55147eaee20a69249aeb13 (diff)
x86/e820: Mark some static functions __init
They are all called only from other __init functions in e820.c Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com> Acked-by: Thomas Gleixner <tglx@linutronix.de> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Andy Lutomirski <luto@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Yinghai Lu <yinghai@kernel.org> Cc: linux-kernel@vger.kernel.org Link: http://lkml.kernel.org/r/20160917213927.1787-1-dvlasenk@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/e820.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c
index 871f1863457d..4d3dd9a713c7 100644
--- a/arch/x86/kernel/e820.c
+++ b/arch/x86/kernel/e820.c
@@ -802,7 +802,7 @@ unsigned long __init e820_end_of_low_ram_pfn(void)
802 return e820_end_pfn(1UL << (32-PAGE_SHIFT)); 802 return e820_end_pfn(1UL << (32-PAGE_SHIFT));
803} 803}
804 804
805static void early_panic(char *msg) 805static void __init early_panic(char *msg)
806{ 806{
807 early_printk(msg); 807 early_printk(msg);
808 panic(msg); 808 panic(msg);
@@ -912,7 +912,7 @@ void __init finish_e820_parsing(void)
912 } 912 }
913} 913}
914 914
915static const char *e820_type_to_string(int e820_type) 915static const char *__init e820_type_to_string(int e820_type)
916{ 916{
917 switch (e820_type) { 917 switch (e820_type) {
918 case E820_RESERVED_KERN: 918 case E820_RESERVED_KERN:
@@ -926,7 +926,7 @@ static const char *e820_type_to_string(int e820_type)
926 } 926 }
927} 927}
928 928
929static unsigned long e820_type_to_iomem_type(int e820_type) 929static unsigned long __init e820_type_to_iomem_type(int e820_type)
930{ 930{
931 switch (e820_type) { 931 switch (e820_type) {
932 case E820_RESERVED_KERN: 932 case E820_RESERVED_KERN:
@@ -942,7 +942,7 @@ static unsigned long e820_type_to_iomem_type(int e820_type)
942 } 942 }
943} 943}
944 944
945static unsigned long e820_type_to_iores_desc(int e820_type) 945static unsigned long __init e820_type_to_iores_desc(int e820_type)
946{ 946{
947 switch (e820_type) { 947 switch (e820_type) {
948 case E820_ACPI: 948 case E820_ACPI:
@@ -961,7 +961,7 @@ static unsigned long e820_type_to_iores_desc(int e820_type)
961 } 961 }
962} 962}
963 963
964static bool do_mark_busy(u32 type, struct resource *res) 964static bool __init do_mark_busy(u32 type, struct resource *res)
965{ 965{
966 /* this is the legacy bios/dos rom-shadow + mmio region */ 966 /* this is the legacy bios/dos rom-shadow + mmio region */
967 if (res->start < (1ULL<<20)) 967 if (res->start < (1ULL<<20))
@@ -1027,7 +1027,7 @@ void __init e820_reserve_resources(void)
1027} 1027}
1028 1028
1029/* How much should we pad RAM ending depending on where it is? */ 1029/* How much should we pad RAM ending depending on where it is? */
1030static unsigned long ram_alignment(resource_size_t pos) 1030static unsigned long __init ram_alignment(resource_size_t pos)
1031{ 1031{
1032 unsigned long mb = pos >> 20; 1032 unsigned long mb = pos >> 20;
1033 1033