[U-Boot] [PATCH] e1000: fix compile warning
Albert ARIBAUD
albert.aribaud at free.fr
Mon Nov 22 12:03:56 CET 2010
Le 22/11/2010 11:07, Wolfgang Denk a écrit :
> Dear Albert ARIBAUD,
>
> In message<4CEA3A7B.1070602 at free.fr> you wrote:
>> Le 22/11/2010 09:48, Wolfgang Denk a écrit :
>>
>>> - txp->buffer_addr = cpu_to_le64(virt_to_bus(hw->pdev, packet));
>>> + txp->buffer_addr = cpu_to_le64(virt_to_bus(hw->pdev, nv_packet));
>>
>> Wouldn't type-casting packet right here work? e.g.:
>>
>> txp->buffer_addr = cpu_to_le64(virt_to_bus(hw->pdev, ((void*)packet)));
>
> No, it doesn't. The virt_to_bus() macro already has such a
> cast internally, but it doesn't work here.
>
> Best regards,
>
> Wolfgang Denk
Hmm, then maybe it is not the type that causes the warning, but a
qualifier such as 'const' ?
Amicalement,
--
Albert.
More information about the U-Boot
mailing list