Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751848AbdIUUDX (ORCPT ); Thu, 21 Sep 2017 16:03:23 -0400 Received: from mail-bl2nam02on0051.outbound.protection.outlook.com ([104.47.38.51]:24960 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751707AbdIUUDV (ORCPT ); Thu, 21 Sep 2017 16:03:21 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Chad.Dupuis@cavium.com; Date: Thu, 21 Sep 2017 16:02:53 -0400 (EDT) From: Chad Dupuis X-X-Sender: cdupuis@flash12.qlogic.org To: Allen Pais cc: linux-kernel@vger.kernel.org, QLogic-Storage-Upstream@qlogic.com, linux-scsi@vger.kernel.org Subject: Re: [PATCH 1/1] scsi: bnx: use setup_timer In-Reply-To: <1505994464-11465-1-git-send-email-allen.lkml@gmail.com> Message-ID: References: <1505994464-11465-1-git-send-email-allen.lkml@gmail.com> User-Agent: Alpine 2.00 (OSX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Originating-IP: [4.15.251.130] X-ClientProxiedBy: DM5PR05CA0038.namprd05.prod.outlook.com (10.174.188.155) To MWHPR07MB2783.namprd07.prod.outlook.com (10.169.237.19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3fa26e50-3305-447b-f167-08d5012bcd06 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:MWHPR07MB2783; X-Microsoft-Exchange-Diagnostics: 1;MWHPR07MB2783;3:AOhb9Sk/BXnc2KsKzH5AtsYTEP0DOz3ZwhN1Tn3vYCHtjPXFTB2fYA04WjRJnGO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mCG9J6kd4oW5bcgJpOpKnVrFWGR9g7LfkTatJL57RoPDu5EPgr7729RTTi1f1goG23+Gvda3YMPpcrCfN5jjfuo7wejDmvHXWsB7IFya3UNslqfeVMLLpxeMKiekuwLHk1c8tGqE78vkTaVc3Kd68O5qY4WL6gMRGmBo7t85bxHF+1mlVySqndNzcSmA8CVKAaMJ5C/1bUlpSv/pbfQI+g5PMkcqfSMS7rCyonMTox6puqHCQAE2sqBuc183TfdtLznNJjsrapNQ+6qw8Ux;4:hFOrexQbckTuCcXO2uruXWh4SpCkdd/+yaPbBMFJoE4BmNUvys+CfisU5V5Mv6rIZ+jnbbZAjmRxs08/VaT8kTicQatSGd7j1dflLAd66AkmkwMNEisbHWNrWMi6sRe18iifphwPVnKpuoOCbuumzC1hgwjgMphCND2LmsYo5c08NaWhz9i4xbR83YRXi4irQrkETxr3AHv5thYYvm0at7uS+jVP+TXJ3UbZ8yubWv5NsxlKYJvcqcvRciwB1B9C X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123555025)(20161123558100)(20161123560025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:MWHPR07MB2783;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:MWHPR07MB2783; X-Forefront-PRVS: 04371797A5 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(376002)(346002)(189002)(199003)(24454002)(7736002)(54356999)(69596002)(6116002)(101416001)(3846002)(76176999)(50986999)(23726003)(6916009)(2950100002)(6506006)(9686003)(53936002)(25786009)(53416004)(6666003)(316002)(229853002)(83506001)(55016002)(16526017)(8676002)(81166006)(8936002)(81156014)(97736004)(189998001)(478600001)(72206003)(16586007)(68736007)(39060400002)(37156001)(305945005)(86362001)(5005980100005)(4326008)(106356001)(6246003)(5660300001)(58126008)(47776003)(66066001)(2906002)(105586002);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR07MB2783;H:flash12.qlogic.org;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;MWHPR07MB2783;23:zt9N2d4x5Gkqcw5IWUiT3Nn9Cz+ZdD4H/OoELqq5B?= =?us-ascii?Q?wJNb5O30eV15bSC1l9M5yxMFjGytcyGTCsx0QMVWmRcs+uvaOZ1p7JFe6trY?= =?us-ascii?Q?ky3VreGxnpY0UBda5ZlUbgsCZHDWDRSGgoKlrJ9klsyIbjAb40nUoHWknJP0?= =?us-ascii?Q?Jwr02ZmbBrOH5xSKGdwcC5CdCa9iil3UX72HdW5Orv8oNNmoHHBiGrpvUw3V?= =?us-ascii?Q?eVcf13ZpecQW208dmrwyEB5gqxKxtUnIcdzwU56bsz+xOVBmnBziX0OflqdP?= =?us-ascii?Q?6qg5X9W+RpQyLyOeEk16xn1t+7wJxb4ho04mIN+xo3JtxH5d+a0tqE4HaNSD?= =?us-ascii?Q?uG1PiJRUEvfMX+xWzZ/1INRscafmwL6BqLX68S4HMcm8t4HkFkZ3NCdf6vQM?= =?us-ascii?Q?iS4WeONRlVsQZJCJLKhu/BhUTq70L0irPFNkkjBcQpWiWaVW0+wagjI750XU?= =?us-ascii?Q?z5LCiB3a9YdU9WVQ07eGKFJw4vaR4siugSa463OJi2DfNkafQ0QSBk1Zle6S?= =?us-ascii?Q?xoVTWM1WqzfvsQrjmUCNehBTlC76h80q+gvAvLFdrUXaViyBG1192OSnWnU9?= =?us-ascii?Q?lQfgcsdk8uYqjeXQLH3zPhCg9nbkhF4AcZI4lxrV5jpezapzDDAFXYStGnW0?= =?us-ascii?Q?pmC0J0zGWXTrEKy72Fubc2zLXA8gE2abmruA8CJ2eoWQD5UVGp/WIXzu55/F?= =?us-ascii?Q?V+Tcap5uf77Art2zopejORhHNhoIkikA+01dIvPKOhgvF7R2nZCX/BPaA31f?= =?us-ascii?Q?QR0Qt0O4hnIf4BxbcVI9Cj8GMeoun610inLhAOcjOZBCmdj1WiM8o3Gskfky?= =?us-ascii?Q?pJFYa7A4X2yfUIAt4LyXwFSgyPc9Yjh4hWpgtMYt149izCYiJRO8mvF10Yhq?= =?us-ascii?Q?sPqzsl2rq8QBySHcLN9xJDJGVfFLAncWnF6qbs6yGAKa37zPcGkT02QJunqa?= =?us-ascii?Q?kv8ZUm1ZoxENZC6ktB6gTy8aOaGdXPpmZkQI2OcvKirlpPZq0KqIQ6cwZN43?= =?us-ascii?Q?cC9MGs3LFiV1zaQ0wmoJf8wfVHohiOAHfiKMZtIYimORgebK0/Jk8+51Os7s?= =?us-ascii?Q?bTTQsYDOjXxIsCG7GqWSfoVQN5CoTUISc/iB0LCAB4UkNUp4NEyYvaS3AFfF?= =?us-ascii?Q?ADUrU4TcqxDx+ImZtmVp8VXVyIOLhYAhLkbYQBK96y4l2b30tLK+TjRNnV5D?= =?us-ascii?Q?CO2X6XFe9zpncyGOtqqESUQcWy7QagvTzdwrSMPatjRS2DQ+NB4u+5mTA=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1;MWHPR07MB2783;6:CIkBAnZpUa6gG2vIgqvhogjXrSV6OKkUd41b4lqBPympDWF1+DmvZqoucaZDadfGniT2C4qMIocB5YZi4YKb1Drhom35fztoKJTPtPttaC8J4tglguvGh4b+n4nRigQz/WYpl8nz8CeU0AAcXgDU7CHeIah/tw0+c8NHaSSRdAtfGi5rB2WuJ/7PcWKvhecpKAQA6jcEala/ff0i3NArCSHuQhRG9qzWcNBucY825MKLeq3zcJ3MuhTew8XfkvGlIY6CoFEoy8zH/5vbJNiQL3gpbr7Zk2018bD48S6i7ryFvB+CE/qS0jfxsQP691ba6UIabfl/Js4IqvyoZ4QPAQ==;5:cGZ1UlenJnOrvioQ82e+xOSOErodIaL5UrKYvHbmhIGjQqvQphsqMI6LM+/oSg2auBXrR8FAKLNTZm29E41n8/LXQm2ZGWdkIphMzvIej6MsHTlKUyZjwidD0z0jtFihdxR2q+Tvox7DjKf8XwXVDQ==;24:BDptvHvhwiwSOZ0tVZP9xMtK65h3Mgsv044XcyZH1ST4qD5opV87NKvCjFEQUXGx6ABtneIwRDMh3hQPxZ0a6lkTZd8QYo809P7C511YKKQ=;7:7sFUOyW4rsir2ySWuRi60ZyoOgrjhOMNaz+hRcpboXuMsVedZHHivAdcplqZHxN5DebcMJ9iR3lt8HVQz+rOZXIaxYZ6XHp1GN7njA3787xrOHSBZpqu206wkXCIvpKMDOueK9rU4YRkLRrJegNnGoD/Recin4+yWn8aefOFNj5oWmTdQCaZMU/JnXWxvVDRVilrErMxh0d+B86uYY5K1axD1gfVBWzp/Xw7hwF6+7s= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2017 20:03:17.0298 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB2783 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1338 Lines: 35 On Thu, 21 Sep 2017, 7:47am, Allen Pais wrote: > Use setup_timer function instead of initializing timer with the > function and data fields. > > Signed-off-by: Allen Pais > --- > drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c > index 6844ba3..a056211 100644 > --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c > +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c > @@ -1946,11 +1946,10 @@ static void bnx2fc_fw_destroy(struct bnx2fc_hba *hba) > { > if (test_and_clear_bit(BNX2FC_FLAG_FW_INIT_DONE, &hba->flags)) { > if (bnx2fc_send_fw_fcoe_destroy_msg(hba) == 0) { > - init_timer(&hba->destroy_timer); > + setup_timer(&hba->destroy_timer, bnx2fc_destroy_timer, > + (unsigned long)hba); > hba->destroy_timer.expires = BNX2FC_FW_TIMEOUT + > jiffies; > - hba->destroy_timer.function = bnx2fc_destroy_timer; > - hba->destroy_timer.data = (unsigned long)hba; > add_timer(&hba->destroy_timer); > wait_event_interruptible(hba->destroy_wait, > test_bit(BNX2FC_FLAG_DESTROY_CMPL, > The title of the patch should be fixed up since the driver is 'bnx2fc'. But besides that nit the patch looks good. Acked-by: Chad Dupuis