Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1485611
| Path | csiph.com!news.redatomik.org!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Denys Vlasenko <dvlasenk@redhat.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/3] x86/e820: Mark some static functions __init |
| Date | Sat, 17 Sep 2016 23:40:02 +0200 |
| Message-ID | <sivv4-7Lf-9@gated-at.bofh.it> (permalink) |
| X-Original-To | Ingo Molnar <mingo@kernel.org> |
| X-Scanned-By | MIMEDefang 2.68 on 10.5.11.23 |
| X-Greylist | Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Sat, 17 Sep 2016 21:39:32 +0000 (UTC) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 74 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Denys Vlasenko <dvlasenk@redhat.com>, Andy Lutomirski <luto@amacapital.net>, "H. Peter Anvin" <hpa@zytor.com>, Borislav Petkov <bp@alien8.de>, Brian Gerst <brgerst@gmail.com>, x86@kernel.org, linux-kernel@vger.kernel.org |
| X-Original-Date | Sat, 17 Sep 2016 23:39:25 +0200 |
| X-Original-Message-ID | <20160917213927.1787-1-dvlasenk@redhat.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1485611 |
Show key headers only | View raw
They are all called only from other __init functions in e820.c
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
CC: Ingo Molnar <mingo@kernel.org>
CC: Andy Lutomirski <luto@amacapital.net>
CC: "H. Peter Anvin" <hpa@zytor.com>
CC: Borislav Petkov <bp@alien8.de>
CC: Brian Gerst <brgerst@gmail.com>
CC: x86@kernel.org
CC: linux-kernel@vger.kernel.org
---
arch/x86/kernel/e820.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c
index 621b501..a6d4f10 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)
return e820_end_pfn(1UL << (32-PAGE_SHIFT));
}
-static void early_panic(char *msg)
+static void __init early_panic(char *msg)
{
early_printk(msg);
panic(msg);
@@ -912,7 +912,7 @@ void __init finish_e820_parsing(void)
}
}
-static const char *e820_type_to_string(int e820_type)
+static const char *__init e820_type_to_string(int e820_type)
{
switch (e820_type) {
case E820_RESERVED_KERN:
@@ -926,7 +926,7 @@ static const char *e820_type_to_string(int e820_type)
}
}
-static unsigned long e820_type_to_iomem_type(int e820_type)
+static unsigned long __init e820_type_to_iomem_type(int e820_type)
{
switch (e820_type) {
case E820_RESERVED_KERN:
@@ -942,7 +942,7 @@ static unsigned long e820_type_to_iomem_type(int e820_type)
}
}
-static unsigned long e820_type_to_iores_desc(int e820_type)
+static unsigned long __init e820_type_to_iores_desc(int e820_type)
{
switch (e820_type) {
case E820_ACPI:
@@ -961,7 +961,7 @@ static unsigned long e820_type_to_iores_desc(int e820_type)
}
}
-static bool do_mark_busy(u32 type, struct resource *res)
+static bool __init do_mark_busy(u32 type, struct resource *res)
{
/* this is the legacy bios/dos rom-shadow + mmio region */
if (res->start < (1ULL<<20))
@@ -1027,7 +1027,7 @@ void __init e820_reserve_resources(void)
}
/* How much should we pad RAM ending depending on where it is? */
-static unsigned long ram_alignment(resource_size_t pos)
+static unsigned long __init ram_alignment(resource_size_t pos)
{
unsigned long mb = pos >> 20;
--
2.9.2
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 1/3] x86/e820: Mark some static functions __init Denys Vlasenko <dvlasenk@redhat.com> - 2016-09-17 23:40 +0200
[PATCH 2/3] x86/e820: Prepare e280 code for switch to dynamic storage Denys Vlasenko <dvlasenk@redhat.com> - 2016-09-17 23:40 +0200
[tip:x86/boot] x86/e820: Prepare e280 code for switch to dynamic storage tip-bot for Denys Vlasenko <tipbot@zytor.com> - 2016-09-21 18:30 +0200
[PATCH 3/3] x86/e820: Use much less memory for e820/e820_saved, save up to 120k Denys Vlasenko <dvlasenk@redhat.com> - 2016-09-17 23:50 +0200
Re: [PATCH 3/3] x86/e820: Use much less memory for e820/e820_saved, save up to 120k kbuild test robot <lkp@intel.com> - 2016-09-18 01:00 +0200
[tip:x86/boot] x86/e820: Mark some static functions __init tip-bot for Denys Vlasenko <tipbot@zytor.com> - 2016-09-21 18:30 +0200
csiph-web