Skip to contentSkip to conversation

r128.o unresolved symbol vmalloc_32

DISCUSSION Duncan Sands 2 participants 2 messages Jun 9, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

linux-2.5.21:

if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b /usr/src/linux-2.5.21/debian/tmp-image -r 2.5.21; fi
depmod: *** Unresolved symbols in /usr/src/linux-2.5.21/debian/tmp-image/lib/modules/2.5.21/kernel/drivers/char/drm/r128.o
depmod: vmalloc_32
make[2]: *** [_modinst_post] Error 1

#1 lore raw
Quoted 6 lines · Duncan Sands

linux-2.5.21:

if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b /usr/src/linux-2.5.21/debian/tmp-image -r 2.5.21; fi
depmod: *** Unresolved symbols in /usr/src/linux-2.5.21/debian/tmp-image/lib/modules/2.5.21/kernel/drivers/char/drm/r128.o
depmod: vmalloc_32
make[2]: *** [_modinst_post] Error 1

Here's an updated version of the patch I posted earlier. This one also exports vmalloc_32 and vmalloc_dma.

mm/Makefile +1 -1
diff -ruN lin/mm/Makefile linux/mm/Makefile
@@ -10,7 +10,7 @@
 O_TARGET := mm.o
 
 export-objs := shmem.o filemap.o mempool.o page_alloc.o \
-		page-writeback.o
+		page-writeback.o vmalloc.o
 
 obj-y	 := memory.o mmap.o filemap.o mprotect.o mlock.o mremap.o \
 	    vmalloc.o slab.o bootmem.o swap.o vmscan.o page_io.o \
mm/vmalloc.c +5 -0
diff -ruN lin/mm/vmalloc.c linux/mm/vmalloc.c
@@ -8,6 +8,7 @@
 
 #include <linux/config.h>
 #include <linux/slab.h>
+#include <linux/module.h>
 #include <linux/vmalloc.h>
 #include <linux/spinlock.h>
 #include <linux/highmem.h>
@@ -354,3 +355,7 @@
 	read_unlock(&vmlist_lock);
 	return buf - buf_start;
 }
+
+EXPORT_SYMBOL(vmalloc);
+EXPORT_SYMBOL(vmalloc_dma);
+EXPORT_SYMBOL(vmalloc_32);
Signature · 1 line
Skip