Skip to content

Commit 3563b47

Browse files
andy-shevchenhuacai
authored andcommitted
LoongArch: Use _UL() and _ULL()
Use _UL() and _ULL() that are provided by const.h. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent c718a0b commit 3563b47

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

arch/loongarch/include/asm/addrspace.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
#ifndef __ASSEMBLY__
2121
#ifndef PHYS_OFFSET
22-
#define PHYS_OFFSET _AC(0, UL)
22+
#define PHYS_OFFSET _UL(0)
2323
#endif
2424
extern unsigned long vm_map_base;
2525
#endif /* __ASSEMBLY__ */
@@ -43,7 +43,7 @@ extern unsigned long vm_map_base;
4343
* Memory above this physical address will be considered highmem.
4444
*/
4545
#ifndef HIGHMEM_START
46-
#define HIGHMEM_START (_AC(1, UL) << _AC(DMW_PABITS, UL))
46+
#define HIGHMEM_START (_UL(1) << _UL(DMW_PABITS))
4747
#endif
4848

4949
#define TO_PHYS(x) ( ((x) & TO_PHYS_MASK))
@@ -65,16 +65,16 @@ extern unsigned long vm_map_base;
6565
#define _ATYPE_
6666
#define _ATYPE32_
6767
#define _ATYPE64_
68-
#define _CONST64_(x) x
6968
#else
7069
#define _ATYPE_ __PTRDIFF_TYPE__
7170
#define _ATYPE32_ int
7271
#define _ATYPE64_ __s64
72+
#endif
73+
7374
#ifdef CONFIG_64BIT
74-
#define _CONST64_(x) x ## UL
75+
#define _CONST64_(x) _UL(x)
7576
#else
76-
#define _CONST64_(x) x ## ULL
77-
#endif
77+
#define _CONST64_(x) _ULL(x)
7878
#endif
7979

8080
/*

0 commit comments

Comments
 (0)