From patchwork Fri Sep 22 10:27:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9965775 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 10FA060381 for ; Fri, 22 Sep 2017 10:27:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08AC2283FE for ; Fri, 22 Sep 2017 10:27:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1D4F2850E; Fri, 22 Sep 2017 10:27:31 +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 A01F5283FE for ; Fri, 22 Sep 2017 10:27:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751912AbdIVK1a (ORCPT ); Fri, 22 Sep 2017 06:27:30 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33102 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751872AbdIVK1a (ORCPT ); Fri, 22 Sep 2017 06:27:30 -0400 Received: by mail-pf0-f194.google.com with SMTP id h4so303652pfk.0 for ; Fri, 22 Sep 2017 03:27:30 -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=0gjRm+hwhSdSStwhD3O2/Fl/ADMX1IbBsppbS5cERUw=; b=IFbucY+H1lwcoNTXdDcIgAHjXmx2B7cRLzdWzQ1TG+76bFE/YDRF/jFbFacnuaKq+c GyHFxg4C5o6iZBfbzDLqCHttgtgqYoyaPkaLrzzm+wFS0HyBjW/izsj0vvVU3Xe7gUAr LrhYx90AH6ZbvEveQnDp9SYnEVrmQHQVcjrlpBcaAmX6XjexrMzfTIbcmiac/bVi1Ygv TLNRxZB66+bx6j9tgEZ1JUWVNHwo759s/qZsES8vuvUEwhfZz3Ve/3xt3EE2EZBRbsQd lxtWeiUUePAxR6lS1YNGnNPO773PhsvMCHJFNqfgEb+4lNDfnZBXtbnuIGioGNVf7P00 VVug== 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=0gjRm+hwhSdSStwhD3O2/Fl/ADMX1IbBsppbS5cERUw=; b=QZP2f42xZzGNTWQOfRxh4RxZnbcHirr0Drsh2cn3G1RY0MrI6t3ViA12Jn3LRXh/8b zAGBAx1cDHCqkf8l0iMwN5KhiWN8dFqNpLOLzBfSXMFxl9BwmQseCJAnUaF5mcVSkxgs rzIw0LLZ6XYQGNkTxcVxjT39cwf6uxztAJ7CxvdJUY9fh2vCK9EXkAwCcLpLPnuJla6Q IIMjNqhXuuPnAjFgryUlgh2TfP0srvGveucTut976sJjZm3eYHjBGibRMCqRPmPv4fzZ jbxOBHJGY7SrNKl7qYP5LClVOKKhX6RfBbNTbo/4nGEa4vHjlnwFG9ortnPDtpJvmORh izBg== X-Gm-Message-State: AHPjjUgwnBB9HFmiTB6vHXauqeC+shHpVN98M4TuAH5+FS0IZLhKDE1+ smBf0jkyV7ZdVYJYnOSppciJEV0X X-Google-Smtp-Source: AOwi7QDRDOyd8Ai8pGTyizHfgAzWPS4xnkAfZoqLMD5RKIu9HXsNZXJu4iM3JZdekYwLSr4NDW0VtA== X-Received: by 10.84.209.135 with SMTP id y7mr8582364plh.439.1506076049507; Fri, 22 Sep 2017 03:27:29 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id f74sm6143224pfa.36.2017.09.22.03.27.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 03:27:28 -0700 (PDT) From: Allen Pais To: linux-rdma@vger.kernel.org Cc: dledford@redhat.com, sean.hefty@intel.com, Allen Pais Subject: [PATCH 2/8] infiniband: nes: use setup_timer() helper. Date: Fri, 22 Sep 2017 15:57:10 +0530 Message-Id: <1506076036-16496-3-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/nes/nes_nic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c index 5921ea3..e4fb0ad 100644 --- a/drivers/infiniband/hw/nes/nes_nic.c +++ b/drivers/infiniband/hw/nes/nes_nic.c @@ -1746,8 +1746,7 @@ struct net_device *nes_netdev_init(struct nes_device *nesdev, nesvnic->rdma_enabled = 0; } nesvnic->nic_cq.cq_number = nesvnic->nic.qp_id; - init_timer(&nesvnic->event_timer); - nesvnic->event_timer.function = NULL; + setup_timer(&nesvnic->event_timer, NULL, 0UL); spin_lock_init(&nesvnic->tx_lock); spin_lock_init(&nesvnic->port_ibevent_lock); nesdev->netdev[nesdev->netdev_count] = netdev;