Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1942399ybi; Thu, 4 Jul 2019 02:28:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqy31xqUKBKsaxA2C70jBoWZHLmU/W9sHzo9MmHnfD5Ul+83KRG7DbJrUL1Io5S/E/DknHFQ X-Received: by 2002:a63:c302:: with SMTP id c2mr40038221pgd.300.1562232483266; Thu, 04 Jul 2019 02:28:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562232483; cv=none; d=google.com; s=arc-20160816; b=hfjFtCXFp6qBX5Jlf68y2SFcqdZ8lFqkXhUT9Ig3r3JazZ3sdFONsfFhrz0y5SPuvw 2WFqsB6JPyj1sSx1JtMsKk/B5pjr1ZzwHWSPPLTXjXuXlQvadrOQnK1q6jnlt/Uerdbn h7xDXHyhYLIKT27eWILI1yjoy+pIvjpfNevBL28aZ6K+iJNgilV5nWDfHdTxZa2y3IL/ gdffT6odwX36UzXHLzMIhbZg8QwF+YR4bLrLfn40ri8oN4P5g1lWpjOfcrGV0zgU5Biv bhlS/dZgc2Wrwpg8KV/HgSVUB5Zuk7zEbmcp5sC0Ejq8JgqjG8nbxoidpITY9VIZTn2q 77Qw== 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=Hyh+/KgfYoPmkb5oXW5TFTjDUdeJWMjqBJydbIwAvyU=; b=Eq3kFuRZI8rxJLea9VwZevYtbDqpxI6QqzCP3QpVpTZgaZnN2A3TZvr3K+3x9VfHtm HCuTIHnDWAHkR3xz2K4hE4pcwXBQPBMNrTuYxAi3mqzx2cwuiJZ694Nk7CstebOKN7lS MbgRM4Aqq5GZHiS8YX4TwzWsAiDkpxGcQKO3KaiKSBZK9/mmd35H1eNC3qFta9nuIaGJ rXSPUuBNeq8pjznDWOOrw28z+BuK4eqX/qNVhcJYw3dY9AEJTFInPciHQEI+UA6WhOSO Ou0ZQDQmw9WqdYk1dNcGukeGZrR28sFZgVrlacQzeqjSY9LUO8omrkGo9/XM8K9l+0ar O+9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=FO4I7i7B; 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 fr1si4367936pjb.57.2019.07.04.02.27.47; Thu, 04 Jul 2019 02:28:03 -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=FO4I7i7B; 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 S1727356AbfGDJ0Z (ORCPT + 99 others); Thu, 4 Jul 2019 05:26:25 -0400 Received: from mail-vs1-f67.google.com ([209.85.217.67]:33987 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727204AbfGDJ0Y (ORCPT ); Thu, 4 Jul 2019 05:26:24 -0400 Received: by mail-vs1-f67.google.com with SMTP id m23so1577331vso.1 for ; Thu, 04 Jul 2019 02:26:23 -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=Hyh+/KgfYoPmkb5oXW5TFTjDUdeJWMjqBJydbIwAvyU=; b=FO4I7i7BpQtxsmEcVH7rbJ5NUSzstdOIcpD5adeyGlSfR2BfnQZLEh15vmvaq2yn7Q A4i+cWlyysVUI5vI/GySsapidnWxeomqKzmytMz5MLvNku3eq7rl66wocYb3cAxTwyZP F8hXW4V7CIl9mRbm+tlz5UCu/TZYtjav5P8JQ= 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=Hyh+/KgfYoPmkb5oXW5TFTjDUdeJWMjqBJydbIwAvyU=; b=DRPgHXYfQluFJLCsp203m9K8NSWHVTdg9q3GSVx0jt+5eZ3CFQfnCtVFVqCJfY5td9 woOfIuepO/+90jBibqq50xTtKM3Ut3zJFKG6Yk2HCKFzSn5N+N5ExNDv/lD1632WDTdc Cv6Fq8JJkCODK1BoF6EreUAuoa1vguauO+tDgehy7S6YsMrxxpmkcMgWpFuobPZE1pWf xiuR/EppUck+r4+KW0nHvw4oJGJMRMq53zDcbl/VKOypfbSUJ5mzTIu5oA0GagmJB3lO HDi+AnpJYb+olZetFmhtQCt3eJvIBSOGArSGfkbyLxbTKNWn3wYUz5dYBI2ehrkXx4CY Fnsg== X-Gm-Message-State: APjAAAVzKl6YeBlubn4QXK9MxOZAZjwVo4vfs45mA3lBJR0DMfzI6RP5 HJ358FrUdwAEZEreF1qBwwkcr7j+/RX1LWh5Erihnw== X-Received: by 2002:a67:8c84:: with SMTP id o126mr21371282vsd.122.1562232383326; Thu, 04 Jul 2019 02:26:23 -0700 (PDT) MIME-Version: 1.0 References: <20190702130114.29356-1-yuehaibing@huawei.com> In-Reply-To: <20190702130114.29356-1-yuehaibing@huawei.com> From: Sumit Saxena Date: Thu, 4 Jul 2019 14:56:12 +0530 Message-ID: Subject: Re: [PATCH -next] scsi: megaraid_sas: Make some symbols 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 2, 2019 at 6:34 PM YueHaibing wrote: > > Fix sparse warnings: > > drivers/scsi/megaraid/megaraid_sas_base.c:271:1: warning: symbol 'megasas_issue_dcmd' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_base.c:2227:6: warning: symbol 'megasas_do_ocr' was not declared. Should it be static? > drivers/scsi/megaraid/megaraid_sas_base.c:3194:25: warning: symbol 'megaraid_host_attrs' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing Acked-by: Sumit Saxena > --- > drivers/scsi/megaraid/megaraid_sas_base.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c > index 80ab970..49e0f3d 100644 > --- a/drivers/scsi/megaraid/megaraid_sas_base.c > +++ b/drivers/scsi/megaraid/megaraid_sas_base.c > @@ -280,7 +280,7 @@ void megasas_set_dma_settings(struct megasas_instance *instance, > } > } > > -void > +static void > megasas_issue_dcmd(struct megasas_instance *instance, struct megasas_cmd *cmd) > { > instance->instancet->fire_cmd(instance, > @@ -2237,7 +2237,7 @@ megasas_internal_reset_defer_cmds(struct megasas_instance *instance); > static void > process_fw_state_change_wq(struct work_struct *work); > > -void megasas_do_ocr(struct megasas_instance *instance) > +static void megasas_do_ocr(struct megasas_instance *instance) > { > if ((instance->pdev->device == PCI_DEVICE_ID_LSI_SAS1064R) || > (instance->pdev->device == PCI_DEVICE_ID_DELL_PERC5) || > @@ -3303,7 +3303,7 @@ static DEVICE_ATTR_RO(fw_cmds_outstanding); > static DEVICE_ATTR_RO(dump_system_regs); > static DEVICE_ATTR_RO(raid_map_id); > > -struct device_attribute *megaraid_host_attrs[] = { > +static struct device_attribute *megaraid_host_attrs[] = { > &dev_attr_fw_crash_buffer_size, > &dev_attr_fw_crash_buffer, > &dev_attr_fw_crash_state, > -- > 2.7.4 > >