Skip to contentSkip to conversation

2.5.3 Link Error

DISCUSSION John Weber 2 participants 2 messages Jan 30, 2002 HFS filesystem

lore
Share & tools
lore

John Weber

author
#0 lore raw

-o vmlinux
fs/fs.o: In function `cap_info_llseek':
fs/fs.o(.text+0x4e1d1): undefined reference to lock_kernel' fs/fs.o(.text+0x4e220): undefined reference to unlock_kernel' fs/fs.o: In function `hdr_llseek':
fs/fs.o(.text+0x4e858): undefined reference to lock_kernel' fs/fs.o(.text+0x4e8b6): undefined reference to unlock_kernel'
make: *** [vmlinux] Error 1

#1 lore raw
Quoted 8 lines · John Weber

-o vmlinux
fs/fs.o: In function `cap_info_llseek':
fs/fs.o(.text+0x4e1d1): undefined reference to lock_kernel' fs/fs.o(.text+0x4e220): undefined reference to unlock_kernel' fs/fs.o: In function `hdr_llseek':
fs/fs.o(.text+0x4e858): undefined reference to lock_kernel' fs/fs.o(.text+0x4e8b6): undefined reference to unlock_kernel'
make: *** [vmlinux] Error 1

Whoops, missed that in the BKL removal patch. This should fix it.

Linus, please apply.

Robert Love

fs/hfs/file_cap.c +1 -0
diff -urN linux-2.5.3/fs/hfs/file_cap.c linux/fs/hfs/file_cap.c
@@ -24,6 +24,7 @@
 #include <linux/hfs_fs_sb.h>
 #include <linux/hfs_fs_i.h>
 #include <linux/hfs_fs.h>
+#include <linux/smp_lock.h>
 
 /*================ Forward declarations ================*/
 static loff_t      cap_info_llseek(struct file *, loff_t,
fs/hfs/file_hdr.c +1 -0
diff -urN linux-2.5.3/fs/hfs/file_hdr.c linux/fs/hfs/file_hdr.c
@@ -29,6 +29,7 @@
 #include <linux/hfs_fs_sb.h>
 #include <linux/hfs_fs_i.h>
 #include <linux/hfs_fs.h>
+#include <linux/smp_lock.h>
 
 /* prodos types */
 #define PRODOSI_FTYPE_DIR   0x0F