2.5-bk K&R to ANSI conversions for fs/jfs/jfs_dmap.c and jfs_xtree.c
PATCH 1/1 2.5-bk K&R to ANSI conversions for fs/jfs/jfs_dmap.c and jfs_xtree.c
This patch removes the first of the following warnings when doing make C=1 bzImage with the sparse checker cleverly installed as /usr/local/bin/sparse.
CHECK fs/jfs/jfs_dmap.c
warning: fs/jfs/jfs_dmap.c:3053:14: non-ANSI parameter list
warning: fs/jfs/jfs_dmap.c:1315:10: not addressable
warning: fs/jfs/jfs_dmap.c:1792:8: not addressable
warning: fs/jfs/jfs_dmap.c:3441:10: not addressable
CC fs/jfs/jfs_dmap.o
No "non-ANSI parameter list" warnings for fs/jfs/jfs_xtree.c were received, presumably because _JFS_WIP wasn't defined. This patch converts the xtGather function declaration anyway.
Steven
fs/jfs/jfs_dmap.c +1 -1
@@ -3050,7 +3050,7 @@* RETURN VALUES: * none */ -void fsDirty () +void fsDirty (void ) {printk ("fsDirty(): bye-bye\n" );assert (0 );
fs/jfs/jfs_xtree.c +1 -2
@@ -4225,8 +4225,7 @@* at the current entry at the current subtree root page * */ -int xtGather (t) -btree_t *t; +int xtGather (btree_t *t) {int rc =0 ;xtpage_t *p;