mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
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>
This commit is contained in:
parent
81c553299f
commit
e3db6cb421
1 changed files with 1 additions and 1 deletions
|
@ -417,7 +417,7 @@ static int p9_fd_write(struct p9_client *client, void *v, int len)
|
||||||
oldfs = get_fs();
|
oldfs = get_fs();
|
||||||
set_fs(get_ds());
|
set_fs(get_ds());
|
||||||
/* The cast to a user pointer is valid due to the set_fs() */
|
/* The cast to a user pointer is valid due to the set_fs() */
|
||||||
ret = vfs_write(ts->wr, (void __user *)v, len, &ts->wr->f_pos);
|
ret = vfs_write(ts->wr, (__force void __user *)v, len, &ts->wr->f_pos);
|
||||||
set_fs(oldfs);
|
set_fs(oldfs);
|
||||||
|
|
||||||
if (ret <= 0 && ret != -ERESTARTSYS && ret != -EAGAIN)
|
if (ret <= 0 && ret != -ERESTARTSYS && ret != -EAGAIN)
|
||||||
|
|
Loading…
Reference in a new issue