[PATCH 2.6.25.9] Make sure that include/asm-powerpc/spinlock.h does not trigger compilation warnings

Kumar Gala galak at kernel.crashing.org
Sun Jun 29 01:07:26 EST 2008


On Jun 28, 2008, at 1:51 AM, Bart Van Assche wrote:

> When compiling kernel modules for ppc that include <linux/ 
> spinlock.h>, gcc
> prints a warning message every time it encounters a function  
> declaration where
> the inline keyword appears after the return type. The patch below  
> makes sure
> that the order of the inline keyword and the return type is as gcc  
> expects it.
> Additionally, the __inline__ keyword is replaced by inline, as  
> checkpatch
> expects.
>
> Signed-off-by: Bart Van Assche <bart.vanassche at gmail.com>

what version of gcc and what config are you building for?

- k



More information about the Linuxppc-dev mailing list