summaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
authorVasili Galka <vvv444@gmail.com>2014-08-26 13:45:34 +0300
committerMichal Simek <michal.simek@xilinx.com>2014-09-09 09:58:36 +0200
commitc6fcb603a2b92978a9cc0ecd654091eaddfeefd3 (patch)
tree42433c247e95f00312be54895a3efa582ffa1dc2 /arch/microblaze
parent0b703dbcee7103f07804d0a4328d1593355c4324 (diff)
downloadtalos-obmc-uboot-c6fcb603a2b92978a9cc0ecd654091eaddfeefd3.tar.gz
talos-obmc-uboot-c6fcb603a2b92978a9cc0ecd654091eaddfeefd3.zip
microblaze: 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: "nios2: Fix printf size_t format related warnings (again...)" (sha1: 00a2517fcb5159ed016b25130184638b1dbf2f02) Signed-off-by: Vasili Galka <vvv444@gmail.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/include/asm/posix_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/posix_types.h b/arch/microblaze/include/asm/posix_types.h
index 38dc5aa85d..ccc6235c8d 100644
--- a/arch/microblaze/include/asm/posix_types.h
+++ b/arch/microblaze/include/asm/posix_types.h
@@ -27,7 +27,11 @@ typedef int __kernel_pid_t;
typedef unsigned short __kernel_ipc_pid_t;
typedef unsigned int __kernel_uid_t;
typedef unsigned int __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;
OpenPOWER on IntegriCloud