IB/qib: 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() helper to pass the timer pointer explicitly. Cc: Mike Marciniszyn <infinipath@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 Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
@@ -552,9 +552,9 @@ void qib_hol_up(struct qib_pportdata *ppd)
|
||||
/*
|
||||
* This is only called via the timer.
|
||||
*/
|
||||
void qib_hol_event(unsigned long opaque)
|
||||
void qib_hol_event(struct timer_list *t)
|
||||
{
|
||||
struct qib_pportdata *ppd = (struct qib_pportdata *)opaque;
|
||||
struct qib_pportdata *ppd = from_timer(ppd, t, hol_timer);
|
||||
|
||||
/* If hardware error, etc, skip. */
|
||||
if (!(ppd->dd->flags & QIB_INITTED))
|
||||
|
Reference in New Issue
Block a user