summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorQing Zhang <zhangqing@loongson.cn>2023-04-18 13:38:58 +0200
committerHuacai Chen <chenhuacai@loongson.cn>2023-04-18 13:38:58 +0200
commit6637775ca3c3d0b4f7b83c5ce9a592df2c9bff52 (patch)
treefdbb78576928f616cde3c4fc8377538e133bb1be /arch
parentLoongArch: Fix build error if CONFIG_SUSPEND is not set (diff)
downloadlinux-6637775ca3c3d0b4f7b83c5ce9a592df2c9bff52.tar.xz
linux-6637775ca3c3d0b4f7b83c5ce9a592df2c9bff52.zip
LoongArch: Fix _CONST64_(x) as unsigned
Addresses should all be of unsigned type to avoid unnecessary conversions. Signed-off-by: Qing Zhang <zhangqing@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch')
-rw-r--r--arch/loongarch/include/asm/addrspace.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/loongarch/include/asm/addrspace.h b/arch/loongarch/include/asm/addrspace.h
index 8fb699b4d40a..5c9c03bdf915 100644
--- a/arch/loongarch/include/asm/addrspace.h
+++ b/arch/loongarch/include/asm/addrspace.h
@@ -71,9 +71,9 @@ extern unsigned long vm_map_base;
#define _ATYPE32_ int
#define _ATYPE64_ __s64
#ifdef CONFIG_64BIT
-#define _CONST64_(x) x ## L
+#define _CONST64_(x) x ## UL
#else
-#define _CONST64_(x) x ## LL
+#define _CONST64_(x) x ## ULL
#endif
#endif