projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cf6248
)
LoongArch: Fix _CONST64_(x) as unsigned
author
Qing Zhang
<zhangqing@loongson.cn>
Tue, 18 Apr 2023 11:38:58 +0000
(19:38 +0800)
committer
Huacai Chen
<chenhuacai@loongson.cn>
Tue, 18 Apr 2023 11:38:58 +0000
(19:38 +0800)
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>
arch/loongarch/include/asm/addrspace.h
patch
|
blob
|
history
diff --git
a/arch/loongarch/include/asm/addrspace.h
b/arch/loongarch/include/asm/addrspace.h
index 8fb699b4d40afb0ac7ccdeaf30a41e9783e30d26..5c9c03bdf91569154b9a449019e29b46049d5bef 100644
(file)
--- 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 ##
U
L
#else
-#define _CONST64_(x) x ## LL
+#define _CONST64_(x) x ##
U
LL
#endif
#endif