diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-03-13 12:41:41 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-03-19 18:14:25 +0000 |
commit | bd99f9a159b072be743c6681f81e06b9ebd370a4 (patch) | |
tree | 50ee5cd8365d67e14b1c915a49240c7fb6c32b00 /arch/arm64/kernel/reloc_test_syms.S | |
parent | 654c39c7982c5314748eda50352dbc35099a2595 (diff) | |
download | lwn-bd99f9a159b072be743c6681f81e06b9ebd370a4.tar.gz lwn-bd99f9a159b072be743c6681f81e06b9ebd370a4.zip |
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>
Diffstat (limited to 'arch/arm64/kernel/reloc_test_syms.S')
-rw-r--r-- | arch/arm64/kernel/reloc_test_syms.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/kernel/reloc_test_syms.S b/arch/arm64/kernel/reloc_test_syms.S index f333b4b7880d..2b8d9cb8b078 100644 --- a/arch/arm64/kernel/reloc_test_syms.S +++ b/arch/arm64/kernel/reloc_test_syms.S @@ -54,8 +54,8 @@ ENDPROC(relative_adrp) .align 12 .space 0xffc ENTRY(relative_adrp_far) - adrp x0, printk - add x0, x0, #:lo12:printk + adrp x0, memstart_addr + add x0, x0, #:lo12:memstart_addr ret ENDPROC(relative_adrp_far) |