summaryrefslogtreecommitdiffstats
path: root/arch/riscv
diff options
context:
space:
mode:
authorZong Li <zongbox@gmail.com>2018-10-02 10:52:27 +0200
committerPalmer Dabbelt <palmer@sifive.com>2018-10-23 02:02:55 +0200
commit7f47c73b355f300cf162f3a664e43d557d2cb30d (patch)
tree2879e1b90b1020c7fa67f4857cd92972f7925349 /arch/riscv
parentLinux 4.19 (diff)
downloadlinux-7f47c73b355f300cf162f3a664e43d557d2cb30d.tar.xz
linux-7f47c73b355f300cf162f3a664e43d557d2cb30d.zip
RISC-V: Build tishift only on 64-bit
Only RV64 supports 128 integer size. Signed-off-by: Zong Li <zong@andestech.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r--arch/riscv/lib/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/riscv/lib/Makefile b/arch/riscv/lib/Makefile
index 445ec84f9a47..5739bd05d289 100644
--- a/arch/riscv/lib/Makefile
+++ b/arch/riscv/lib/Makefile
@@ -2,6 +2,7 @@ lib-y += delay.o
lib-y += memcpy.o
lib-y += memset.o
lib-y += uaccess.o
-lib-y += tishift.o
+
+lib-(CONFIG_64BIT) += tishift.o
lib-$(CONFIG_32BIT) += udivdi3.o