Message ID | 1311174566-7172-1-git-send-email-jlayton@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed, Jul 20, 2011 at 11:09:26AM -0400, Jeff Layton wrote: > My initial pass at doing this just eliminated the cast altogether. When > I played with it today though, that caused a compiler warning. So, just > fix the cast instead. See 7c97c200e2c5aa8b1067bebb99df0a7c2e12ebf3 in vfs-2.6.git... -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 1507ada..dc52872 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -1791,7 +1791,7 @@ cifs_get_tcp_session(struct smb_vol *volume_info) * this will succeed. No need for try_module_get(). */ __module_get(THIS_MODULE); - tcp_ses->tsk = kthread_run((void *)(void *)cifs_demultiplex_thread, + tcp_ses->tsk = kthread_run((int(*)(void *))cifs_demultiplex_thread, tcp_ses, "cifsd"); if (IS_ERR(tcp_ses->tsk)) { rc = PTR_ERR(tcp_ses->tsk);
My initial pass at doing this just eliminated the cast altogether. When I played with it today though, that caused a compiler warning. So, just fix the cast instead. Reported-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Jeff Layton <jlayton@redhat.com> --- fs/cifs/connect.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)