Hi Wensong,
It compiles fine under 0.2.12-2.4.4-SMP
Under 1.0.7-2.2.19-SMP I get
director:/usr/src/ktcpvs# make
gcc -D__KERNEL__ -D__SMP__ -g -DMODULE -g -O2 -Wall -Wstrict-prototypes
-I/usr/src/linux/include -DMODVERSIONS -include
/usr/src/linux/include/linux/modvers
ions.h -c -o tcp_vs_ctl.o tcp_vs_ctl.c
tcp_vs_ctl.c: In function `tcp_vs_lookup_dest':
tcp_vs_ctl.c:79: warning: implicit declaration of function `read_lock_bh'
tcp_vs_ctl.c:89: warning: implicit declaration of function `read_unlock_bh'
tcp_vs_ctl.c: In function `tcp_vs_add_dest':
tcp_vs_ctl.c:139: warning: implicit declaration of function `write_lock_bh'
tcp_vs_ctl.c:147: warning: implicit declaration of function `write_unlock_bh'
tcp_vs_ctl.c: At top level:
tcp_vs_ctl.c:593: warning: function declaration isn't a prototype
tcp_vs_ctl.c: In function `proc_net_ktcpvs_vs_create':
tcp_vs_ctl.c:988: structure has no member named `proc_fops'
tcp_vs_ctl.c: In function `tcp_vs_control_start':
tcp_vs_ctl.c:1010: warning: assignment from incompatible pointer type
make: *** [tcp_vs_ctl.o] Error 1
(the other ktcpvs files compile fine under 2.2.19)
Joe
--
Joseph Mack PhD, Senior Systems Engineer, Lockheed Martin
contractor to the National Environmental Supercomputer Center,
mailto:mack.joseph@xxxxxxx ph# 919-541-0007, RTP, NC, USA
|