summaryrefslogtreecommitdiff
path: root/arch/arc/include
diff options
context:
space:
mode:
authorVasili Galka <[email protected]>2014-08-26 13:44:22 +0300
committerAlexey Brodkin <[email protected]>2014-08-26 17:41:58 +0400
commit94bcd6b0ac110dfc4bac6ba355bcbab138360c32 (patch)
treefeb7e0014ad9e8dccced43428924587244ef28b1 /arch/arc/include
parent7bee1c91a94db19bd26f92cc67be35d3592c6429 (diff)
arc: Fix printf size_t format related warnings (again...)
The basic idea: Define size_t using the __SIZE_TYPE__ compiler-defined type. For detailed explanation see similar patch for the nios2 arch: http://patchwork.ozlabs.org/patch/379938/ Signed-off-by: Vasili Galka <[email protected]> Cc: Alexey Brodkin <[email protected]>
Diffstat (limited to 'arch/arc/include')
-rw-r--r--arch/arc/include/asm/posix_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arc/include/asm/posix_types.h b/arch/arc/include/asm/posix_types.h
index 20415f07056..51347a48d4c 100644
--- a/arch/arc/include/asm/posix_types.h
+++ b/arch/arc/include/asm/posix_types.h
@@ -16,7 +16,11 @@ typedef int __kernel_pid_t;
typedef unsigned short __kernel_ipc_pid_t;
typedef unsigned short __kernel_uid_t;
typedef unsigned short __kernel_gid_t;
+#ifdef __GNUC__
+typedef __SIZE_TYPE__ __kernel_size_t;
+#else
typedef unsigned int __kernel_size_t;
+#endif
typedef int __kernel_ssize_t;
typedef int __kernel_ptrdiff_t;
typedef long __kernel_time_t;