scsi: fcoe: 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: QLogic-Storage-Upstream@qlogic.com Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com> Cc: "Martin K. Petersen" <martin.petersen@oracle.com> Cc: Johannes Thumshirn <jth@kernel.org> Cc: linux-scsi@vger.kernel.org Cc: fcoe-devel@open-fcoe.org Signed-off-by: Kees Cook <keescook@chromium.org> Acked-by: Johannes Thumshirn <jth@kernel.org>
This commit is contained in:
@@ -455,9 +455,11 @@ EXPORT_SYMBOL_GPL(fcoe_check_wait_queue);
|
||||
*
|
||||
* Calls fcoe_check_wait_queue on timeout
|
||||
*/
|
||||
void fcoe_queue_timer(ulong lport)
|
||||
void fcoe_queue_timer(struct timer_list *t)
|
||||
{
|
||||
fcoe_check_wait_queue((struct fc_lport *)lport, NULL);
|
||||
struct fcoe_port *port = from_timer(port, t, timer);
|
||||
|
||||
fcoe_check_wait_queue(port->lport, NULL);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(fcoe_queue_timer);
|
||||
|
||||
|
Reference in New Issue
Block a user