Skip to content

Commit 6637775

Browse files
zhangqingmychenhuacai
authored andcommitted
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>
1 parent 1cf6248 commit 6637775

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/loongarch/include/asm/addrspace.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ extern unsigned long vm_map_base;
7171
#define _ATYPE32_ int
7272
#define _ATYPE64_ __s64
7373
#ifdef CONFIG_64BIT
74-
#define _CONST64_(x) x ## L
74+
#define _CONST64_(x) x ## UL
7575
#else
76-
#define _CONST64_(x) x ## LL
76+
#define _CONST64_(x) x ## ULL
7777
#endif
7878
#endif
7979

0 commit comments

Comments
 (0)