int-ll64.h: define u{8,16,32,64} and s{8,16,32,64} based on uapi header
authorMasahiro Yamada <[email protected]>
Fri, 8 Jun 2018 00:10:24 +0000 (17:10 -0700)
committerLinus Torvalds <[email protected]>
Fri, 8 Jun 2018 00:34:38 +0000 (17:34 -0700)
<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/[email protected]
Signed-off-by: Masahiro Yamada <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Cc: Lihao Liang <[email protected]>
Cc: Philippe Ombredanne <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/asm-generic/int-ll64.h

index ffb68d67be5f9b8911394e816a13972158c27240..a248545f1e18ca3919a3971fa2df23ec09194807 100644 (file)
 
 #ifndef __ASSEMBLY__
 
-typedef signed char s8;
-typedef unsigned char u8;
-
-typedef signed short s16;
-typedef unsigned short u16;
-
-typedef signed int s32;
-typedef unsigned int u32;
-
-typedef signed long long s64;
-typedef unsigned long long u64;
+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