On Sat, Jun 28, 2008 at 5:07 PM, Kumar Gala <[EMAIL PROTECTED]> wrote: > > 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 <[EMAIL PROTECTED]> > > what version of gcc and what config are you building for?
The gcc details are as follows (openSUSE 10.3 PPC running on a PS3): $ gcc -v Using built-in specs. Target: powerpc64-suse-linux Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.2.1 --enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --program-suffix=-4.2 --enable-version-specific-runtime-libs --without-system-libunwind --with-cpu=default32 --enable-secureplt --with-long-double-128 --host=powerpc64-suse-linux Thread model: posix gcc version 4.2.1 (SUSE Linux) Bart. _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev