summaryrefslogtreecommitdiff
path: root/arch/riscv/lib
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2018-10-31 09:47:07 +0300
committerPalmer Dabbelt <palmer@sifive.com>2018-11-13 05:09:55 +0300
commit85d90b91807bb0c4a0fcff6a144e73f11cda782a (patch)
tree9a8b240e4fbb600724b68d17fe19660e66c6094c /arch/riscv/lib
parentf157d411a9eb170d2ee6b766da7a381962017cc9 (diff)
downloadlinux-85d90b91807bb0c4a0fcff6a144e73f11cda782a.tar.xz
RISC-V: lib: Fix build error for 64-bit
Fixes the following build error from tinyconfig: riscv64-unknown-linux-gnu-ld: kernel/sched/fair.o: in function `.L8': fair.c:(.text+0x70): undefined reference to `__lshrti3' riscv64-unknown-linux-gnu-ld: kernel/time/clocksource.o: in function `.L0 ': clocksource.c:(.text+0x334): undefined reference to `__lshrti3' Fixes: 7f47c73b355f ("RISC-V: Build tishift only on 64-bit") Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv/lib')
-rw-r--r--arch/riscv/lib/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/lib/Makefile b/arch/riscv/lib/Makefile
index 5739bd05d289..4e2e600f7d53 100644
--- a/arch/riscv/lib/Makefile
+++ b/arch/riscv/lib/Makefile
@@ -3,6 +3,6 @@ lib-y += memcpy.o
lib-y += memset.o
lib-y += uaccess.o
-lib-(CONFIG_64BIT) += tishift.o
+lib-$(CONFIG_64BIT) += tishift.o
lib-$(CONFIG_32BIT) += udivdi3.o