From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yinghai Lu Subject: [PATCH 29/29] x86: make e820 to be __initdata Date: Tue, 30 Mar 2010 04:20:03 -0700 Message-ID: <1269948003-17221-30-git-send-email-yinghai@kernel.org> References: <1269948003-17221-1-git-send-email-yinghai@kernel.org> Return-path: Received: from rcsinet12.oracle.com ([148.87.113.124]:43820 "EHLO rcsinet12.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756353Ab0C3LYh (ORCPT ); Tue, 30 Mar 2010 07:24:37 -0400 In-Reply-To: <1269948003-17221-1-git-send-email-yinghai@kernel.org> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Andrew Morton , David Miller , Be Cc: Johannes Weiner , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Yinghai Lu Finally no users after init boot stage. We can free it to save some bytes. Signed-off-by: Yinghai Lu --- arch/x86/include/asm/e820.h | 2 -- arch/x86/kernel/e820.c | 2 +- 2 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/asm/e820.h b/arch/x86/include/asm/e820.h index cd7de51..f2ab72e 100644 --- a/arch/x86/include/asm/e820.h +++ b/arch/x86/include/asm/e820.h @@ -73,8 +73,6 @@ struct e820map { #define BIOS_END 0x00100000 #ifdef __KERNEL__ -/* see comment in arch/x86/kernel/e820.c */ -extern struct e820map e820; #if defined(CONFIG_X86_OOSTORE) && defined(CONFIG_CPU_SUP_CENTAUR) extern int centaur_ram_top; diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c index 471784b..2c1260f 100644 --- a/arch/x86/kernel/e820.c +++ b/arch/x86/kernel/e820.c @@ -35,7 +35,7 @@ * user can e.g. boot the original kernel with mem=1G while still booting the * next kernel with full memory. */ -struct e820map e820; +static struct e820map __initdata e820; static struct e820map __initdata e820_saved; /* For PCI or other memory-mapped resources */ -- 1.6.4.2 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rcsinet12.oracle.com ([148.87.113.124]:43820 "EHLO rcsinet12.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756353Ab0C3LYh (ORCPT ); Tue, 30 Mar 2010 07:24:37 -0400 From: Yinghai Lu Subject: [PATCH 29/29] x86: make e820 to be __initdata Date: Tue, 30 Mar 2010 04:20:03 -0700 Message-ID: <1269948003-17221-30-git-send-email-yinghai@kernel.org> In-Reply-To: <1269948003-17221-1-git-send-email-yinghai@kernel.org> References: <1269948003-17221-1-git-send-email-yinghai@kernel.org> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Andrew Morton , David Miller , Benjamin Herrenschmidt , Linus Torvalds Cc: Johannes Weiner , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Yinghai Lu Message-ID: <20100330112003.3ZfqyEKCSSua-PvHJZ6Xs9vDFfLW2HszReGe0xbItGU@z> Finally no users after init boot stage. We can free it to save some bytes. Signed-off-by: Yinghai Lu --- arch/x86/include/asm/e820.h | 2 -- arch/x86/kernel/e820.c | 2 +- 2 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/asm/e820.h b/arch/x86/include/asm/e820.h index cd7de51..f2ab72e 100644 --- a/arch/x86/include/asm/e820.h +++ b/arch/x86/include/asm/e820.h @@ -73,8 +73,6 @@ struct e820map { #define BIOS_END 0x00100000 #ifdef __KERNEL__ -/* see comment in arch/x86/kernel/e820.c */ -extern struct e820map e820; #if defined(CONFIG_X86_OOSTORE) && defined(CONFIG_CPU_SUP_CENTAUR) extern int centaur_ram_top; diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c index 471784b..2c1260f 100644 --- a/arch/x86/kernel/e820.c +++ b/arch/x86/kernel/e820.c @@ -35,7 +35,7 @@ * user can e.g. boot the original kernel with mem=1G while still booting the * next kernel with full memory. */ -struct e820map e820; +static struct e820map __initdata e820; static struct e820map __initdata e820_saved; /* For PCI or other memory-mapped resources */ -- 1.6.4.2