Hello, Bryan,
I introduced it since I was observing type warnings when compiling it. I
suppose that it can be pushed upstream, since it is only a warning
suppression and I don't think that it harms in other architectures.
Thanks! Regards,
Javier
Bryan Wu escribió:
> On Wed, Oct 1, 2008 at 10:16 PM, <[EMAIL PROTECTED]> wrote:
>> Revision 5367 Author ea1crb Date 2008-10-01 09:16:27 -0500 (Wed, 01 Oct
>> 2008)
>>
>> Log Message
>>
>> Added typecasting to supress some warnings
>>
>
> Hi Javier,
>
> Need I push this patch to upstream?
>
> Thanks
> -Bryan
>
>> Modified Paths
>>
>> trunk/drivers/net/dm9000.c
>>
>> Diff
>>
>> Modified: trunk/drivers/net/dm9000.c (5366 => 5367)
>>
>> --- trunk/drivers/net/dm9000.c 2008-10-01 14:12:29 UTC (rev 5366)
>> +++ trunk/drivers/net/dm9000.c 2008-10-01 14:16:27 UTC (rev 5367)
>> @@ -199,35 +199,35 @@
>>
>> static void dm9000_outblk_8bit(void __iomem *reg, void *data, int count)
>> {
>> - writesb(reg, data, count);
>> + writesb((int)reg, data, count);
>> }
>>
>> static void dm9000_outblk_16bit(void __iomem *reg, void *data, int count)
>> {
>> - writesw(reg, data, (count+1) >> 1);
>> + writesw((int)reg, data, (count+1) >> 1);
>> }
>>
>> static void dm9000_outblk_32bit(void __iomem *reg, void *data, int count)
>> {
>> - writesl(reg, data, (count+3) >> 2);
>> + writesl((int)reg, data, (count+3) >> 2);
>> }
>>
>> /* input block from chip to memory */
>>
>> static void dm9000_inblk_8bit(void __iomem *reg, void *data, int count)
>> {
>> - readsb(reg, data, count);
>> + readsb((int)reg, data, count);
>> }
>>
>>
>> static void dm9000_inblk_16bit(void __iomem *reg, void *data, int count)
>> {
>> - readsw(reg, data, (count+1) >> 1);
>> + readsw((int)reg, data, (count+1) >> 1);
>> }
>>
>> static void dm9000_inblk_32bit(void __iomem *reg, void *data, int count)
>> {
>> - readsl(reg, data, (count+3) >> 2);
>> + readsl((int)reg, data, (count+3) >> 2);
>> }
>>
>> /* dump block from chip to null */
>>
>> _______________________________________________
>> Linux-kernel-commits mailing list
>> [email protected]
>> http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits
>>
>>
>
>
--
------------------------------------------------------------------------
Javier Herrero EMAIL: [EMAIL PROTECTED]
HV Sistemas S.L. PHONE: +34 949 336 806
Los Charcones, 17A FAX: +34 949 336 792
19170 El Casar - Guadalajara - Spain WEB: http://www.hvsistemas.com
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits