diff options
author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2023-04-19 07:07:34 +0300 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2023-04-19 07:07:34 +0300 |
commit | b5533e990dd1de5872a34cba2f4f7f508c9b2ec3 (patch) | |
tree | b059e3cf003d714f92ff16c0ea3fc3a94bfa17f5 /tools/arch | |
parent | 213ef669d1e536e57cdff8ddc2d3b9347b98e35f (diff) | |
download | linux-b5533e990dd1de5872a34cba2f4f7f508c9b2ec3.tar.xz |
tools/loongarch: Use __SIZEOF_LONG__ to define __BITS_PER_LONG
Although __SIZEOF_POINTER__ is equal to _SIZEOF_LONG__ on LoongArch,
it is better to use __SIZEOF_LONG__ to define __BITS_PER_LONG to keep
consistent between arch/loongarch/include/uapi/asm/bitsperlong.h and
tools/arch/loongarch/include/uapi/asm/bitsperlong.h.
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'tools/arch')
-rw-r--r-- | tools/arch/loongarch/include/uapi/asm/bitsperlong.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/arch/loongarch/include/uapi/asm/bitsperlong.h b/tools/arch/loongarch/include/uapi/asm/bitsperlong.h index d4e32b3d4843..00b4ba1e5cdf 100644 --- a/tools/arch/loongarch/include/uapi/asm/bitsperlong.h +++ b/tools/arch/loongarch/include/uapi/asm/bitsperlong.h @@ -2,7 +2,7 @@ #ifndef __ASM_LOONGARCH_BITSPERLONG_H #define __ASM_LOONGARCH_BITSPERLONG_H -#define __BITS_PER_LONG (__SIZEOF_POINTER__ * 8) +#define __BITS_PER_LONG (__SIZEOF_LONG__ * 8) #include <asm-generic/bitsperlong.h> |