From: Usha Ketineni <ketineni@us.ibm.com>
To: nfs@lists.sourceforge.net
Subject: [PATCH]: Fix sparse warning in vfs.c
Date: Wed, 24 May 2006 14:27:52 -0700 [thread overview]
Message-ID: <4474CFD8.6060000@us.ltcfwd.linux.ibm.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 68 bytes --]
Below trivial fix casts __user attribute to avoid sparse warning
[-- Attachment #2: patch_sparse_warnings --]
[-- Type: text/plain, Size: 395 bytes --]
Signed-off-by: Usha Ketineni<uketinen@us.ibm.com>
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -1383,7 +1383,7 @@ nfsd_readlink(struct svc_rqst *rqstp, st
*/
oldfs = get_fs(); set_fs(KERNEL_DS);
- err = inode->i_op->readlink(dentry, buf, *lenp);
+ err = inode->i_op->readlink(dentry, (char __user *)buf, *lenp);
set_fs(oldfs);
if (err < 0)
reply other threads:[~2006-05-24 21:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4474CFD8.6060000@us.ltcfwd.linux.ibm.com \
--to=ketineni@us.ibm.com \
--cc=nfs@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox