From linux-kernel-owner+willy=40w.ods.org@vger.kernel.org  Tue Mar 23 23:23:45 2004
Return-Path: <linux-kernel-owner+willy=40w.ods.org@vger.kernel.org>
Received: from willy.net1.nerim.net (vax [10.2.1.2])
	by alpha.home.local (8.12.4/8.12.1) with ESMTP id i2NMNit3009311
	for <willy@w.ods.org>; Tue, 23 Mar 2004 23:23:44 +0100
Received: from vger.kernel.org (vger.kernel.org [67.72.78.212])
	by willy.net1.nerim.net (8.12.9/8.12.1) with ESMTP id i2NMNg5g023227
	for <willy@w.ods.org>; Tue, 23 Mar 2004 23:23:43 +0100 (CET)
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S262877AbUCWWSX (ORCPT <rfc822;willy@w.ods.org>);
	Tue, 23 Mar 2004 17:18:23 -0500
Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262880AbUCWWSX
	(ORCPT <rfc822;linux-kernel-outgoing>);
	Tue, 23 Mar 2004 17:18:23 -0500
Received: from mtvcafw.SGI.COM ([192.48.171.6]:42061 "EHLO omx3.sgi.com")
	by vger.kernel.org with ESMTP id S262877AbUCWWSU (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Tue, 23 Mar 2004 17:18:20 -0500
Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130])
	by omx3.sgi.com (8.12.11/8.12.9/linux-outbound_gateway-1.1) with SMTP id i2NMK6mH018896;
	Tue, 23 Mar 2004 14:20:06 -0800
Received: from wobbly.melbourne.sgi.com (wobbly.melbourne.sgi.com [134.14.55.135]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id JAA24822; Wed, 24 Mar 2004 09:18:11 +1100
Received: from frodo.melbourne.sgi.com (root@frodo.melbourne.sgi.com [134.14.55.153])
	by wobbly.melbourne.sgi.com (SGI-8.12.5/8.12.5) with ESMTP id i2NMI6Fx623149;
	Wed, 24 Mar 2004 09:18:07 +1100 (EST)
Received: from frodo.melbourne.sgi.com (nathans@localhost [127.0.0.1])
	by frodo.melbourne.sgi.com (8.12.9/8.12.9/Debian-3) with ESMTP id i2NMHRm9000828;
	Wed, 24 Mar 2004 09:17:27 +1100
Received: (from nathans@localhost)
	by frodo.melbourne.sgi.com (8.12.9/8.12.9/Debian-3) id i2NMHP2G000826;
	Wed, 24 Mar 2004 09:17:25 +1100
Date: 	Wed, 24 Mar 2004 09:17:25 +1100
From: Nathan Scott <nathans@sgi.com>
To: Meelis Roos <mroos@linux.ee>, paulus@samba.org
Cc: Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: Re: 2.4.26-pre5: XFS module link errors on PPC
Message-ID: <20040323221725.GA733@frodo>
References: <Pine.GSO.4.44.0403231854160.14177-100000@math.ut.ee>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.GSO.4.44.0403231854160.14177-100000@math.ut.ee>
User-Agent: Mutt/1.5.3i
Sender: linux-kernel-owner@vger.kernel.org
Precedence: bulk
X-Mailing-List: 	linux-kernel@vger.kernel.org
Status: RO
Content-Length: 1288
Lines: 39

On Tue, Mar 23, 2004 at 07:20:05PM +0200, Meelis Roos wrote:
> I tried to make enamble a modular XFS on my PPC using current linux-2.4
> bitkeeper snaphot. Unfortunately, there are unresolved symbols in xfs
> module:
> 
> depmod: *** Unresolved symbols in /lib/modules/2.4.26-pre5/kernel/fs/xfs/xfs.o
> depmod:         ioremap_bot
> depmod:         vmalloc_start
> 
> XFS works fine when compiled in statically.
> 

Looks like XFS is picking them up via VMALLOC_START and VMALLOC_END
which are usually constants, but looks like these map to a couple
of global variables on PPC.  This should fix it, but I haven't got
a machine handy to test with...

cheers.

-- 
Nathan


--- ./arch/ppc/kernel/ppc_ksyms.c.orig	2004-03-24 09:04:15.000000000 +1100
+++ ./arch/ppc/kernel/ppc_ksyms.c	2004-03-24 09:07:20.000000000 +1100
@@ -161,6 +161,8 @@
 EXPORT_SYMBOL(_outsl_ns);
 EXPORT_SYMBOL(iopa);
 EXPORT_SYMBOL(mm_ptov);
+EXPORT_SYMBOL(vmalloc_start);
+EXPORT_SYMBOL(ioremap_bot);
 EXPORT_SYMBOL(ioremap);
 #ifdef CONFIG_PTE_64BIT
 EXPORT_SYMBOL(ioremap64);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

