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

From: Adrian Bunk
Date: Fri Feb 10 2006 - 07:29:13 EST


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 */

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/