Commit e3db6cb42123f6dbde36122a4c81a06282370e1e
Committed by
David S. Miller
1 parent
81c553299f
Exists in
master
and in
7 other branches
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
net/9p/trans_fd.c
... | ... | @@ -417,7 +417,7 @@ |
417 | 417 | oldfs = get_fs(); |
418 | 418 | set_fs(get_ds()); |
419 | 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 | 421 | set_fs(oldfs); |
422 | 422 | |
423 | 423 | if (ret <= 0 && ret != -ERESTARTSYS && ret != -EAGAIN) |