Skip to content

Commit b160544

Browse files
mikeypaulusmack
authored andcommitted
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>
1 parent 2a4b9c5 commit b160544

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎arch/powerpc/kernel/setup_64.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,9 @@ void __init setup_system(void)
444444
if (htab_address)
445445
printk("htab_address = 0x%p\n", htab_address);
446446
printk("htab_hash_mask = 0x%lx\n", htab_hash_mask);
447-
#if PHYSICAL_START > 0
448-
printk("physical_start = 0x%lx\n", PHYSICAL_START);
449-
#endif
447+
if (PHYSICAL_START > 0)
448+
printk("physical_start = 0x%lx\n",
449+
PHYSICAL_START);
450450
printk("-----------------------------------------------------\n");
451451

452452
DBG(" <- setup_system()\n");

0 commit comments

Comments
 (0)