From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by ozlabs.org (Postfix) with ESMTP id 8B654DDF00 for ; Sun, 29 Jun 2008 01:19:27 +1000 (EST) Received: by fg-out-1718.google.com with SMTP id d23so451022fga.39 for ; Sat, 28 Jun 2008 08:19:24 -0700 (PDT) Message-ID: Date: Sat, 28 Jun 2008 17:19:24 +0200 From: "Bart Van Assche" To: "Kumar Gala" Subject: Re: [PATCH 2.6.25.9] Make sure that include/asm-powerpc/spinlock.h does not trigger compilation warnings In-Reply-To: <08A80326-6E58-43BC-9AB1-3136A0285A84@kernel.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <200806280851.35417.bart.vanassche@gmail.com> <08A80326-6E58-43BC-9AB1-3136A0285A84@kernel.crashing.org> Cc: linuxppc-dev@ozlabs.org, Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sat, Jun 28, 2008 at 5:07 PM, Kumar Gala wrote: > > On Jun 28, 2008, at 1:51 AM, Bart Van Assche wrote: > >> When compiling kernel modules for ppc that include , 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 > > 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.