From b328f5fd342abd9229e130313a13e1f62b4b09d9 Mon Sep 17 00:00:00 2001
From: shadow <shadow>
Date: Tue, 6 May 2008 18:16:09 +0000
Subject: [PATCH] compile with -m64 flag produce wrong object file for ppc32.
 b=15278 i=johann i=deen

---
 lustre/ChangeLog               | 5 +++++
 lustre/autoconf/lustre-core.m4 | 3 +--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/lustre/ChangeLog b/lustre/ChangeLog
index 97c7d5f91b..0967934c99 100644
--- a/lustre/ChangeLog
+++ b/lustre/ChangeLog
@@ -25,6 +25,11 @@ tbd Sun Microsystems, Inc.
 	  	'tunefs.lustre --param="mdt.quota_type=ug1" $MDTDEV'.
 	  For more information, please refer to bugzilla 13904.
 
+Severity   : normal
+Bugzilla   : 15278
+Description: fix build on ppc32
+Details    : compile code with -m64 flag produce wrong object file for ppc32.
+
 Severity   : normal
 Bugzilla   : 14803
 Description: Don't update lov_desc members until making sure they are valid
diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4
index 1a8116a5cd..527b8001d4 100644
--- a/lustre/autoconf/lustre-core.m4
+++ b/lustre/autoconf/lustre-core.m4
@@ -1148,8 +1148,7 @@ AC_DEFINE(HAVE___D_MOVE, 1,
 # matter what symbol is exported, the kernel #defines node_to_cpumask
 # to the appropriate function and that's what we use.
 AC_DEFUN([LC_EXPORT_NODE_TO_CPUMASK],
-         [LB_LINUX_ARCH
-          LB_CHECK_SYMBOL_EXPORT([node_to_cpumask],
+         [LB_CHECK_SYMBOL_EXPORT([node_to_cpumask],
                                  [arch/$LINUX_ARCH/mm/numa.c],
                                  [AC_DEFINE(HAVE_NODE_TO_CPUMASK, 1,
                                             [node_to_cpumask is exported by
-- 
GitLab