diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2009-06-10 15:05:00 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-06-14 23:26:21 -0400 |
commit | e468455e5845f83950d1271a6cd0425b9c7290ab (patch) | |
tree | 804bcfa1408b81bd8da07197c07bd6ba611ede59 /arch | |
parent | c204ff65590837e6a9c50ca549497b4682682ec6 (diff) |
powerpc: Fix warning in setup_64.c when CONFIG_RELOCATABLE=y
When CONFIG_RELOCATABLE is enabled, PHYSICAL_START is actually a
variable of type phys_addr_t. That means to print it we need to
cast to unsigned long long and use llx.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/setup_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index f46548e66045..1f6816003ebe 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c | |||
@@ -424,8 +424,8 @@ void __init setup_system(void) | |||
424 | printk("htab_hash_mask = 0x%lx\n", htab_hash_mask); | 424 | printk("htab_hash_mask = 0x%lx\n", htab_hash_mask); |
425 | #endif /* CONFIG_PPC_STD_MMU_64 */ | 425 | #endif /* CONFIG_PPC_STD_MMU_64 */ |
426 | if (PHYSICAL_START > 0) | 426 | if (PHYSICAL_START > 0) |
427 | printk("physical_start = 0x%lx\n", | 427 | printk("physical_start = 0x%llx\n", |
428 | PHYSICAL_START); | 428 | (unsigned long long)PHYSICAL_START); |
429 | printk("-----------------------------------------------------\n"); | 429 | printk("-----------------------------------------------------\n"); |
430 | 430 | ||
431 | DBG(" <- setup_system()\n"); | 431 | DBG(" <- setup_system()\n"); |