summaryrefslogtreecommitdiffstats
path: root/fs/ncpfs/sock.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2017-08-30 06:00:21 +0200
committerKees Cook <keescook@chromium.org>2017-11-02 23:44:09 +0100
commit9b5dfbdd1f51558d321ccf15ac1e45ef1f593e83 (patch)
tree6d3a87cadfc58ecc88e70ccdc882b731fbed2423 /fs/ncpfs/sock.c
parentrcu: Convert timers to use timer_setup() (diff)
downloadlinux-9b5dfbdd1f51558d321ccf15ac1e45ef1f593e83.tar.xz
linux-9b5dfbdd1f51558d321ccf15ac1e45ef1f593e83.zip
fs/ncpfs: Convert timers to use timer_setup()
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Petr Vandrovec <petr@vandrovec.name> Cc: Jan Kara <jack@suse.cz> Cc: Jens Axboe <axboe@fb.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Kees Cook <keescook@chromium.org> Reviewed-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ncpfs/sock.c')
-rw-r--r--fs/ncpfs/sock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ncpfs/sock.c b/fs/ncpfs/sock.c
index 98b6db0ed63e..56c45c78b0b8 100644
--- a/fs/ncpfs/sock.c
+++ b/fs/ncpfs/sock.c
@@ -116,10 +116,10 @@ void ncp_tcp_write_space(struct sock *sk)
schedule_work(&server->tx.tq);
}
-void ncpdgram_timeout_call(unsigned long v)
+void ncpdgram_timeout_call(struct timer_list *t)
{
- struct ncp_server *server = (void*)v;
-
+ struct ncp_server *server = from_timer(server, t, timeout_tm);
+
schedule_work(&server->timeout_tq);
}