mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
NFS,SUNRPC,NLM: fix unused variable warnings when CONFIG_SYSCTL is disabled
Fix some dprintk's so that NLM, NFS client, and RPC client compile cleanly if CONFIG_SYSCTL is disabled. Test plan: Compile kernel with CONFIG_NFS enabled and CONFIG_SYSCTL disabled. Signed-off-by: Chuck Lever <cel@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
c556b75496
commit
0bbacc402e
4 changed files with 51 additions and 29 deletions
|
@ -734,14 +734,14 @@ int nfs_updatepage(struct file *file, struct page *page,
|
|||
unsigned int offset, unsigned int count)
|
||||
{
|
||||
struct nfs_open_context *ctx = (struct nfs_open_context *)file->private_data;
|
||||
struct dentry *dentry = file->f_dentry;
|
||||
struct inode *inode = page->mapping->host;
|
||||
struct nfs_page *req;
|
||||
int status = 0;
|
||||
|
||||
dprintk("NFS: nfs_updatepage(%s/%s %d@%Ld)\n",
|
||||
dentry->d_parent->d_name.name, dentry->d_name.name,
|
||||
count, (long long)(page_offset(page) +offset));
|
||||
file->f_dentry->d_parent->d_name.name,
|
||||
file->f_dentry->d_name.name, count,
|
||||
(long long)(page_offset(page) +offset));
|
||||
|
||||
if (IS_SYNC(inode)) {
|
||||
status = nfs_writepage_sync(ctx, inode, page, offset, count, 0);
|
||||
|
@ -850,7 +850,6 @@ static void nfs_write_rpcsetup(struct nfs_page *req,
|
|||
unsigned int count, unsigned int offset,
|
||||
int how)
|
||||
{
|
||||
struct rpc_task *task = &data->task;
|
||||
struct inode *inode;
|
||||
|
||||
/* Set up the RPC argument and reply structs
|
||||
|
@ -881,7 +880,7 @@ static void nfs_write_rpcsetup(struct nfs_page *req,
|
|||
data->task.tk_release = nfs_writedata_release;
|
||||
|
||||
dprintk("NFS: %4d initiated write call (req %s/%Ld, %u bytes @ offset %Lu)\n",
|
||||
task->tk_pid,
|
||||
data->task.tk_pid,
|
||||
inode->i_sb->s_id,
|
||||
(long long)NFS_FILEID(inode),
|
||||
count,
|
||||
|
@ -1217,7 +1216,6 @@ static void nfs_commit_release(struct rpc_task *task)
|
|||
static void nfs_commit_rpcsetup(struct list_head *head,
|
||||
struct nfs_write_data *data, int how)
|
||||
{
|
||||
struct rpc_task *task = &data->task;
|
||||
struct nfs_page *first;
|
||||
struct inode *inode;
|
||||
|
||||
|
@ -1248,7 +1246,7 @@ static void nfs_commit_rpcsetup(struct list_head *head,
|
|||
/* Release requests */
|
||||
data->task.tk_release = nfs_commit_release;
|
||||
|
||||
dprintk("NFS: %4d initiated commit call\n", task->tk_pid);
|
||||
dprintk("NFS: %4d initiated commit call\n", data->task.tk_pid);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue