Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8968606ybi; Tue, 23 Jul 2019 19:07:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxRn5Iqc9T7U1i6TKokcIZIowtVoecNQ4jyLo7MjKmkF4EogYmTUImxsOM2Kf9sQBa9J58p X-Received: by 2002:a17:902:9896:: with SMTP id s22mr79856707plp.4.1563934071939; Tue, 23 Jul 2019 19:07:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563934071; cv=none; d=google.com; s=arc-20160816; b=TaFf0XVlPdeJhF9pKwlC0gBbhbkBSCQYzXl1Ujs/QtHf5SHh6qQ4RcogWbnN4Bc754 ixux0pZLDOiohqzvgitCOUwClXVKgD98NgODlrgnIl09K0jHHSsJie4W1v2WP3FqtQQU s/IwQqaXY1PuTRruOioulxEP+R7FsyBw7FNW+fzNXxW/SW/w/dlaqKfFHozd9SWBcmPT f1Dcj/L1xdJ6mqNosTTEmpe2FNf9KzxWedvxkgkSdDUl8QaWqX2G2CWN8SCeagtocuAe R0Ag3Qd+2XvgqBIf4g+RvdIQu5JhkgbdpZ3oRq/Q2M9VxxwGEvp/ZIITFIfof8fKRBaG o7yg== 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=g2TuUDb+cbDlJb1CcmjRJgoW+PPf4FRjIQWj89hrcAI=; b=kwxTHIJlmRM4qTdjBu5708H7dw0Chl6LV1BmoyyF8ZJkfc3HtQCABPOxPN4icb6jBN hqgo+4BfMCNXDICcfvULJOfhF1VhVC/kO6p6k7rKtnOf6z6xMQZHel5SrJAqWzoc6VC/ wmqasUSdAXvGKDldvHmdYR7G5Nzpc/Rzyfj14yjSX1S0u8HPZg6xEurtnCVsh0ozy7zf 6aS4woyTf5oZwG8bEBzWPHdCQvwKctESSI63Qmq8m7FMQV2lFA6yStERvmKWC7IhlUjJ d1pWqkF0MSTP1hPzN0D9ZZK92/xDS8Er7/76WIkcOjSirv5GYZq+0UXSYIY/zqWEc7F8 4Oew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=bsrBTIGw; 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 s19si12847973pgm.291.2019.07.23.19.07.35; Tue, 23 Jul 2019 19:07:51 -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=bsrBTIGw; 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 S2391403AbfGWSWd (ORCPT + 99 others); Tue, 23 Jul 2019 14:22:33 -0400 Received: from mail-vk1-f196.google.com ([209.85.221.196]:41902 "EHLO mail-vk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733219AbfGWSWc (ORCPT ); Tue, 23 Jul 2019 14:22:32 -0400 Received: by mail-vk1-f196.google.com with SMTP id u64so8849771vku.8 for ; Tue, 23 Jul 2019 11:22:32 -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=g2TuUDb+cbDlJb1CcmjRJgoW+PPf4FRjIQWj89hrcAI=; b=bsrBTIGwdheinL1kf92PRexRZFy2EFU93ZC/0biGWGKiSn3NfNGLvKJ11e57dBGbbI zs+v2qiU6SZAaCEJJrJLNrxK5JUcT7g+al+3r9rDCPIoCGFdj+qmanISatk4NkGr+sfw iMP2+IPYLxPPX2pXRHOdkFAjpzY0dioP53FaM= 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=g2TuUDb+cbDlJb1CcmjRJgoW+PPf4FRjIQWj89hrcAI=; b=JF1gBpzIHbsotgPfxsbvhEWhk9GkuEQVQIwNRtKITamRKCXZHr4nMk0c9FE3ocfcBA 4pCunPFnSuOV4aiJsy6yxSOghKwk+eWVuYjZpKojnQSvxEcHQ8/WnxYQHKZHoz7I/L2w SV7h3pBjpiUUsJZmv5xdfZLtGBn9u5LEw2YBvsjxZ97W79cCSQ1eU2DKY5gbtRM4VNdi EXsMQMTWAgNE+m4KO93ZTMzSh2ZJ79M/VYN2125r7RWU7Nja/C+1171wxPZlaGKPV1KA aLOIsbs6i3szr/PdzPoL8jbuxjULGgJS2pQMJX8zXu0pPeSZg9fUplIQwQ3Qi2So+smG Tz9Q== X-Gm-Message-State: APjAAAUXQhLfrEm396UMa/SyudqpibLS1O1pef6vc1WrKzypAOoO44R3 ihvbQX41GXNEk31WlXwTO9QAyjt/f4E6d/XQKV3/Ug== X-Received: by 2002:ac5:c4cc:: with SMTP id a12mr8150601vkl.28.1563906151394; Tue, 23 Jul 2019 11:22:31 -0700 (PDT) MIME-Version: 1.0 References: <20190723143450.33916-1-yuehaibing@huawei.com> In-Reply-To: <20190723143450.33916-1-yuehaibing@huawei.com> From: Sumit Saxena Date: Tue, 23 Jul 2019 23:52:19 +0530 Message-ID: Subject: Re: [PATCH -next] scsi: megaraid_sas: Make some 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 Tue, Jul 23, 2019 at 8:05 PM YueHaibing wrote: > > Fix sparse warnings: > > drivers/scsi/megaraid/megaraid_sas_fusion.c:541:1: warning: symbol 'megasas_alloc_cmdlist_fusion' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:580:1: warning: symbol 'megasas_alloc_request_fusion' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:661:1: warning: symbol 'megasas_alloc_reply_fusion' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:738:1: warning: symbol 'megasas_alloc_rdpq_fusion' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:920:1: warning: symbol 'megasas_alloc_cmds_fusion' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:1740:1: warning: symbol 'megasas_init_adapter_fusion' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:1966:1: warning: symbol 'map_cmd_status' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:2379:1: warning: symbol 'megasas_set_pd_lba' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:2718:1: warning: symbol 'megasas_build_ldio_fusion' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:3215:1: warning: symbol 'megasas_build_io_fusion' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_fusion.c:3328:6: warning: symbol 'megasas_prepare_secondRaid1_IO' 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 | 27 ++++++++++++++------------- > 1 file changed, 14 insertions(+), 13 deletions(-) > > diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c > index a32b3f0..120e3c4 100644 > --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c > +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c > @@ -537,7 +537,7 @@ static int megasas_create_sg_sense_fusion(struct megasas_instance *instance) > return 0; > } > > -int > +static int > megasas_alloc_cmdlist_fusion(struct megasas_instance *instance) > { > u32 max_mpt_cmd, i, j; > @@ -576,7 +576,8 @@ megasas_alloc_cmdlist_fusion(struct megasas_instance *instance) > > return 0; > } > -int > + > +static int > megasas_alloc_request_fusion(struct megasas_instance *instance) > { > struct fusion_context *fusion; > @@ -657,7 +658,7 @@ megasas_alloc_request_fusion(struct megasas_instance *instance) > return 0; > } > > -int > +static int > megasas_alloc_reply_fusion(struct megasas_instance *instance) > { > int i, count; > @@ -734,7 +735,7 @@ megasas_alloc_reply_fusion(struct megasas_instance *instance) > return 0; > } > > -int > +static int > megasas_alloc_rdpq_fusion(struct megasas_instance *instance) > { > int i, j, k, msix_count; > @@ -916,7 +917,7 @@ megasas_free_reply_fusion(struct megasas_instance *instance) { > * and is used as SMID of the cmd. > * SMID value range is from 1 to max_fw_cmds. > */ > -int > +static int > megasas_alloc_cmds_fusion(struct megasas_instance *instance) > { > int i; > @@ -1736,7 +1737,7 @@ static inline void megasas_free_ioc_init_cmd(struct megasas_instance *instance) > * > * This is the main function for initializing firmware. > */ > -u32 > +static u32 > megasas_init_adapter_fusion(struct megasas_instance *instance) > { > struct fusion_context *fusion; > @@ -1962,7 +1963,7 @@ megasas_fusion_stop_watchdog(struct megasas_instance *instance) > * @ext_status : ext status of cmd returned by FW > */ > > -void > +static void > map_cmd_status(struct fusion_context *fusion, > struct scsi_cmnd *scmd, u8 status, u8 ext_status, > u32 data_length, u8 *sense) > @@ -2375,7 +2376,7 @@ int megasas_make_sgl(struct megasas_instance *instance, struct scsi_cmnd *scp, > * > * Used to set the PD LBA in CDB for FP IOs > */ > -void > +static void > megasas_set_pd_lba(struct MPI2_RAID_SCSI_IO_REQUEST *io_request, u8 cdb_len, > struct IO_REQUEST_INFO *io_info, struct scsi_cmnd *scp, > struct MR_DRV_RAID_MAP_ALL *local_map_ptr, u32 ref_tag) > @@ -2714,7 +2715,7 @@ megasas_set_raidflag_cpu_affinity(struct fusion_context *fusion, > * Prepares the io_request and chain elements (sg_frame) for IO > * The IO can be for PD (Fast Path) or LD > */ > -void > +static void > megasas_build_ldio_fusion(struct megasas_instance *instance, > struct scsi_cmnd *scp, > struct megasas_cmd_fusion *cmd) > @@ -3211,7 +3212,7 @@ megasas_build_syspd_fusion(struct megasas_instance *instance, > * Invokes helper functions to prepare request frames > * and sets flags appropriate for IO/Non-IO cmd > */ > -int > +static int > megasas_build_io_fusion(struct megasas_instance *instance, > struct scsi_cmnd *scp, > struct megasas_cmd_fusion *cmd) > @@ -3325,9 +3326,9 @@ megasas_get_request_descriptor(struct megasas_instance *instance, u16 index) > /* megasas_prepate_secondRaid1_IO > * It prepares the raid 1 second IO > */ > -void megasas_prepare_secondRaid1_IO(struct megasas_instance *instance, > - struct megasas_cmd_fusion *cmd, > - struct megasas_cmd_fusion *r1_cmd) > +static void megasas_prepare_secondRaid1_IO(struct megasas_instance *instance, > + struct megasas_cmd_fusion *cmd, > + struct megasas_cmd_fusion *r1_cmd) > { > union MEGASAS_REQUEST_DESCRIPTOR_UNION *req_desc, *req_desc2 = NULL; > struct fusion_context *fusion; > -- > 2.7.4 > >