diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-25 05:31:37 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-27 02:13:32 -0500 |
commit | e3db6cb42123f6dbde36122a4c81a06282370e1e (patch) | |
tree | f9da75c7902bd4722d383c3de71b4faf3290f404 /net/9p/trans_fd.c | |
parent | 81c553299ffc4ce3512a6ea3eaf5070c2238c960 (diff) |
9p: fix sparse warning: cast adds address space
Impact: Trust in the comment and add '__force' to the cast.
Fix this sparse warning:
net/9p/trans_fd.c:420:34: warning: cast adds address space to expression (<asn:1>)
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/9p/trans_fd.c')
-rw-r--r-- | net/9p/trans_fd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/9p/trans_fd.c b/net/9p/trans_fd.c index 1df0356f242b..c613ed08a5ee 100644 --- a/net/9p/trans_fd.c +++ b/net/9p/trans_fd.c | |||
@@ -417,7 +417,7 @@ static int p9_fd_write(struct p9_client *client, void *v, int len) | |||
417 | oldfs = get_fs(); | 417 | oldfs = get_fs(); |
418 | set_fs(get_ds()); | 418 | set_fs(get_ds()); |
419 | /* The cast to a user pointer is valid due to the set_fs() */ | 419 | /* The cast to a user pointer is valid due to the set_fs() */ |
420 | ret = vfs_write(ts->wr, (void __user *)v, len, &ts->wr->f_pos); | 420 | ret = vfs_write(ts->wr, (__force void __user *)v, len, &ts->wr->f_pos); |
421 | set_fs(oldfs); | 421 | set_fs(oldfs); |
422 | 422 | ||
423 | if (ret <= 0 && ret != -ERESTARTSYS && ret != -EAGAIN) | 423 | if (ret <= 0 && ret != -ERESTARTSYS && ret != -EAGAIN) |