* [PATCH] cifs: eliminate unneeded cast of cifs_demultiplex_thread
@ 2011-07-11 14:17 Jeff Layton
[not found] ` <1310393863-12531-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Layton @ 2011-07-11 14:17 UTC (permalink / raw)
To: smfrench-Re5JQEeQqe8AvxtiuMwx3w
Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA,
viro-3bDd1+5oDREiFSDQTTA3OLVCufUGDwFn
Reported-by: Al Viro <viro-3bDd1+5oDREiFSDQTTA3OLVCufUGDwFn@public.gmane.org>
Signed-off-by: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
fs/cifs/connect.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 729514c..ceab134 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1791,8 +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, "cifsd");
+ tcp_ses->tsk = kthread_run(cifs_demultiplex_thread, tcp_ses, "cifsd");
if (IS_ERR(tcp_ses->tsk)) {
rc = PTR_ERR(tcp_ses->tsk);
cERROR(1, "error %d create cifsd thread", rc);
--
1.7.6
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <1310393863-12531-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* [PATCH] cifs: fix cast on cifs_demultiplex_thread [not found] ` <1310393863-12531-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2011-07-20 15:09 ` Jeff Layton [not found] ` <1311174566-7172-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Jeff Layton @ 2011-07-20 15:09 UTC (permalink / raw) To: smfrench-Re5JQEeQqe8AvxtiuMwx3w Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA, viro-3bDd1+5oDREiFSDQTTA3OLVCufUGDwFn 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-3bDd1+5oDREiFSDQTTA3OLVCufUGDwFn@public.gmane.org> Signed-off-by: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> --- fs/cifs/connect.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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); -- 1.7.6 ^ permalink raw reply related [flat|nested] 3+ messages in thread
[parent not found: <1311174566-7172-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH] cifs: fix cast on cifs_demultiplex_thread [not found] ` <1311174566-7172-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2011-07-20 15:19 ` Al Viro 0 siblings, 0 replies; 3+ messages in thread From: Al Viro @ 2011-07-20 15:19 UTC (permalink / raw) To: Jeff Layton Cc: smfrench-Re5JQEeQqe8AvxtiuMwx3w, linux-cifs-u79uwXL29TY76Z2rM5mHXA 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... ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-20 15:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-11 14:17 [PATCH] cifs: eliminate unneeded cast of cifs_demultiplex_thread Jeff Layton
[not found] ` <1310393863-12531-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-07-20 15:09 ` [PATCH] cifs: fix cast on cifs_demultiplex_thread Jeff Layton
[not found] ` <1311174566-7172-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-07-20 15:19 ` Al Viro
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox