From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757749AbcIUQW7 (ORCPT ); Wed, 21 Sep 2016 12:22:59 -0400 Received: from terminus.zytor.com ([198.137.202.10]:60216 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757657AbcIUQW4 (ORCPT ); Wed, 21 Sep 2016 12:22:56 -0400 Date: Wed, 21 Sep 2016 09:21:50 -0700 From: tip-bot for Denys Vlasenko Message-ID: Cc: dvlasenk@redhat.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, jpoimboe@redhat.com, peterz@infradead.org, yinghai@kernel.org, hpa@zytor.com, bp@alien8.de, brgerst@gmail.com, torvalds@linux-foundation.org, luto@kernel.org, luto@amacapital.net, mingo@kernel.org Reply-To: linux-kernel@vger.kernel.org, tglx@linutronix.de, dvlasenk@redhat.com, luto@amacapital.net, luto@kernel.org, torvalds@linux-foundation.org, mingo@kernel.org, jpoimboe@redhat.com, peterz@infradead.org, brgerst@gmail.com, yinghai@kernel.org, hpa@zytor.com, bp@alien8.de In-Reply-To: <20160917213927.1787-1-dvlasenk@redhat.com> References: <20160917213927.1787-1-dvlasenk@redhat.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/boot] x86/e820: Mark some static functions __init Git-Commit-ID: 8c2103f224216a45c1a4d7aebbc13f3e007cde34 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 8c2103f224216a45c1a4d7aebbc13f3e007cde34 Gitweb: http://git.kernel.org/tip/8c2103f224216a45c1a4d7aebbc13f3e007cde34 Author: Denys Vlasenko AuthorDate: Sat, 17 Sep 2016 23:39:25 +0200 Committer: Ingo Molnar CommitDate: Wed, 21 Sep 2016 15:02:11 +0200 x86/e820: Mark some static functions __init They are all called only from other __init functions in e820.c Signed-off-by: Denys Vlasenko Acked-by: Thomas Gleixner Cc: Andy Lutomirski Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Brian Gerst Cc: H. Peter Anvin Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Yinghai Lu Cc: linux-kernel@vger.kernel.org Link: http://lkml.kernel.org/r/20160917213927.1787-1-dvlasenk@redhat.com Signed-off-by: Ingo Molnar --- 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 871f186..4d3dd9a 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;