Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: librump/vfs_wapbl doesn't compile
Kurt Schreiner --> current-users (2008-11-11 13:34:24 +0100):
> Hi,
>
> just came across this (on amd64, current -current sources):
>
> compile librump/vfs_wapbl.o
> /u/NetBSD/src/lib/librump/../../sys/rump/../kern/vfs_wapbl.c:243: error:
> 'wapbl_replay_can_read' undeclared here (not in a function)
> cc1: warnings being treated as errors
> /u/NetBSD/src/lib/librump/../../sys/rump/../kern/vfs_wapbl.c:2776: warning:
> no previous prototype for 'wapbl_replay_can_read'
>
> *** Failed target: vfs_wapbl.o
> *** Failed command: /u/NetBSD/arch/amd64/TOOLS/bin/x86_64--netbsd-gcc -O2
> -ffreestanding -Wno-pointer-sign -pipe -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional
> -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual
> -Wwrite-strings -Wextra -Wno-unused-parameter -std=gnu99 -Werror
> -I/u/NetBSD/src/lib/librump/../../sys/rump/include -D_KERNEL -D_RUMPKERNEL
> -DMULTIPROCESSOR -DDIAGNOSTIC -I/u/NetBSD/src/lib/librump -I.
> -I/u/NetBSD/src/lib/librump/../../sys/rump/../../common/include -nostdinc
> -I/u/NetBSD/src/lib/librump/../../sys/rump/..
> -I/u/NetBSD/src/lib/librump/../../sys/rump/librump/rumpkern/opt -DMAXUSERS=32
> -I/u/NetBSD/src/lib/librump/../../sys/rump/librump/rumpnet -nostdinc -isystem
> /u/NetBSD/arch/amd64/dest/usr/include -c
> /u/NetBSD/src/lib/librump/../../sys/rump/../kern/vfs_wapbl.c -o vfs_wapbl.o
> *** Error code 1
>
> Stop.
> nbmake: stopped in /u/NetBSD/src/lib/librump
The attached patch should fix this.
Cheers, Jukka
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
Index: sys/sys/wapbl.h
===================================================================
RCS file: /cvsroot/src/sys/sys/wapbl.h,v
retrieving revision 1.4
diff -u -p -r1.4 wapbl.h
--- sys/sys/wapbl.h 10 Nov 2008 20:30:32 -0000 1.4
+++ sys/sys/wapbl.h 11 Nov 2008 12:47:23 -0000
@@ -379,6 +379,7 @@ void wapbl_replay_stop(struct wapbl_repl
void wapbl_replay_free(struct wapbl_replay *);
int wapbl_replay_write(struct wapbl_replay *, struct vnode *);
int wapbl_replay_read(struct wapbl_replay *, void *, daddr_t, long);
+int wapbl_replay_can_read(struct wapbl_replay *, daddr_t, long);
/****************************************************************/
Home |
Main Index |
Thread Index |
Old Index