[U-Boot] [PATCH] e1000: fix compile warning

Albert ARIBAUD albert.aribaud at free.fr
Mon Nov 22 10:40:11 CET 2010


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)));

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list