From patchwork Thu Apr 11 21:53:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10896953 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 10DFA14DB for ; Thu, 11 Apr 2019 21:53:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF5E528E3D for ; Thu, 11 Apr 2019 21:53:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E24F628E24; Thu, 11 Apr 2019 21:53:46 +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 7F26928E29 for ; Thu, 11 Apr 2019 21:53:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726842AbfDKVxq (ORCPT ); Thu, 11 Apr 2019 17:53:46 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:37992 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726714AbfDKVxp (ORCPT ); Thu, 11 Apr 2019 17:53:45 -0400 Received: by mail-pg1-f193.google.com with SMTP id j26so4135813pgl.5 for ; Thu, 11 Apr 2019 14:53:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AtKM9bQ7xBn2TbwOYRawdmUVtD8JV+/Pes17QrCrcm4=; b=MpKEsZJVjmtAhMbzCrlpPGzvXSLv5xQg+Jmcj0iKRYdMZHEwQ3QnLOsJe/x9y+jllh XdzSTs52kolta2kDFcNTn2UzinDqjWyJo6qMgCn+4oVDUlmMLOgaTcHX2+qzHYLJpyMw DFWA68P2W/eSg+EQ//WRbPEaWeFWYvKFWW62lcbg4XdTh+QtAv7xzHPMUTf45j8MmeB6 FbysN6Lw34ArgTb2ZzbEyGdbDaI5GbQMCGMnc3yQStENWWmIg5BYjPC6vm2JsJ7C6qlX g7C+5PxtDSTJj3uWc0w61OI3wVaU8+RPwnzIM9erpfZ/j7Ld8iGPxWzYnzqGAYai94aP DSww== X-Gm-Message-State: APjAAAUXp7ftY5050tMlc8xqdOqEnvJDNQF0MXlbEpSCyz/RUB3RdanB rS3qYzJBOJ0AWfwsKGQwH4M= X-Google-Smtp-Source: APXvYqz+Wf0ygR5GfYpmLsHHVkHMQg3ekuJzdIUJVtO2gw2L68EBNSnXOOCrZANdF0QV6lzkpaGEQg== X-Received: by 2002:a63:78b:: with SMTP id 133mr18079636pgh.307.1555019625038; Thu, 11 Apr 2019 14:53:45 -0700 (PDT) Received: from desktop-bart.svl.corp.google.com ([2620:15c:2cd:203:5cdc:422c:7b28:ebb5]) by smtp.gmail.com with ESMTPSA id o67sm91651066pga.55.2019.04.11.14.53.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2019 14:53:44 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" , "James E . J . Bottomley" Cc: linux-scsi@vger.kernel.org, Christoph Hellwig , Bart Van Assche , Himanshu Madhani , Giridhar Malavali Subject: [PATCH 06/10] qla2xxx: Declare qla24xx_build_scsi_crc_2_iocbs() static Date: Thu, 11 Apr 2019 14:53:21 -0700 Message-Id: <20190411215325.122837-7-bvanassche@acm.org> X-Mailer: git-send-email 2.20.GIT In-Reply-To: <20190411215325.122837-1-bvanassche@acm.org> References: <20190411215325.122837-1-bvanassche@acm.org> MIME-Version: 1.0 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 Since qla24xx_build_scsi_crc_2_iocbs() is only used inside a single source file, declare this function static. Cc: Himanshu Madhani Cc: Giridhar Malavali Signed-off-by: Bart Van Assche --- drivers/scsi/qla2xxx/qla_gbl.h | 2 -- drivers/scsi/qla2xxx/qla_iocb.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_gbl.h b/drivers/scsi/qla2xxx/qla_gbl.h index cdac5774029f..05c54cc4b78c 100644 --- a/drivers/scsi/qla2xxx/qla_gbl.h +++ b/drivers/scsi/qla2xxx/qla_gbl.h @@ -294,8 +294,6 @@ extern int qla24xx_walk_and_build_prot_sglist(struct qla_hw_data *, srb_t *, uint32_t *, uint16_t, struct qla_tgt_cmd *); extern int qla24xx_get_one_block_sg(uint32_t, struct qla2_sgx *, uint32_t *); extern int qla24xx_configure_prot_mode(srb_t *, uint16_t *); -extern int qla24xx_build_scsi_crc_2_iocbs(srb_t *, - struct cmd_type_crc_2 *, uint16_t, uint16_t, uint16_t); /* * Global Function Prototypes in qla_mbx.c source file. diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c index 528dc71cb275..5ec975e110c5 100644 --- a/drivers/scsi/qla2xxx/qla_iocb.c +++ b/drivers/scsi/qla2xxx/qla_iocb.c @@ -1404,7 +1404,7 @@ qla24xx_walk_and_build_prot_sglist(struct qla_hw_data *ha, srb_t *sp, * @tot_prot_dsds: Total number of segments with protection information * @fw_prot_opts: Protection options to be passed to firmware */ -inline int +static inline int qla24xx_build_scsi_crc_2_iocbs(srb_t *sp, struct cmd_type_crc_2 *cmd_pkt, uint16_t tot_dsds, uint16_t tot_prot_dsds, uint16_t fw_prot_opts) {