From patchwork Fri Sep 22 10:27:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9965773 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3345460381 for ; Fri, 22 Sep 2017 10:27:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B690283FE for ; Fri, 22 Sep 2017 10:27:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 205A32850E; Fri, 22 Sep 2017 10:27:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_HI, RCVD_IN_SBL_CSS,RCVD_IN_SORBS_SPAM,RCVD_IN_SORBS_WEB,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0C12283FE for ; Fri, 22 Sep 2017 10:27:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751905AbdIVK11 (ORCPT ); Fri, 22 Sep 2017 06:27:27 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36593 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751872AbdIVK11 (ORCPT ); Fri, 22 Sep 2017 06:27:27 -0400 Received: by mail-pf0-f195.google.com with SMTP id f84so295139pfj.3 for ; Fri, 22 Sep 2017 03:27:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QHMgqqyNXmDGhxC7SYiAXc0HiKYz03oMIBZAn+/TW9o=; b=amNuigUMyVAOWDJL6pOM6mjHUnwc7DWWvgm69jzPajyq8hD0C07Ipkt1pORjMaYuHo N4ygiPhP4HjaUSbTVRHqmTl/H++DsHE3NLyTveKbmSeusYA25BufQFwDSC2Jn1io0/yo giM+OqtCNopNAX88vv7ExPzbA5RuNYoex69VbBjel2t/SCx4JHedaPWZQCdH2DEbh3+E EFec/ttn8paIfCFy+qxrHxNgnYassmFxf3x3RfiugF52OxB/FcBfxhmbFLlRca8FUfMi v+FnbApmiorgM7APXJPkofAcGL0e16lrZyXtDkF5gtGrPyBR79Orm47UjSse16Vzkagg 6mrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QHMgqqyNXmDGhxC7SYiAXc0HiKYz03oMIBZAn+/TW9o=; b=kPRcogmDEtEAoFf0GzMTdOOA/4lzJhlm2BkOlRBqLezpv/usn0y/Vusz72JEHIDrgN auS1kuxLTxFJPxuociJIM3Ugu8KqUjo9jrV+mg8INdNEhPb50AScdzya5sF1t0uJ+/8n fCV24GVZ48TTcqn7SIgWhA0cVvf0mW9+vHoi2V2c0lpRCiX8RIeG9fHzXbw55Es73+oC dTzUmjHjGZmUPuQizXz6aB+NWARGg2w2PtpfYLCQ0J3VyaFNYu1lEvX1Jy+Jao5wL7hn Z/631wTcR4N7OtqgkGcp3KwXiSzOSBsxlDlQxb/YVDTnXV51oUxDt5bek/rVsWiqS8M/ ZztQ== X-Gm-Message-State: AHPjjUglGN948fniitxH70HNs9CwUUiAeDy/0HERfbO71xByehPceqNy kc7UM70OcQrPKlxo7MeYSngGLxiH X-Google-Smtp-Source: AOwi7QDnGh1HmtjYIR04xCFvuuLqlL1YzEgitxx/R/h1EBeTrZBp4GeYT7jyhPj5Sx+ucSBviXRk6Q== X-Received: by 10.84.205.70 with SMTP id o6mr8801895plh.350.1506076046361; Fri, 22 Sep 2017 03:27:26 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id f74sm6143224pfa.36.2017.09.22.03.27.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 03:27:25 -0700 (PDT) From: Allen Pais To: linux-rdma@vger.kernel.org Cc: dledford@redhat.com, sean.hefty@intel.com, Allen Pais Subject: [PATCH 1/8] infiniband: qib: use setup_timer() helper. Date: Fri, 22 Sep 2017 15:57:09 +0530 Message-Id: <1506076036-16496-2-git-send-email-allen.lkml@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506076036-16496-1-git-send-email-allen.lkml@gmail.com> References: <1506076036-16496-1-git-send-email-allen.lkml@gmail.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/infiniband/hw/qib/qib_sd7220.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/qib/qib_sd7220.c b/drivers/infiniband/hw/qib/qib_sd7220.c index c72775f..525b516 100644 --- a/drivers/infiniband/hw/qib/qib_sd7220.c +++ b/drivers/infiniband/hw/qib/qib_sd7220.c @@ -1440,9 +1440,8 @@ void set_7220_relock_poll(struct qib_devdata *dd, int ibup) /* If timer has not yet been started, do so. */ if (!cs->relock_timer_active) { cs->relock_timer_active = 1; - init_timer(&cs->relock_timer); - cs->relock_timer.function = qib_run_relock; - cs->relock_timer.data = (unsigned long) dd; + setup_timer(&cs->relock_timer, qib_run_relock, + (unsigned long)dd); cs->relock_interval = timeout; cs->relock_timer.expires = jiffies + timeout; add_timer(&cs->relock_timer);