]> git.baikalelectronics.ru Git - kernel.git/commit
IB/rdmavt: Convert timers to use timer_setup()
authorKees Cook <keescook@chromium.org>
Mon, 16 Oct 2017 22:51:13 +0000 (15:51 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 18 Oct 2017 15:48:19 +0000 (11:48 -0400)
commitf64a7eb52fdb9610b3307502836f3c6b0890f7c6
tree953dc8514520cb060212cb4a537db099f087e82c
parent119db9f7a4eb35ad4f9b3ec17de92fdd56acdf2f
IB/rdmavt: 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.

setup_timer() was already being called before the open-coded init_timer()
and .data assignment. These are removed as well.

Cc: Dennis Dalessandro <dennis.dalessandro@intel.com>
Cc: Doug Ledford <dledford@redhat.com>
Cc: Sean Hefty <sean.hefty@intel.com>
Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
Cc: linux-rdma@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rdmavt/qp.c