From: Christoph Lameter <clameter@sgi.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: travis@sgi.com, linux-kernel@vger.kernel.org
Cc: Adrian Bunk <bunk@kernel.org>
Subject: [patch 3/4] x86: e820 unification: Common #ifdef __ASSEMBLY
Date: Tue, 06 May 2008 12:33:55 -0700 [thread overview]
Message-ID: <20080506193402.831140371@sgi.com> (raw)
In-Reply-To: 20080506193352.225379637@sgi.com
[-- Attachment #1: e820_1 --]
[-- Type: text/plain, Size: 1415 bytes --]
Both include files use #ifdef __ASSEMBLY__ which can be moved outside
of the #ifdef CONFIG_X86_32.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
---
include/asm-x86/e820.h | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
Index: linux-2.6/include/asm-x86/e820.h
===================================================================
--- linux-2.6.orig/include/asm-x86/e820.h 2008-05-06 11:48:09.000000000 -0700
+++ linux-2.6/include/asm-x86/e820.h 2008-05-06 11:50:53.000000000 -0700
@@ -42,11 +42,11 @@ struct e820map {
*/
#include <linux/ioport.h>
+#ifndef __ASSEMBLY__
+
#ifdef CONFIG_X86_32
#define HIGH_MEMORY (1024*1024)
-#ifndef __ASSEMBLY__
-
extern void setup_memory_map(void);
extern void finish_e820_parsing(void);
@@ -77,10 +77,7 @@ static inline void e820_mark_nosave_regi
}
#endif
-
-#endif/*!__ASSEMBLY__*/
#else /* X86_32 */
-#ifndef __ASSEMBLY__
extern unsigned long find_e820_area(unsigned long start, unsigned long end,
unsigned long size, unsigned long align);
extern unsigned long find_e820_area_size(unsigned long start,
@@ -118,9 +115,8 @@ extern void reserve_early(unsigned long
extern void free_early(unsigned long start, unsigned long end);
extern void early_res_to_bootmem(unsigned long start, unsigned long end);
+#endif /* X86_32 */
#endif/*!__ASSEMBLY__*/
-
-#endif
#endif /* __KERNEL__ */
#endif /* __ASM_E820_H */
--
next prev parent reply other threads:[~2008-05-06 19:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-06 19:33 [patch 0/4] [PATCH] x86: Merge e820_32/64 V2 Christoph Lameter
2008-05-06 19:33 ` [patch 1/4] x86: e820.h unification Christoph Lameter
2008-05-06 19:33 ` [patch 2/4] x86: e820 unification: Extract shared comments Christoph Lameter
2008-05-06 19:33 ` Christoph Lameter [this message]
2008-05-06 19:33 ` [patch 4/4] x86: e820 unification: Extract common functions Christoph Lameter
-- strict thread matches above, loose matches on Subject: below --
2008-05-05 19:02 [patch 0/4] [PATCH] x86: Merge e820_32/64 Christoph Lameter
2008-05-05 19:02 ` [patch 3/4] x86: e820 unification: Common #ifdef __ASSEMBLY Christoph Lameter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080506193402.831140371@sgi.com \
--to=clameter@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=travis@sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.