summaryrefslogtreecommitdiff
path: root/arch/loongarch/include/uapi/asm/bitsperlong.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/loongarch/include/uapi/asm/bitsperlong.h')
-rw-r--r--arch/loongarch/include/uapi/asm/bitsperlong.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/loongarch/include/uapi/asm/bitsperlong.h b/arch/loongarch/include/uapi/asm/bitsperlong.h
new file mode 100644
index 000000000000..00b4ba1e5cdf
--- /dev/null
+++ b/arch/loongarch/include/uapi/asm/bitsperlong.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+#ifndef __ASM_LOONGARCH_BITSPERLONG_H
+#define __ASM_LOONGARCH_BITSPERLONG_H
+
+#define __BITS_PER_LONG (__SIZEOF_LONG__ * 8)
+
+#include <asm-generic/bitsperlong.h>
+
+#endif /* __ASM_LOONGARCH_BITSPERLONG_H */