Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1359862ybz; Wed, 22 Apr 2020 19:32:06 -0700 (PDT) X-Google-Smtp-Source: APiQypJISFw/ax91LQS/Du6oWk2fnDbp0BKtn6HDM4cMmXzYOcTeDbticA2C6lt6WVgr4/pttWGF X-Received: by 2002:aa7:c643:: with SMTP id z3mr462683edr.154.1587609126626; Wed, 22 Apr 2020 19:32:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587609126; cv=none; d=google.com; s=arc-20160816; b=mjIHfMopG8AlgN5tKg+jCLXBQEr0BW4XNP38BlIW15OjNKH/SpWpFCYVdDcxXBWXcl vuR7h6GRZGXslOUnfUsv5hV/4bRn9vTf6k8Jszj/0rmf2y+vCKz2eHo96fbdOXKZPEr+ 4xsFsCA+f9mjmTElw8CdVL4sIanVbo0r/MNwFjjPkKC/VapFcaycENgnPrSD+W1yXIH9 EtrEgIlSCCl+AIb0mXLSqEobyhMB0PE8TNR6HumzdouIrrneWpXW61D2bzVcgWeCtZK1 gTCCKRDQVYTEWujElDYpTQnXAmR2lc7RZ0qQz1a+W+rZa1cVzr5m91hzGxJQFn31U1Ps 1H4w== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=dRJrNBxL3Kw9LQAEyiLvVcIOInsZ804AbRjGlKLfoY0=; b=flbfvgyS2JLLBlz2q4x9GXOzwvQiLw3V9fu5vBAhWYIc0OXLqoJlTtyFVxAJyrysCc nb1DQB3/MjOQZbBPaKw1WwgjWhQuIPKbLM6x2UsfaQtQZROGUR7pINY5SCjICkQAho5U jUquso0P2S/3m1i12CjLEB9N1G8aZgpbaGfU63nobHAIbQ/tCvFQlPKoVns30Vew5cp8 3tZyvQQ0J8G/H9TUvwVVVCYvJM1ixCZtqFTm5YE3eYXKgIODHdg4ZhRvX/QKCKVRZcEE LjrJYu6C2DXE/9Jf/nUfbhLpbL6Z7GOIjGvPAmfAC0EHFmlBX4mabgVzobAlsdMP9iYH Ldwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m26si730955edj.174.2020.04.22.19.31.38; Wed, 22 Apr 2020 19:32:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726271AbgDWCbe (ORCPT + 99 others); Wed, 22 Apr 2020 22:31:34 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2873 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725781AbgDWCbe (ORCPT ); Wed, 22 Apr 2020 22:31:34 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 88D166779FDD7B390461; Thu, 23 Apr 2020 10:31:31 +0800 (CST) Received: from [127.0.0.1] (10.63.139.185) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Thu, 23 Apr 2020 10:31:21 +0800 Subject: Re: [PATCH -next] crypto: hisilicon/qm - Make qm_controller_reset() static To: Zou Wei , , References: <1587608556-113975-1-git-send-email-zou_wei@huawei.com> CC: , From: Zhou Wang Message-ID: <5EA0FDF4.5010601@hisilicon.com> Date: Thu, 23 Apr 2020 10:31:16 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1587608556-113975-1-git-send-email-zou_wei@huawei.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.63.139.185] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2020/4/23 10:22, Zou Wei wrote: > Fix the following sparse warning: > > drivers/crypto/hisilicon/qm.c:3079:5: warning: symbol 'qm_controller_reset' > was not declared. Should it be static? It should be static. > > Reported-by: Hulk Robot > Signed-off-by: Zou Wei Reviewed-by: Zhou Wang Thanks, Zhou > --- > drivers/crypto/hisilicon/qm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c > index 80c5525..69d02cb 100644 > --- a/drivers/crypto/hisilicon/qm.c > +++ b/drivers/crypto/hisilicon/qm.c > @@ -3076,7 +3076,7 @@ static int qm_controller_reset_done(struct hisi_qm *qm) > return 0; > } > > -int qm_controller_reset(struct hisi_qm *qm) > +static int qm_controller_reset(struct hisi_qm *qm) > { > struct pci_dev *pdev = qm->pdev; > int ret; >