OSDN Git Service

crypto: hisilicon/qm - Make qm_controller_reset() static
authorZou Wei <zou_wei@huawei.com>
Thu, 23 Apr 2020 02:22:36 +0000 (10:22 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 30 Apr 2020 05:19:33 +0000 (15:19 +1000)
Fix the following sparse warning:

drivers/crypto/hisilicon/qm.c:3079:5: warning: symbol 'qm_controller_reset'
was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Reviewed-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c

index 80c5525..69d02cb 100644 (file)
@@ -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;