Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8849408imu; Sat, 29 Dec 2018 05:10:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN6ORPhTaPVIZRZ+/NncKyLuDWJHARlAd8vwEmn2ln//svOhTnqgybgVA2afQG9RVpR6alqu X-Received: by 2002:a17:902:8a8a:: with SMTP id p10mr31421285plo.50.1546089028958; Sat, 29 Dec 2018 05:10:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546089028; cv=none; d=google.com; s=arc-20160816; b=Ixl3KAy781sjB/fZGd8vYXFVdS5rKGu/cAlRz6PoI4bxPxw8oL/+UBMdHPkYYyDKhv ush/QbSXLEQjsRYPAQJSNtGqFz2gQMEkPxSEgqY3LEVdcPfQj//jh+QvtDQiBtdhN67v tQC/rF+FA8S6I41TDpNeW7+yUbNWOPMx/BO5P+HttHio0TPe8AiJZEnis1MtcvkYRoS/ rgG3iPLVxAH7eCi5zWt0tmP980dx2InANK2s0rK0jmpehQHn2kCp3imLuWrzSx+/TnbI 4/F+jYPbzGbp8Otynuz3+QS2D6Pwj2LE1PS2cj3Knwm5EsZ+BMNW4abz5+nwZmeH6/El FkSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=Y3moIcMSrf1kby3xBT7wlM1CuuUPw1di2K8iTw9Il8U=; b=cFlqKP9f/ZhM93hNhy+r7R/P8mCpUvEfTv3fWsrAzaM0eNnjHkx76GPUdzSdRZ/vG5 E5vBDbn10dRpkBIkaXU06JBadg/4Up1gHQqvqpfUTokHEJv1dl0b6InbBIAZskovsRUz rVjUwPmkX2/ri8p4mmGJh6HOICS50YtFlsqAZ+BTAT2JL7uSiujkQXP+ksrj060IfU93 9/c2geRd29X3qq5bJ1Xnk4h16MvHC42ewwN5m1A/+94gwdM7URH63T9mX3HlBTV8p0gR nF39T0FWdCeZlhtALeZ5GSoDjms93z2DfDYsUPz3CJJnUyJlNEIOAhrBJwrIk8tPN7ss jogA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c8si26302677pgc.65.2018.12.29.05.10.13; Sat, 29 Dec 2018 05:10:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728674AbeL2FtH (ORCPT + 99 others); Sat, 29 Dec 2018 00:49:07 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:40500 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726672AbeL2FtH (ORCPT ); Sat, 29 Dec 2018 00:49:07 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::cf9]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 5F86D14515150; Fri, 28 Dec 2018 21:49:06 -0800 (PST) Date: Fri, 28 Dec 2018 21:49:05 -0800 (PST) Message-Id: <20181228.214905.2208487974538707696.davem@davemloft.net> To: xuechaojing@huawei.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, wulike1@huawei.com, chiqijun@huawei.com, fy.wang@huawei.com, tony.qu@huawei.com, luoshaokai@huawei.com Subject: Re: [PATCH 1/1] net-next/hinic:add shutdown callback From: David Miller In-Reply-To: <20181228002040.1256-1-xuechaojing@huawei.com> References: <20181228002040.1256-1-xuechaojing@huawei.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 28 Dec 2018 21:49:06 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xue Chaojing Date: Fri, 28 Dec 2018 00:20:40 +0000 > @@ -1106,6 +1106,13 @@ static void hinic_remove(struct pci_dev *pdev) > dev_info(&pdev->dev, "HiNIC driver - removed\n"); > } > > +static void hinic_shutdown(struct pci_dev *pdev) > +{ > + pci_disable_device(pdev); > + > + dev_info(&pdev->dev, "HiNIC driver - shutdown\n"); > +} I do not think these messages are appropriate. I didn't catch them before, but I'm not going to let new ones get added.