Patchwork [U-Boot] nios2: use long for ssize_t

login
register
mail settings
Submitter Thomas Chou
Date Dec. 27, 2010, 2:45 a.m.
Message ID <1293417934-8214-1-git-send-email-thomas@wytron.com.tw>
Download mbox | patch
Permalink /patch/76730/
State Accepted
Commit 85debefaf2d3d0dea800fa84bfe0e9823bc03d89
Delegated to: Scott McNutt
Headers show

Comments

Thomas Chou - Dec. 27, 2010, 2:45 a.m.
This is consistent with nios2-linux. And resolved the warning,

cmd_nvedit.c: In function `do_env_export':
cmd_nvedit.c:660: warning: size_t format, ssize_t arg (arg 3)

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
---
 arch/nios2/include/asm/posix_types.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Scott McNutt - Jan. 18, 2011, 5:18 p.m.
Added to: git://git.denx.de/u-boot-nios.git 'next'

Thank you,
--Scott



Thomas Chou wrote:
> This is consistent with nios2-linux. And resolved the warning,
> 
> cmd_nvedit.c: In function `do_env_export':
> cmd_nvedit.c:660: warning: size_t format, ssize_t arg (arg 3)
> 
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
>  arch/nios2/include/asm/posix_types.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/nios2/include/asm/posix_types.h b/arch/nios2/include/asm/posix_types.h
> index c2deea6..6733640 100644
> --- a/arch/nios2/include/asm/posix_types.h
> +++ b/arch/nios2/include/asm/posix_types.h
> @@ -17,7 +17,7 @@ typedef unsigned short	__kernel_ipc_pid_t;
>  typedef unsigned short	__kernel_uid_t;
>  typedef unsigned short	__kernel_gid_t;
>  typedef unsigned long	__kernel_size_t;
> -typedef int		__kernel_ssize_t;
> +typedef long		__kernel_ssize_t;
>  typedef int		__kernel_ptrdiff_t;
>  typedef long		__kernel_time_t;
>  typedef long		__kernel_suseconds_t;

Patch

diff --git a/arch/nios2/include/asm/posix_types.h b/arch/nios2/include/asm/posix_types.h
index c2deea6..6733640 100644
--- a/arch/nios2/include/asm/posix_types.h
+++ b/arch/nios2/include/asm/posix_types.h
@@ -17,7 +17,7 @@  typedef unsigned short	__kernel_ipc_pid_t;
 typedef unsigned short	__kernel_uid_t;
 typedef unsigned short	__kernel_gid_t;
 typedef unsigned long	__kernel_size_t;
-typedef int		__kernel_ssize_t;
+typedef long		__kernel_ssize_t;
 typedef int		__kernel_ptrdiff_t;
 typedef long		__kernel_time_t;
 typedef long		__kernel_suseconds_t;