]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/9p/trans_fd.c
Merge current mainline tree into linux-omap tree
[linux-2.6-omap-h63xx.git] / net / 9p / trans_fd.c
index 1df0356f242b651ddedaa937394a4cd9944e8c27..c613ed08a5ee345d723bac311c76ee191137437e 100644 (file)
@@ -417,7 +417,7 @@ static int p9_fd_write(struct p9_client *client, void *v, int len)
        oldfs = get_fs();
        set_fs(get_ds());
        /* 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);
 
        if (ret <= 0 && ret != -ERESTARTSYS && ret != -EAGAIN)