Skip to contentSkip to conversation

reiser4 as module (reiser4-2004.06.01-17.16-linux-2.6.7-rc1-mm1 )

PATCH Svetoslav Slavtchev 2 participants 3 messages Jun 2, 2004 – Jun 3, 2004 VFS

lore
Share & tools
lore
#0 lore raw

Hi all,

i'm having problem with unresolved symbols,
when compiling the above auto bk-snapshot
with reiser4 as module, and i really need
to compile it as module

[svetljo@svetljo mm1]$ make
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
Kernel: arch/i386/boot/bzImage is ready
Building modules, stage 2.
MODPOST
*** Warning: "errno" [drivers/media/dvb/frontends/tda1004x.ko] undefined! *** Warning: "swapper_space" [fs/reiser4/reiser4.ko] undefined! *** Warning: "__iget" [fs/reiser4/reiser4.ko] undefined! [svetljo@svetljo mm1]$

i've fixed the first and the last messages,
but i can not find a solution for "swapper_space"

any ideas ?

thanks in advance

best,

svetljo

PS.
attached is the export __iget fix

Signature · 2 lines
"Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info
fs/inode.c +1 -0
@@ -234,6 +234,7 @@
 		list_move(&inode->i_list, &inode_in_use);
 	inodes_stat.nr_unused--;
 }
+EXPORT_SYMBOL(__iget);
 
 /**
  * clear_inode - clear an inode
#1 lore raw
Quoted 7 lines · Svetoslav Slavtchev

Hi all,

i'm having problem with unresolved symbols, when compiling the above auto bk-snapshot with reiser4 as module, and i really need to compile it as module

try this fix:
========================================
# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2004/06/03 14:07:30+04:00 [email protected]
# reiser4_clear_page_dirty: use page->mapping instead of the wrapper.
#

# as_ops.c
#   2004/06/03 14:07:26+04:00 [email protected] +1 -1
#   reiser4_clear_page_dirty: use page->mapping instead of the wrapper.
# 
diff -Nru a/as_ops.c b/as_ops.c
--- a/as_ops.c	Thu Jun  3 14:20:25 2004
+++ b/as_ops.c	Thu Jun  3 14:20:25 2004
@@ -72,7 +72,7 @@
 	struct address_space *mapping;
 	unsigned long flags;

- mapping = page_mapping(page);
+ mapping = page->mapping;
BUG_ON(mapping == NULL);

read_lock_irqsave(&mapping->tree_lock, flags);
========================================

Signature · 1 line
Alex.
#2 lore raw
Quoted 33 lines · Svetoslav Slavtchev
Quoted 7 lines

Hi all,

i'm having problem with unresolved symbols, when compiling the above auto bk-snapshot with reiser4 as module, and i really need to compile it as module

try this fix:
========================================
# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2004/06/03 14:07:30+04:00 [email protected]
# reiser4_clear_page_dirty: use page->mapping instead of the wrapper.
#

# as_ops.c
#   2004/06/03 14:07:26+04:00 [email protected] +1 -1
#   reiser4_clear_page_dirty: use page->mapping instead of the wrapper.
# 
diff -Nru a/as_ops.c b/as_ops.c
as_ops.c +1 -1
@@ -72,7 +72,7 @@
 	struct address_space *mapping;
 	unsigned long flags;
 
-	mapping = page_mapping(page);
+	mapping = page->mapping;
 	BUG_ON(mapping == NULL);
 
 	read_lock_irqsave(&mapping->tree_lock, flags);
Quoted 1 line

========================================

thanks this fixes compile,

noe i gues is time to make clean recompile,
and see what happens :-)

Signature · 2 lines
"Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info