From patchwork Fri Sep 22 10:27:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9965777 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 CC21860381 for ; Fri, 22 Sep 2017 10:27:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3E8B283FE for ; Fri, 22 Sep 2017 10:27:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B907D2850E; Fri, 22 Sep 2017 10:27:34 +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 722FA283FE for ; Fri, 22 Sep 2017 10:27:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751919AbdIVK1d (ORCPT ); Fri, 22 Sep 2017 06:27:33 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:36078 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751872AbdIVK1d (ORCPT ); Fri, 22 Sep 2017 06:27:33 -0400 Received: by mail-pg0-f68.google.com with SMTP id d8so405129pgt.3 for ; Fri, 22 Sep 2017 03:27:32 -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=bO00YoRMIO+XcVwh0TR+AMbBw2JkMUrttggnkEv0Bmg=; b=gMv9fp5kCFYdCTtQvN0LZnyVtqKcSZEcm5XYulBHQD17mIOipOEIWTmreo57HmdKxO e5U6Bc7vB21uwW8FhARAP+Q9rqxpRSasodejmWoK2O9bsSniCUpP9CEX47zpCeZ3bMUI N5Fbc/+y58YhtWQoFmNCCr6mgCV2wRU1YQECGCnniJ74ojUMfPpryBFgUxLv/l0n3CWU Gz+S+XCbC07p2C4X186tV3Gcn9t1Kn4sLNlTxKyCEUdT/9viWpNowl2Q4uhZVtVx/VU2 F38ubNmNKWr02GaRI3EgjydapIQ+oPjaF0bduqFrVqcqlsEldCAoe1wEWDC+vh8UwfBD XzBg== 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=bO00YoRMIO+XcVwh0TR+AMbBw2JkMUrttggnkEv0Bmg=; b=Y+GKuZGc2p+5CcNULMw2m+e0Lh9QtHN2gTPja+HNbBGmT2OjKy4seN4WuunUHcyZae flQMrt4IX0G8lVqDnkD3RLpmlYEJLAy6r2zpd20kNJZIgZQdJaI3fV15H5kc1uPjK6HM V8txzgV1rNdSFLviOfVDubyrvvX506kHpMWaUtsvjBQ30CSxQoAa3SCJAdfokSwEf4lI ClOgTV+VWciA0lAvv+Udpjv2ACZP794qONULKMryjL0gt5gmF4DiZM6PSBZ96wB9vth4 rN882m/CEbSh0dmNgdpFsYoXzzw4zlZx6++YBmxYuWnt6/rC7TaARZ1kJe8pmMIrn2WU +Nxg== X-Gm-Message-State: AHPjjUhjuffRUmL5gL1fVa11aYjmssLQsy2maVSubXPLyRilXHa+xCTn O8LTnBV1O6miDvp4MErdwplxnpKF X-Google-Smtp-Source: AOwi7QBJNYMUUwsUcx3iBQutLmI7cL+VbryiOpzhOYvuitm14kkoySDGNpwqY7lOt9WmCkzF1fRc8w== X-Received: by 10.101.73.136 with SMTP id r8mr8709573pgs.67.1506076052354; Fri, 22 Sep 2017 03:27:32 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id f74sm6143224pfa.36.2017.09.22.03.27.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 03:27:31 -0700 (PDT) From: Allen Pais To: linux-rdma@vger.kernel.org Cc: dledford@redhat.com, sean.hefty@intel.com, Allen Pais Subject: [PATCH 3/8] infiniband: qib: use setup_timer() helper. Date: Fri, 22 Sep 2017 15:57:11 +0530 Message-Id: <1506076036-16496-4-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_iba7220.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/qib/qib_iba7220.c b/drivers/infiniband/hw/qib/qib_iba7220.c index 04bdd3d..51a9266 100644 --- a/drivers/infiniband/hw/qib/qib_iba7220.c +++ b/drivers/infiniband/hw/qib/qib_iba7220.c @@ -4095,9 +4095,8 @@ static int qib_init_7220_variables(struct qib_devdata *dd) dd->rhdrhead_intr_off = 1ULL << 32; /* setup the stats timer; the add_timer is done at end of init */ - init_timer(&dd->stats_timer); - dd->stats_timer.function = qib_get_7220_faststats; - dd->stats_timer.data = (unsigned long) dd; + setup_timer(&dd->stats_timer, qib_get_7220_faststats, + (unsigned long)dd); dd->stats_timer.expires = jiffies + ACTIVITY_TIMER * HZ; /*