xfs
[Top] [All Lists]

[-mm patch] fs/xfs/linux-2.6/xfs_linux.h: #if CONFIG_SMP -> #ifdef CONFI

To: Andrew Morton <akpm@xxxxxxxx>, xfs-masters@xxxxxxxxxxx
Subject: [-mm patch] fs/xfs/linux-2.6/xfs_linux.h: #if CONFIG_SMP -> #ifdef CONFIG_SMP
From: Adrian Bunk <bunk@xxxxxxxxx>
Date: Fri, 10 Feb 2006 13:31:14 +0100
Cc: linux-kernel@xxxxxxxxxxxxxxx, linux-xfs@xxxxxxxxxxx
In-reply-to: <20060207220627.345107c3.akpm@osdl.org>
References: <20060207220627.345107c3.akpm@osdl.org>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.11
On Tue, Feb 07, 2006 at 10:06:27PM -0800, Andrew Morton wrote:
>...
> Changes since 2.6.16-rc1-mm5:
>...
>  git-xfs.patch
>...
>  Git trees
>...

When compiling with gcc 4.0 and CONFIG_SMP unset, there are tons of the 
following warnings:

<--  snip  -->

...
  CC      fs/xfs/quota/xfs_dquot_item.o
In file included from fs/xfs/xfs.h:20,
                 from fs/xfs/quota/xfs_dquot_item.c:18:
fs/xfs/linux-2.6/xfs_linux.h:103:5: warning: "CONFIG_SMP" is not defined
  CC      fs/xfs/quota/xfs_trans_dquot.o
In file included from fs/xfs/xfs.h:20,
                 from fs/xfs/quota/xfs_trans_dquot.c:18:
fs/xfs/linux-2.6/xfs_linux.h:103:5: warning: "CONFIG_SMP" is not defined
  CC      fs/xfs/quota/xfs_qm_syscalls.o
In file included from fs/xfs/xfs.h:20,
                 from fs/xfs/quota/xfs_qm_syscalls.c:21:
fs/xfs/linux-2.6/xfs_linux.h:103:5: warning: "CONFIG_SMP" is not defined
...

<--  snip  -->


Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

--- linux-2.6.16-rc2-mm1-full/fs/xfs/linux-2.6/xfs_linux.h.old  2006-02-10 
12:17:32.000000000 +0100
+++ linux-2.6.16-rc2-mm1-full/fs/xfs/linux-2.6/xfs_linux.h      2006-02-10 
12:18:05.000000000 +0100
@@ -100,7 +100,7 @@
  */
 #undef  HAVE_REFCACHE  /* reference cache not needed for NFS in 2.6 */
 #define HAVE_SENDFILE  /* sendfile(2) exists in 2.6, but not in 2.4 */
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
 #define HAVE_PERCPU_SB /* per cpu superblock counters are a 2.6 feature */
 #else
 #undef  HAVE_PERCPU_SB /* per cpu superblock counters are a 2.6 feature */


<Prev in Thread] Current Thread [Next in Thread>
  • [-mm patch] fs/xfs/linux-2.6/xfs_linux.h: #if CONFIG_SMP -> #ifdef CONFIG_SMP, Adrian Bunk <=