Preemptible 2.4.10-pre15 compile error
Hi,
Exactly, make modules error
make[2]: Entering directory `/home/sk/src/linux/fs/adfs'
gcc -D__KERNEL__ -I/home/sk/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O3 -fomit-frame-pointer -fno-strict-aliasing -fno-common -mcpu=i686 -march=i686 -fno-strength-reduce -pipe
-mpreferred-stack-boundary=2 -march=i686 -DMODULE -c
-o map.o map.cmap.c: In function `adfs_map_lookup':
map.c:271: `current' undeclared (first use in this function)
map.c:271: (Each undeclared identifier is reported only once
map.c:271: for each function it appears in.) map.c:273: warning: implicit declaration of function `preempt_schedule'
make[2]: *** [map.o] Error 1
make[2]: Leaving directory `/home/sk/src/linux/fs/adfs'
make[1]: *** [_modsubdir_adfs] Error 2 make[1]: Leaving directory `/home/sk/src/linux/fs'
make: *** [_mod_fs] Error 2
=====
S.KIEU
http://travel.yahoo.com.au - Yahoo! Travel
- Got Itchy feet? Get inspired!
Quoted 3 lines · Steve Kieu
Hi,
Exactly, make modules error
Please try the following patch, it should apply cleanly to any 2.4.10-pre or 2.4.9-ac -- it should fix the compile issue with preemption. Please report back if it is successful so I can merge the patch into the preemption patch itself.
fs/adfs/map.c +1 -0
@@ -12,6 +12,7 @@#include <linux/fs.h> #include <linux/adfs_fs.h> #include <linux/spinlock.h> +#include <linux/sched.h> #include "adfs.h"
Signature · 3 lines
Robert M. Love rml at ufl.edu rml at tech9.net