Re: [PATCH 1/2] hexagon: fix return type of ffs()

2013-08-14 Thread Richard Kuo
On 08/07/2013 08:42 AM, Akinobu Mita wrote: The return type of ffs() is 'int' on all architectures except cris and hexagon. This unifies the return type to 'int'. The problem I'm seeing is that the following line generates a warning on cris and hexagon because of the mismatch between format

Re: [PATCH 1/2] hexagon: fix return type of ffs()

2013-08-14 Thread Richard Kuo
On 08/07/2013 08:42 AM, Akinobu Mita wrote: The return type of ffs() is 'int' on all architectures except cris and hexagon. This unifies the return type to 'int'. The problem I'm seeing is that the following line generates a warning on cris and hexagon because of the mismatch between format

[PATCH 1/2] hexagon: fix return type of ffs()

2013-08-07 Thread Akinobu Mita
The return type of ffs() is 'int' on all architectures except cris and hexagon. This unifies the return type to 'int'. The problem I'm seeing is that the following line generates a warning on cris and hexagon because of the mismatch between format '%u' and return type of ffs().

[PATCH 1/2] hexagon: fix return type of ffs()

2013-08-07 Thread Akinobu Mita
The return type of ffs() is 'int' on all architectures except cris and hexagon. This unifies the return type to 'int'. The problem I'm seeing is that the following line generates a warning on cris and hexagon because of the mismatch between format '%u' and return type of ffs().