[PATCH] suppress 'store_purr' unused warning

Dave Hansen haveblue at us.ibm.com
Thu Aug 5 09:13:40 EST 2004


On Wed, 2004-08-04 at 15:58, Anton Blanchard wrote:
> Hi,
>
> > Some new sysfs macros declare a store_purr() function that never gets
> > used, which makes a compiler warning happen.  Suppress the warning with
> > an unused attribute.
>
> Looks good to me, but could you use the __attribute_used__ compiler.h
> macro to guard against the ever changing gcc mind?

Updated patch attached.

-- Dave
-------------- next part --------------
A non-text attachment was scrubbed...
Name: A3-ppc64-store_purr_unused.patch
Type: text/x-patch
Size: 1050 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20040804/5a5735d5/attachment.bin 


More information about the Linuxppc64-dev mailing list