diff options
author | Alexander Viro <viro@parcelfarce.linux.theplanet.co.uk> | 2004-07-12 21:00:06 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-07-12 21:00:06 -0700 |
commit | 7b091e0254ff3c5b44b2e5af2142d094414af45e (patch) | |
tree | 634d35f93b9394967fa04dfbd558bf42b5acf75d /fs | |
parent | 0c4fb9bf2efb7fe20891946240912725fb117fee (diff) | |
download | history-7b091e0254ff3c5b44b2e5af2142d094414af45e.tar.gz |
[PATCH] sparse: switching afs to kvec
- afs and rxrpc switched to kvec; definition of kvec moved to uio.h (duh).
- afs/mntpt.c got missing cast added.
at that point afs is sparse-clean and rxrpc has only one remaining warning
(setsockopt from local variable, protected by set_fs()).
Diffstat (limited to 'fs')
-rw-r--r-- | fs/afs/fsclient.c | 12 | ||||
-rw-r--r-- | fs/afs/mntpt.c | 2 | ||||
-rw-r--r-- | fs/afs/vlclient.c | 8 |
3 files changed, 11 insertions, 11 deletions
diff --git a/fs/afs/fsclient.c b/fs/afs/fsclient.c index 911496eb4c6dbd..e6377cea6942f9 100644 --- a/fs/afs/fsclient.c +++ b/fs/afs/fsclient.c @@ -59,7 +59,7 @@ int afs_rxfs_get_root_volume(struct afs_server *server, { struct rxrpc_connection *conn; struct rxrpc_call *call; - struct iovec piov[2]; + struct kvec piov[2]; size_t sent; int ret; u32 param[1]; @@ -189,7 +189,7 @@ int afs_rxfs_get_volume_info(struct afs_server *server, { struct rxrpc_connection *conn; struct rxrpc_call *call; - struct iovec piov[3]; + struct kvec piov[3]; size_t sent; int ret; u32 param[2], *bp, zero; @@ -304,7 +304,7 @@ int afs_rxfs_fetch_file_status(struct afs_server *server, { struct afs_server_callslot callslot; struct rxrpc_call *call; - struct iovec piov[1]; + struct kvec piov[1]; size_t sent; int ret; u32 *bp; @@ -429,7 +429,7 @@ int afs_rxfs_fetch_file_data(struct afs_server *server, { struct afs_server_callslot callslot; struct rxrpc_call *call; - struct iovec piov[1]; + struct kvec piov[1]; size_t sent; int ret; u32 *bp; @@ -580,7 +580,7 @@ int afs_rxfs_give_up_callback(struct afs_server *server, { struct afs_server_callslot callslot; struct rxrpc_call *call; - struct iovec piov[1]; + struct kvec piov[1]; size_t sent; int ret; u32 *bp; @@ -686,7 +686,7 @@ int afs_rxfs_lookup(struct afs_server *server, { struct rxrpc_connection *conn; struct rxrpc_call *call; - struct iovec piov[3]; + struct kvec piov[3]; size_t sent; int ret; u32 *bp, zero; diff --git a/fs/afs/mntpt.c b/fs/afs/mntpt.c index aab380e7e6dba2..bdc179d3761bb5 100644 --- a/fs/afs/mntpt.c +++ b/fs/afs/mntpt.c @@ -182,7 +182,7 @@ static struct vfsmount *afs_mntpt_do_automount(struct dentry *mntpt) goto error; /* read the contents of the AFS special symlink */ - filler = mntpt->d_inode->i_mapping->a_ops->readpage; + filler = (filler_t *)mntpt->d_inode->i_mapping->a_ops->readpage; page = read_cache_page(mntpt->d_inode->i_mapping, 0, filler, NULL); if (IS_ERR(page)) { diff --git a/fs/afs/vlclient.c b/fs/afs/vlclient.c index 1a76f15cbf1dce..6a663cedd6348f 100644 --- a/fs/afs/vlclient.c +++ b/fs/afs/vlclient.c @@ -97,7 +97,7 @@ int afs_rxvl_probe(struct afs_server *server, int alloc_flags) { struct rxrpc_connection *conn; struct rxrpc_call *call; - struct iovec piov[1]; + struct kvec piov[1]; size_t sent; int ret; u32 param[1]; @@ -187,7 +187,7 @@ int afs_rxvl_get_entry_by_name(struct afs_server *server, struct rxrpc_connection *conn; struct rxrpc_call *call; - struct iovec piov[3]; + struct kvec piov[3]; unsigned tmp; size_t sent; int ret, loop; @@ -322,7 +322,7 @@ int afs_rxvl_get_entry_by_id(struct afs_server *server, struct rxrpc_connection *conn; struct rxrpc_call *call; - struct iovec piov[1]; + struct kvec piov[1]; unsigned tmp; size_t sent; int ret, loop; @@ -459,7 +459,7 @@ int afs_rxvl_get_entry_by_id_async(struct afs_async_op *op, { struct rxrpc_connection *conn; struct rxrpc_call *call; - struct iovec piov[1]; + struct kvec piov[1]; size_t sent; int ret; u32 param[3]; |