RE: Build regressions/improvements in v3.0-rc5 (ssize_t ???)

Mikael Starvik
2011-07-01T05:25:32Z

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 1410 bytes --]

Also note that sizeof(long) == sizeof(int) for cris.

-----Original Message-----
From: Andreas Schwab [mailto:schwab@linux-m68k.org]
Sent: den 30 juni 2011 19:07
To: Geert Uytterhoeven
Cc: Christoph Hellwig; Randy Dunlap; Linux Kernel Development; Mikael Starvik; Jesper Nilsson; linux-cris-kernel
Subject: Re: Build regressions/improvements in v3.0-rc5 (ssize_t ???)

Geert Uytterhoeven <geert@linux-m68k.org> writes:

> On Thu, Jun 30, 2011 at 10:01, Christoph Hellwig <hch@infradead.org> wrote:
>> On Thu, Jun 30, 2011 at 08:59:28AM +0200, Geert Uytterhoeven wrote:
>>> Nope. Also only happens on cris, which has in
>>> arch/cris/include/asm/posix_types.h:
>>>
>>> typedef long Â  Â  Â  Â  Â  Â __kernel_ssize_t;
>>>
>>> The "long" should be "int".
>>> But probably it should just include <asm-generic/posix_types.h> instead.
>>
>> Changing a user visible type won't be very nice for those using it in
>> C++ code.
>
> Are __kernel_* types exported to C++ userspace?

Currently, no exported kernel header is using __kernel_ssize_t, so it
may not be too late to change cris.

Andreas.

--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éÝ¶\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dÊ‡Ú™ë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥