diff options
author | Michael Neuling <mikey@neuling.org> | 2008-10-22 21:39:49 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-10-31 06:11:54 +0100 |
commit | b160544cccb403310cf38ddb3ebc156ea454848a (patch) | |
tree | bf05e54dc522ce02ad48ec41e5c0c636cdc24141 /arch/powerpc/kernel | |
parent | powerpc: Work around ld bug in older binutils (diff) | |
download | linux-b160544cccb403310cf38ddb3ebc156ea454848a.tar.xz linux-b160544cccb403310cf38ddb3ebc156ea454848a.zip |
powerpc: Fix compiler warning for the relocatable kernel
Fixes this warning:
arch/powerpc/kernel/setup_64.c:447:5: warning: "kernstart_addr" is not defined
which arises because PHYSICAL_START is no longer a constant when
CONFIG_RELOCATABLE=y.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/setup_64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index 843c0af210d0..169d74cef157 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c @@ -444,9 +444,9 @@ void __init setup_system(void) if (htab_address) printk("htab_address = 0x%p\n", htab_address); printk("htab_hash_mask = 0x%lx\n", htab_hash_mask); -#if PHYSICAL_START > 0 - printk("physical_start = 0x%lx\n", PHYSICAL_START); -#endif + if (PHYSICAL_START > 0) + printk("physical_start = 0x%lx\n", + PHYSICAL_START); printk("-----------------------------------------------------\n"); DBG(" <- setup_system()\n"); |