Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3724830ybh; Tue, 6 Aug 2019 00:14:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxB25JSvHITCdRaI9JUfacG5ClsFST+3tSVpe2KjoXWreGvvG56g7zT6OLsTCs4tdaxXsvz X-Received: by 2002:a17:902:aa83:: with SMTP id d3mr1720334plr.74.1565075642954; Tue, 06 Aug 2019 00:14:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565075642; cv=none; d=google.com; s=arc-20160816; b=UI/ow50PgAE+X4LYb8e6NjGjmnzDtzK1LEyYoO03mTDteIbBTjcHCrENKQAhS2NF1N X+EeAPhDAXZL/V2EVc8VvjF/bokXwiVrCFcGgyvAQPkwDKz+nDzjCnNAvoClGAL1goQC V1WwUSLqtReJkbg089XQC8gqi1RSmBVlxq/1b6fm7vfhPMUVfz5VIiFE54Pm1F9CDDAg TvcjuI4TA4EqNzbioRKHyJuz8X3aFb7edXWRclSt8u7fp1k4nZaOLF39UAyKPJ1EwZZZ h/CyHy/E8jES2hNJerEd7Ii2uVti42d/hMeBcxteAnD7rf2PHUAMPEcUa0syUgOn2G8Y hNRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=n8Ci/8H9wUX2m10wfVRVtTIcb057+1T5ctq2J+f6Y+w=; b=pKSMOQjmVvJ0BZZxDldugGSHtz7DlgWa5nydpoW2eh6fRy0w31Yz/QCbxNmrbvLNDZ fvjO0xSfRUdHzZJiqzIMT7Jz57JjXMxle5dF5RthursZVhFbbODvlbHQ0u7U6j73T/Kv 2Rf3PpbPwbuBDGzh7RN5upxJMpg9IrbBBYUw5dV58wSuJYWN1HVptZQAds/TqA5Wt2i8 FdHzLtD47lnsmpG3wfGR6q9gtWszXvfh64CF398dtS2d5mXprZTJJF/2V0xRiyrglVXk rv86AJ5Vys54Lmaj4uNuRd3DqwbMrcTi6MzfdSJGDRJkUH8jDJFEvhFsdWoo27LoKGsT Kv9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=L4bV7RoJ; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9si14184955pjv.67.2019.08.06.00.13.47; Tue, 06 Aug 2019 00:14:02 -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; dkim=pass header.i=@broadcom.com header.s=google header.b=L4bV7RoJ; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732053AbfHFHLv (ORCPT + 99 others); Tue, 6 Aug 2019 03:11:51 -0400 Received: from mail-vk1-f195.google.com ([209.85.221.195]:40786 "EHLO mail-vk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731576AbfHFHLu (ORCPT ); Tue, 6 Aug 2019 03:11:50 -0400 Received: by mail-vk1-f195.google.com with SMTP id s16so17107330vke.7 for ; Tue, 06 Aug 2019 00:11:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=n8Ci/8H9wUX2m10wfVRVtTIcb057+1T5ctq2J+f6Y+w=; b=L4bV7RoJjNCz5iprmtYNV/GYfL8PvHtlYPWeKdPrNLD1WPNHQPSokIzRc9q0QuyP2x WTEdX4UNSTmIg3O1jFWfRPvWZxiMqrEuxNk/1lj4DyEhApWJm27fI4oJnnCSzx3Wh3aU Cdpi3YNAd5TKzlYoW4sdPGS0XAkrTRgjqkjuw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=n8Ci/8H9wUX2m10wfVRVtTIcb057+1T5ctq2J+f6Y+w=; b=L4FOO/3qeTwizHRQ1j2ekJZVLbjKEwvVQGnkitJR3QBLIp9Iw0pivjG2uWphQyyL81 LPAvDQnHe6JucMAk2WfEIm7egKRB2KUIOMk9cDKdz3u9FHw1rUYI1s5wT8Wg5lIcI/YW XfNjFqbG5pvto1umiMHiqj863HqaNVC2tvKetjjSUexZX47DPpI0jc6M7cquFEoaqqxV u7k5RkUeYmPKd7mswt4jKXuWg5rEoIXpIn1vjQbrdrQsPZwcVUZftHYjwHxh4Bfg2ybJ t036LKqTSp+/vkeEYnUXHuAenPf2yXapkGT5ZnGYfKZ+sr6Sd5obee68PbC/Ez4G3VLq 4vkw== X-Gm-Message-State: APjAAAVmGNY8iOun2JTWQ6FOGtdq4FlkA8tEa+Bhmywx5v+yVS9OdnHZ gCP9F4fueCAwor6UKrqgddwBpx2X0WQrd5FDOQ5MJA== X-Received: by 2002:a1f:8887:: with SMTP id k129mr621675vkd.3.1565075509481; Tue, 06 Aug 2019 00:11:49 -0700 (PDT) MIME-Version: 1.0 References: <20190726135540.48780-1-yuehaibing@huawei.com> In-Reply-To: <20190726135540.48780-1-yuehaibing@huawei.com> From: Sumit Saxena Date: Tue, 6 Aug 2019 12:41:37 +0530 Message-ID: Subject: Re: [PATCH -next] scsi: megaraid_sas: Make a bunch of functions static To: YueHaibing Cc: Kashyap Desai , Shivasharan Srikanteshwara , "James E.J. Bottomley" , "Martin K. Petersen" , LKML , Linux SCSI List , "PDL,MEGARAIDLINUX" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 26, 2019 at 7:26 PM YueHaibing wrote: > > Fix sparse warnings: > > drivers/scsi/megaraid/megaraid_sas_fusion.c:3369:1: warning: symbol 'complete_cmd_fusion' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:3535:6: warning: symbol 'megasas_sync_irqs' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:3554:1: warning: symbol 'megasas_complete_cmd_dpc_fusion' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:3573:13: warning: symbol 'megasas_isr_fusion' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:3604:1: warning: symbol 'build_mpt_mfi_pass_thru' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:3661:40: warning: symbol 'build_mpt_cmd' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:3688:1: warning: symbol 'megasas_issue_dcmd_fusion' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:3881:5: warning: symbol 'megasas_wait_for_outstanding_fusion' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:4005:6: warning: symbol 'megasas_refire_mgmt_cmd' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:4525:25: warning: symbol 'megasas_get_peer_instance' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:4825:7: warning: symbol 'megasas_fusion_crash_dump' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing Acked-by: Sumit Saxena > --- > drivers/scsi/megaraid/megaraid_sas_fusion.c | 26 ++++++++++++++------------ > 1 file changed, 14 insertions(+), 12 deletions(-) > > diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c > index 120e3c4..10ef99e 100644 > --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c > +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c > @@ -3511,7 +3511,7 @@ megasas_complete_r1_command(struct megasas_instance *instance, > * @instance: Adapter soft state > * Completes all commands that is in reply descriptor queue > */ > -int > +static int > complete_cmd_fusion(struct megasas_instance *instance, u32 MSIxIndex, > struct megasas_irq_context *irq_context) > { > @@ -3702,7 +3702,7 @@ static void megasas_enable_irq_poll(struct megasas_instance *instance) > * megasas_sync_irqs - Synchronizes all IRQs owned by adapter > * @instance: Adapter soft state > */ > -void megasas_sync_irqs(unsigned long instance_addr) > +static void megasas_sync_irqs(unsigned long instance_addr) > { > u32 count, i; > struct megasas_instance *instance = > @@ -3760,7 +3760,7 @@ int megasas_irqpoll(struct irq_poll *irqpoll, int budget) > * > * Tasklet to complete cmds > */ > -void > +static void > megasas_complete_cmd_dpc_fusion(unsigned long instance_addr) > { > struct megasas_instance *instance = > @@ -3780,7 +3780,7 @@ megasas_complete_cmd_dpc_fusion(unsigned long instance_addr) > /** > * megasas_isr_fusion - isr entry point > */ > -irqreturn_t megasas_isr_fusion(int irq, void *devp) > +static irqreturn_t megasas_isr_fusion(int irq, void *devp) > { > struct megasas_irq_context *irq_context = devp; > struct megasas_instance *instance = irq_context->instance; > @@ -3816,7 +3816,7 @@ irqreturn_t megasas_isr_fusion(int irq, void *devp) > * mfi_cmd: megasas_cmd pointer > * > */ > -void > +static void > build_mpt_mfi_pass_thru(struct megasas_instance *instance, > struct megasas_cmd *mfi_cmd) > { > @@ -3874,7 +3874,7 @@ build_mpt_mfi_pass_thru(struct megasas_instance *instance, > * @cmd: mfi cmd to build > * > */ > -union MEGASAS_REQUEST_DESCRIPTOR_UNION * > +static union MEGASAS_REQUEST_DESCRIPTOR_UNION * > build_mpt_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd) > { > union MEGASAS_REQUEST_DESCRIPTOR_UNION *req_desc = NULL; > @@ -3900,7 +3900,7 @@ build_mpt_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd) > * @cmd: mfi cmd pointer > * > */ > -void > +static void > megasas_issue_dcmd_fusion(struct megasas_instance *instance, > struct megasas_cmd *cmd) > { > @@ -4096,8 +4096,9 @@ static inline void megasas_trigger_snap_dump(struct megasas_instance *instance) > } > > /* This function waits for outstanding commands on fusion to complete */ > -int megasas_wait_for_outstanding_fusion(struct megasas_instance *instance, > - int reason, int *convert) > +static int > +megasas_wait_for_outstanding_fusion(struct megasas_instance *instance, > + int reason, int *convert) > { > int i, outstanding, retval = 0, hb_seconds_missed = 0; > u32 fw_state, abs_state; > @@ -4221,7 +4222,7 @@ void megasas_reset_reply_desc(struct megasas_instance *instance) > * megasas_refire_mgmt_cmd : Re-fire management commands > * @instance: Controller's soft instance > */ > -void megasas_refire_mgmt_cmd(struct megasas_instance *instance) > +static void megasas_refire_mgmt_cmd(struct megasas_instance *instance) > { > int j; > struct megasas_cmd_fusion *cmd_fusion; > @@ -4747,7 +4748,8 @@ int megasas_reset_target_fusion(struct scsi_cmnd *scmd) > } > > /*SRIOV get other instance in cluster if any*/ > -struct megasas_instance *megasas_get_peer_instance(struct megasas_instance *instance) > +static struct > +megasas_instance *megasas_get_peer_instance(struct megasas_instance *instance) > { > int i; > > @@ -5053,7 +5055,7 @@ int megasas_reset_fusion(struct Scsi_Host *shost, int reason) > } > > /* Fusion Crash dump collection */ > -void megasas_fusion_crash_dump(struct megasas_instance *instance) > +static void megasas_fusion_crash_dump(struct megasas_instance *instance) > { > u32 status_reg; > u8 partial_copy = 0; > -- > 2.7.4 > >