Re: [PATCH -resend] cris: Use "int" for ssize_t to match size_t

2012-12-06 Thread Jesper Nilsson
On Tue, Dec 04, 2012 at 11:39:56AM +0100, Geert Uytterhoeven wrote: > On cris-linux-gcc, __SIZE_TYPE__ expands to "unsigned int", as > gcc-4.6.3-nolibc/cris-linux/lib/gcc/cris-linux/4.6.3/plugin/include/config/cris/linux.h > has > > #define SIZE_TYPE "unsigned int" > > Hence __kernel_size_t

Re: [PATCH -resend] cris: Use int for ssize_t to match size_t

2012-12-06 Thread Jesper Nilsson
On Tue, Dec 04, 2012 at 11:39:56AM +0100, Geert Uytterhoeven wrote: On cris-linux-gcc, __SIZE_TYPE__ expands to unsigned int, as gcc-4.6.3-nolibc/cris-linux/lib/gcc/cris-linux/4.6.3/plugin/include/config/cris/linux.h has #define SIZE_TYPE unsigned int Hence __kernel_size_t is also

[PATCH -resend] cris: Use "int" for ssize_t to match size_t

2012-12-04 Thread Geert Uytterhoeven
On cris-linux-gcc, __SIZE_TYPE__ expands to "unsigned int", as gcc-4.6.3-nolibc/cris-linux/lib/gcc/cris-linux/4.6.3/plugin/include/config/cris/linux.h has #define SIZE_TYPE "unsigned int" Hence __kernel_size_t is also "unsigned int". But __kernel_ssize_t is "long", which has a different

[PATCH -resend] cris: Use int for ssize_t to match size_t

2012-12-04 Thread Geert Uytterhoeven
On cris-linux-gcc, __SIZE_TYPE__ expands to unsigned int, as gcc-4.6.3-nolibc/cris-linux/lib/gcc/cris-linux/4.6.3/plugin/include/config/cris/linux.h has #define SIZE_TYPE unsigned int Hence __kernel_size_t is also unsigned int. But __kernel_ssize_t is long, which has a different base type,