OSDN Git Service

arm64: fix undefined reference to 'printk'
authorArnd Bergmann <arnd@arndb.de>
Tue, 13 Mar 2018 11:41:41 +0000 (12:41 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 19 Mar 2018 18:14:25 +0000 (18:14 +0000)
commitbd99f9a159b072be743c6681f81e06b9ebd370a4
tree50ee5cd8365d67e14b1c915a49240c7fb6c32b00
parent654c39c7982c5314748eda50352dbc35099a2595
arm64: fix undefined reference to 'printk'

The printk symbol was intended as a generic address that is always
exported, however that turned out to be false with CONFIG_PRINTK=n:

ERROR: "printk" [arch/arm64/kernel/arm64-reloc-test.ko] undefined!

This changes the references to memstart_addr, which should be there
regardless of configuration.

Fixes: a257e02579e4 ("arm64/kernel: don't ban ADRP to work around Cortex-A53 erratum #843419")
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/reloc_test_core.c
arch/arm64/kernel/reloc_test_syms.S