From patchwork Fri Jul 26 13:58:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 11061143 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4F9F213A4 for ; Fri, 26 Jul 2019 13:58:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D85F26222 for ; Fri, 26 Jul 2019 13:58:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 31CC728A3B; Fri, 26 Jul 2019 13:58:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE0F326222 for ; Fri, 26 Jul 2019 13:58:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387778AbfGZN6q (ORCPT ); Fri, 26 Jul 2019 09:58:46 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:41812 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387753AbfGZN6p (ORCPT ); Fri, 26 Jul 2019 09:58:45 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 4F8FD5449E7E1747B8BC; Fri, 26 Jul 2019 21:58:43 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Fri, 26 Jul 2019 21:58:33 +0800 From: YueHaibing To: , , , CC: , , YueHaibing Subject: [PATCH -next] scsi: initio: Make some functions static Date: Fri, 26 Jul 2019 21:58:14 +0800 Message-ID: <20190726135814.48760-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix sparse warnings: drivers/scsi/initio.c:881:22: warning: symbol 'initio_find_busy_scb' was not declared. Should it be static? drivers/scsi/initio.c:919:22: warning: symbol 'initio_find_done_scb' was not declared. Should it be static? drivers/scsi/initio.c:1657:5: warning: symbol 'initio_state_7' was not declared. Should it be static? drivers/scsi/initio.c:1743:5: warning: symbol 'initio_xpad_in' was not declared. Should it be static? drivers/scsi/initio.c:1767:5: warning: symbol 'initio_xpad_out' was not declared. Should it be static? drivers/scsi/initio.c:1792:5: warning: symbol 'initio_status_msg' was not declared. Should it be static? drivers/scsi/initio.c:1842:5: warning: symbol 'int_initio_busfree' was not declared. Should it be static? drivers/scsi/initio.c:1912:5: warning: symbol 'int_initio_resel' was not declared. Should it be static? drivers/scsi/initio.c:2368:5: warning: symbol 'initio_bus_device_reset' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/scsi/initio.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/scsi/initio.c b/drivers/scsi/initio.c index 41fd64c..ed9e87a 100644 --- a/drivers/scsi/initio.c +++ b/drivers/scsi/initio.c @@ -864,7 +864,8 @@ static void initio_unlink_busy_scb(struct initio_host * host, struct scsi_ctrl_b return; } -struct scsi_ctrl_blk *initio_find_busy_scb(struct initio_host * host, u16 tarlun) +static struct +scsi_ctrl_blk *initio_find_busy_scb(struct initio_host *host, u16 tarlun) { struct scsi_ctrl_blk *tmp, *prev; u16 scbp_tarlun; @@ -902,7 +903,8 @@ static void initio_append_done_scb(struct initio_host * host, struct scsi_ctrl_b } } -struct scsi_ctrl_blk *initio_find_done_scb(struct initio_host * host) +static struct +scsi_ctrl_blk *initio_find_done_scb(struct initio_host *host) { struct scsi_ctrl_blk *tmp; @@ -1640,7 +1642,7 @@ static int initio_state_6(struct initio_host * host) * */ -int initio_state_7(struct initio_host * host) +static int initio_state_7(struct initio_host *host) { int cnt, i; @@ -1726,7 +1728,7 @@ static int initio_xfer_data_out(struct initio_host * host) return 0; /* return to OS, wait xfer done , let jas_isr come in */ } -int initio_xpad_in(struct initio_host * host) +static int initio_xpad_in(struct initio_host *host) { struct scsi_ctrl_blk *scb = host->active; struct target_control *active_tc = host->active_tc; @@ -1750,7 +1752,7 @@ int initio_xpad_in(struct initio_host * host) } } -int initio_xpad_out(struct initio_host * host) +static int initio_xpad_out(struct initio_host *host) { struct scsi_ctrl_blk *scb = host->active; struct target_control *active_tc = host->active_tc; @@ -1775,7 +1777,7 @@ int initio_xpad_out(struct initio_host * host) } } -int initio_status_msg(struct initio_host * host) +static int initio_status_msg(struct initio_host *host) { /* status & MSG_IN */ struct scsi_ctrl_blk *scb = host->active; u8 msg; @@ -1825,7 +1827,7 @@ int initio_status_msg(struct initio_host * host) /* scsi bus free */ -int int_initio_busfree(struct initio_host * host) +static int int_initio_busfree(struct initio_host *host) { struct scsi_ctrl_blk *scb = host->active; @@ -1895,7 +1897,7 @@ static int int_initio_scsi_rst(struct initio_host * host) * and continue processing that command. */ -int int_initio_resel(struct initio_host * host) +static int int_initio_resel(struct initio_host *host) { struct scsi_ctrl_blk *scb; struct target_control *active_tc; @@ -2351,7 +2353,7 @@ static void initio_select_atn3(struct initio_host * host, struct scsi_ctrl_blk * * Perform a device reset and abort all pending SCBs for the * victim device */ -int initio_bus_device_reset(struct initio_host * host) +static int initio_bus_device_reset(struct initio_host *host) { struct scsi_ctrl_blk *scb = host->active; struct target_control *active_tc = host->active_tc;