From 24ba3bedb135b53bd66e125fa2e7125c3f3bed1a Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 28 Feb 1999 11:30:00 +0000 Subject: Declare static __inline functions as __inline in their forward declaration. Fixed some comments. Fixed a staticization botch. --- sys/tools/vnode_if.awk | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'sys/tools/vnode_if.awk') diff --git a/sys/tools/vnode_if.awk b/sys/tools/vnode_if.awk index 8193edb..87517e6 100644 --- a/sys/tools/vnode_if.awk +++ b/sys/tools/vnode_if.awk @@ -32,7 +32,7 @@ # SUCH DAMAGE. # # @(#)vnode_if.sh 8.1 (Berkeley) 6/10/93 -# $Id: vnode_if.sh,v 1.15 1998/07/04 20:45:32 julian Exp $ +# $Id: vnode_if.sh,v 1.16 1998/11/10 09:04:09 peter Exp $ # # Script to produce VFS front-end sugar. @@ -114,7 +114,7 @@ $AWK ' printf("extern struct vnodeop_desc %s_desc;\n", name); # Print out prototype. - printf("static int %s __P((\n", uname); + printf("static __inline int %s __P((\n", uname); sep = ",\n"; for (c2 = 0; c2 < c1; ++c2) { if (c2 == c1 - 1) @@ -134,7 +134,7 @@ $AWK ' substr(t[c4], beg, end - beg), sep); } - # Print out inline struct. + # Print out function. printf("static __inline int %s(", uname); sep = ", "; for (c2 = 0; c2 < c1; ++c2) { @@ -350,16 +350,13 @@ $AWK 'function kill_surrounding_ws (s) { printf "\n"; }' < $SRC >> $CFILE + # THINGS THAT DON'T WORK RIGHT YET. # -# Two existing BSD vnodeops (bwrite and strategy) don't take any vnodes as -# arguments. This means that these operations can't function successfully -# through a bypass routine. -# -# Bwrite and strategy will be replaced when the VM page/buffer cache -# integration happens. +# vop_bwrite doesn't take any vnodes as arguments. This means that it +# can't function successfully through a bypass routine. # -# To get around this problem for now we handle these ops as special cases. +# To get around this problem for now we handle it as a special case. cat << END_OF_SPECIAL_CASES >> $HEADER #include @@ -369,7 +366,7 @@ struct vop_bwrite_args { struct buf *a_bp; }; extern struct vnodeop_desc vop_bwrite_desc; -static int VOP_BWRITE __P(( +static __inline int VOP_BWRITE __P(( struct buf *bp)); static __inline int VOP_BWRITE(bp) struct buf *bp; @@ -380,8 +377,6 @@ static __inline int VOP_BWRITE(bp) a.a_bp = bp; return (VCALL((bp)->b_vp, VOFFSET(vop_bwrite), &a)); } - -extern int vfs_opv_numops; END_OF_SPECIAL_CASES cat << END_OF_SPECIAL_CASES >> $CFILE -- cgit v1.1