From: Qing Zhang Date: Tue, 18 Apr 2023 11:38:58 +0000 (+0800) Subject: LoongArch: Fix _CONST64_(x) as unsigned X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6637775ca3c3d0b4f7b83c5ce9a592df2c9bff52;p=users%2Fjedix%2Flinux-maple.git LoongArch: Fix _CONST64_(x) as unsigned Addresses should all be of unsigned type to avoid unnecessary conversions. Signed-off-by: Qing Zhang Signed-off-by: Huacai Chen --- 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