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

Wolfgang Denk wd at denx.de
Mon Nov 22 13:02:37 CET 2010


Dear Albert ARIBAUD,

In message <4CEA4E1C.2050607 at free.fr> you wrote:
>
> > No, it doesn't. The virt_to_bus() macro already has such a
> > cast internally, but it doesn't work here.
...
> Hmm, then maybe it is not the type that causes the warning, but a 
> qualifier such as 'const' ?

It's the 'volatile' attribute. Hence my name "nv_packet". Using a
non-volatile pointer to compute the virtual address seems to be save.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Research is what I'm doing when I don't know what I'm doing.
                                                 -- Wernher von Braun


More information about the U-Boot mailing list