[U-Boot] [PATCH 2/2] RFC: Let linker create phy array

Albert ARIBAUD albert.u.boot at aribaud.net
Mon Feb 6 22:01:56 CET 2012


Le 06/02/2012 21:57, Mike Frysinger a écrit :

>> The would give me compiler warnings for unused variables. How does that
>> help?
>
> does gcc issue warnings ?  doesn't seem to do so for me.

Some do, and some will.

>> Is there a keep attribute like the linker has for sections?
>
> yes, __attribute__((used))

What is the point in adding a 'static' qualifier and a ((used)) 
attribute, when not adding them in the first place gives the same result?

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list