* [U-Boot] [PATCH] microblaze: Fix printf size_t format related warnings (again...)
@ 2014-08-26 10:45 Vasili Galka
2014-09-01 11:41 ` Michal Simek
0 siblings, 1 reply; 2+ messages in thread
From: Vasili Galka @ 2014-08-26 10:45 UTC (permalink / raw)
To: u-boot
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 <vvv444@gmail.com>
Cc: Michal Simek <monstr@monstr.eu>
---
arch/microblaze/include/asm/posix_types.h | 4 ++++
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 38dc5aa..ccc6235 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;
--
1.7.9
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] microblaze: Fix printf size_t format related warnings (again...)
2014-08-26 10:45 [U-Boot] [PATCH] microblaze: Fix printf size_t format related warnings (again...) Vasili Galka
@ 2014-09-01 11:41 ` Michal Simek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2014-09-01 11:41 UTC (permalink / raw)
To: u-boot
On 08/26/2014 12:45 PM, Vasili Galka wrote:
> 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 <vvv444@gmail.com>
> Cc: Michal Simek <monstr@monstr.eu>
> ---
> arch/microblaze/include/asm/posix_types.h | 4 ++++
> 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 38dc5aa..ccc6235 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;
>
Applied with the change that instead of patchwork link
is sha1 to the nios2 commit.
Thanks,
Michal
--
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140901/b73abbbf/attachment.pgp>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-01 11:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-26 10:45 [U-Boot] [PATCH] microblaze: Fix printf size_t format related warnings (again...) Vasili Galka
2014-09-01 11:41 ` Michal Simek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.