Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp761531ybi; Fri, 31 May 2019 08:32:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMeNToNvnoe085wftVFGFy/Iy/95J3gr/sHGjB3i39JYJEL7PqZPhjLnko/0U9HJFssYei X-Received: by 2002:a63:e603:: with SMTP id g3mr10234090pgh.167.1559316747480; Fri, 31 May 2019 08:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559316747; cv=none; d=google.com; s=arc-20160816; b=MUe1Hpum3IELB6o1XZukgEQ4PqfznhWvI1WwZ0jX6nHVMDjKbq9zYDnkrvpgD7iCVY Wvu6ljglRXV5zI0WZlmYXo64j6YGvJzi7xpcxCR+LG841v4A/VKz84mC2ZcAgbS7bp7c oCMSug+vnYFdbGYm28O0RvhoTypI0CaU0l/GQBNnB6rTqBVzAzBPCt9pybzIjeU+KBut VF0nU3CArALcOfdwsayVYCmK8/lSZvoqqGMXSyFo4qkPlidQNcI0sv7xKbVOqvtatsBF rPkvgA0PUVRMW4Z5TkDmEGU7ZtQYlw+pa2ydAM6+EFh97xSAcCzbZV12aFrsN1odv+a4 FAHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=CZqy6ql45RpxTkdR0aOaxXF4aN9kdh482qo2uPPXSec=; b=lYShN3VzeUlM+u5wBDpqMds3shKXXRyiVr/n68EKRmrwl1a4TAAyEBEMW+C+cygQgZ 4l+4tp6ksOMf5eakS9gWE7TUin6A7AlHLkeuFTcuIREmBDxvT8t8glquxHUDOeAyd8kj 8GAdUIG5YTN/8HwES/MbKdd6haXKLHIHIR9jQJLGF5cLNWSkdr36y5Vx6T+MiZ4UXE1W kz2EfxP080hMss65tmAVbYbmqQxZhdiEoujm8TEjykKuFcDBHUT75KqDzNV+RBJMuRDn tOwTaY8uU67LchOkO4pEqgLwtOsvp5BuOrMDoSQVjzrfakgDZpwhdc0wpOFf6qsrxIpn QaQQ== 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 t25si6877692pfe.240.2019.05.31.08.32.01; Fri, 31 May 2019 08:32:27 -0700 (PDT) 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 S1726888AbfEaP33 (ORCPT + 99 others); Fri, 31 May 2019 11:29:29 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:17640 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726421AbfEaP33 (ORCPT ); Fri, 31 May 2019 11:29:29 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 7764E844F282E0077772; Fri, 31 May 2019 23:29:26 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Fri, 31 May 2019 23:29:20 +0800 From: YueHaibing To: , , , , CC: , , YueHaibing Subject: [PATCH -next] scsi: lpfc: Make some symbols static Date: Fri, 31 May 2019 23:28:41 +0800 Message-ID: <20190531152841.13684-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warnings: drivers/scsi/lpfc/lpfc_sli.c:115:1: warning: symbol 'lpfc_sli4_pcimem_bcopy' was not declared. Should it be static? drivers/scsi/lpfc/lpfc_sli.c:7854:1: warning: symbol 'lpfc_sli4_process_missed_mbox_completions' was not declared. Should it be static? drivers/scsi/lpfc/lpfc_nvmet.c:223:27: warning: symbol 'lpfc_nvmet_get_ctx_for_xri' was not declared. Should it be static? drivers/scsi/lpfc/lpfc_nvmet.c:245:27: warning: symbol 'lpfc_nvmet_get_ctx_for_oxid' was not declared. Should it be static? drivers/scsi/lpfc/lpfc_init.c:75:10: warning: symbol 'lpfc_present_cpu' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/scsi/lpfc/lpfc_init.c | 2 +- drivers/scsi/lpfc/lpfc_nvmet.c | 4 ++-- drivers/scsi/lpfc/lpfc_sli.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index cd8e47544d07..faf43b1d3dbe 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c @@ -72,7 +72,7 @@ unsigned long _dump_buf_dif_order; spinlock_t _dump_buf_lock; /* Used when mapping IRQ vectors in a driver centric manner */ -uint32_t lpfc_present_cpu; +static uint32_t lpfc_present_cpu; static void lpfc_get_hba_model_desc(struct lpfc_hba *, uint8_t *, uint8_t *); static int lpfc_post_rcv_buf(struct lpfc_hba *); diff --git a/drivers/scsi/lpfc/lpfc_nvmet.c b/drivers/scsi/lpfc/lpfc_nvmet.c index eb93189f4544..e471bbcca838 100644 --- a/drivers/scsi/lpfc/lpfc_nvmet.c +++ b/drivers/scsi/lpfc/lpfc_nvmet.c @@ -220,7 +220,7 @@ lpfc_nvmet_cmd_template(void) /* Word 12, 13, 14, 15 - is zero */ } -struct lpfc_nvmet_rcv_ctx * +static struct lpfc_nvmet_rcv_ctx * lpfc_nvmet_get_ctx_for_xri(struct lpfc_hba *phba, u16 xri) { struct lpfc_nvmet_rcv_ctx *ctxp; @@ -242,7 +242,7 @@ lpfc_nvmet_get_ctx_for_xri(struct lpfc_hba *phba, u16 xri) return NULL; } -struct lpfc_nvmet_rcv_ctx * +static struct lpfc_nvmet_rcv_ctx * lpfc_nvmet_get_ctx_for_oxid(struct lpfc_hba *phba, u16 oxid, u32 sid) { struct lpfc_nvmet_rcv_ctx *ctxp; diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c index 081c4357958e..dea8b9df27c0 100644 --- a/drivers/scsi/lpfc/lpfc_sli.c +++ b/drivers/scsi/lpfc/lpfc_sli.c @@ -108,7 +108,7 @@ lpfc_get_iocb_from_iocbq(struct lpfc_iocbq *iocbq) * endianness. This function can be called with or without * lock. **/ -void +static void lpfc_sli4_pcimem_bcopy(void *srcp, void *destp, uint32_t cnt) { uint64_t *src = srcp; @@ -7882,7 +7882,7 @@ lpfc_sli4_mbox_completions_pending(struct lpfc_hba *phba) * and will process all the completions associated with the eq for the * mailbox completion queue. **/ -bool +static bool lpfc_sli4_process_missed_mbox_completions(struct lpfc_hba *phba) { struct lpfc_sli4_hba *sli4_hba = &phba->sli4_hba; -- 2.17.1