[PATCH] powerpc/83xx: Fix few build errors with CONFIG_QUICC_ENGINE=n

Kumar Gala galak at kernel.crashing.org
Wed Dec 17 09:57:43 EST 2008


On Dec 16, 2008, at 1:14 PM, Anton Vorontsov wrote:

> On Tue, Dec 16, 2008 at 01:00:13PM -0600, Scott Wood wrote:
>> Anton Vorontsov wrote:
>>>  GCC can still issue the of_find_node_by_name() call. (I wonder if
>>>  there is any way to tell gcc that particular function doesn't
>>>  produce any side-effects so that gcc can optimize it away too).
>>
>> __attribute__((pure))
>
> Ah, thanks!
>
> But I forgot that of_find_node_by_name() and friends aren't
> actually "pure", they're getting the node. :-(

Looking at include/linux/compiler-gcc.h I'm guessing the proper way to  
use it is __pure & inclusion of compiler.h

- k



More information about the Linuxppc-dev mailing list