mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:46:16 +00:00
6d8e410807
<uapi/asm-generic/int-ll64.h> has the same typedefs except that it prefixes them with double-underscore for user space. Use them for the kernel space typedefs. Link: http://lkml.kernel.org/r/1526350925-14922-1-git-send-email-yamada.masahiro@socionext.com Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Alexey Dobriyan <adobriyan@gmail.com> Cc: Lihao Liang <lianglihao@huawei.com> Cc: Philippe Ombredanne <pombredanne@nexb.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
48 lines
863 B
C
48 lines
863 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* asm-generic/int-ll64.h
|
|
*
|
|
* Integer declarations for architectures which use "long long"
|
|
* for 64-bit types.
|
|
*/
|
|
#ifndef _ASM_GENERIC_INT_LL64_H
|
|
#define _ASM_GENERIC_INT_LL64_H
|
|
|
|
#include <uapi/asm-generic/int-ll64.h>
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
typedef __s8 s8;
|
|
typedef __u8 u8;
|
|
typedef __s16 s16;
|
|
typedef __u16 u16;
|
|
typedef __s32 s32;
|
|
typedef __u32 u32;
|
|
typedef __s64 s64;
|
|
typedef __u64 u64;
|
|
|
|
#define S8_C(x) x
|
|
#define U8_C(x) x ## U
|
|
#define S16_C(x) x
|
|
#define U16_C(x) x ## U
|
|
#define S32_C(x) x
|
|
#define U32_C(x) x ## U
|
|
#define S64_C(x) x ## LL
|
|
#define U64_C(x) x ## ULL
|
|
|
|
#else /* __ASSEMBLY__ */
|
|
|
|
#define S8_C(x) x
|
|
#define U8_C(x) x
|
|
#define S16_C(x) x
|
|
#define U16_C(x) x
|
|
#define S32_C(x) x
|
|
#define U32_C(x) x
|
|
#define S64_C(x) x
|
|
#define U64_C(x) x
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif /* _ASM_GENERIC_INT_LL64_H */
|