Re: [U-Boot] [PATCH] nios2: change size_t to fix format warning for gcc 4.7.3

2013-09-05 Thread Thomas Chou
I have checked with Altera. This is a toolchain change. We will keep this and follow mostly the types in linux-2.6/include/uapi/asm-generic/posix_types.h . - Thomas ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH] nios2: change size_t to fix format warning for gcc 4.7.3

2013-09-05 Thread Tom Rini
On Thu, Sep 05, 2013 at 08:55:09PM +0800, Thomas Chou wrote: I have checked with Altera. This is a toolchain change. We will keep this and follow mostly the types in linux-2.6/include/uapi/asm-generic/posix_types.h . For clarity, this patch should be... Thanks! -- Tom signature.asc

[U-Boot] [PATCH] nios2: change size_t to fix format warning for gcc 4.7.3

2013-09-02 Thread Thomas Chou
The gcc-4.7.3 in lastest nios2 toolchain generated lots of warning on type mismatch. So change typedef of size_t to unsigned int, followed those of arm and mips arch. spi_flash.c: In function 'spi_flash_read_write': spi_flash.c:42:3: warning: format '%zu' expects argument of type 'size_t', but

Re: [U-Boot] [PATCH] nios2: change size_t to fix format warning for gcc 4.7.3

2013-09-02 Thread Thomas Chou
Hi Mike, On 09/03/2013 10:38 AM, Thomas Chou wrote: The gcc-4.7.3 in lastest nios2 toolchain generated lots of warning on type mismatch. So change typedef of size_t to unsigned int, followed those of arm and mips arch. spi_flash.c: In function 'spi_flash_read_write': spi_flash.c:42:3: warning: