Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp429240iol; Thu, 9 Jun 2022 06:43:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNmQCaXZSwKI46QS6SrvTEPnFB1kCr2vK755tVUbicjrW6J+abkfaOSewO70kpD2dCyufP X-Received: by 2002:a17:902:7d8e:b0:162:22ff:495b with SMTP id a14-20020a1709027d8e00b0016222ff495bmr39768062plm.1.1654782189600; Thu, 09 Jun 2022 06:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654782189; cv=none; d=google.com; s=arc-20160816; b=Dsz81SlmScumsASrv/nXZwGTab58iRgGwHbGPDpMe8eIrawQ0e9Czcsh03PAOArCqK qFS35HsjI33Gv5i+nnbrtghQborvs6SwPnNJAYOWaFphKoKUIJZOGxnwEB3vqMASvS9u 0TtcZoHuXAIKS+QrzwRS7oNb8ZvGeO6JX6ngM1Sw+swpxPn+Dc6zWIoecNcm4CMpiayH xvqm3Dx+60n0Kuw86oOqvj/DMBvIdSpRyzCgZmNCoG/a4xRV15zSRf3JUOxyFjWZy/6g 5GoQon6GbkN6fgap3058J8Md/cJHe2gozAORak0jnCNDV3wY64yl9hQG+Mm5WzkxcWLs 0p1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=wKiuPncRsf6jy7CuZeDCVwsgCiinITCaD2xqqRuB548=; b=Xsgy3W53M5Deq+gSEZ6f4uSnV/19AK8V3B5muqAfn0OMN4mYDnmC6yQ0CzbBymJMu3 HyYBwn1pCWjRgmi2h/ByUHIPfn+tTaZy4wjbp6wtQSJUSmdQdj6km89EoVVXaNApVvAE VYBpIciy91g2AHM9SZbMvR0bq9ICfW7XCn/KZ+tRiGDtcU1oeynylLH2pH8lqLIjbm7f jzFQmw3jV8jTbAj3hMWWr5ByIDXFnb8c7/etkVHZo+QBvk6TeP8j5MJSDac/pneDWnwo F6Y0juZ0G7Rnxd1lLnfw7tvbBvuE1VDX0TXwlYUruue2SVZnONdQX3ObOm1g+inMEopS 2bbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e62-20020a636941000000b003fdac19f9easi16914751pgc.733.2022.06.09.06.42.56; Thu, 09 Jun 2022 06:43:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343690AbiFINT5 (ORCPT + 99 others); Thu, 9 Jun 2022 09:19:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243494AbiFINT4 (ORCPT ); Thu, 9 Jun 2022 09:19:56 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A98705FED; Thu, 9 Jun 2022 06:19:53 -0700 (PDT) Received: from kwepemi500015.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4LJl764G4Hz9snJ; Thu, 9 Jun 2022 21:19:30 +0800 (CST) Received: from huawei.com (10.175.127.227) by kwepemi500015.china.huawei.com (7.221.188.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 9 Jun 2022 21:19:49 +0800 From: Zheng Bin To: , , , , CC: , Subject: [PATCH -next] platform/mellanox: make symbol 'nvsw_sn2201_i2c_data' static Date: Thu, 9 Jun 2022 21:33:03 +0800 Message-ID: <20220609133303.1591300-1-zhengbin13@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemi500015.china.huawei.com (7.221.188.92) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warnings: drivers/platform/mellanox/nvsw-sn2201.c: symbol 'nvsw_sn2201_i2c_data' was not declared. Should it be static? Signed-off-by: Zheng Bin --- drivers/platform/mellanox/nvsw-sn2201.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/mellanox/nvsw-sn2201.c b/drivers/platform/mellanox/nvsw-sn2201.c index 0bcdc7c75007..2923daf63b75 100644 --- a/drivers/platform/mellanox/nvsw-sn2201.c +++ b/drivers/platform/mellanox/nvsw-sn2201.c @@ -326,7 +326,7 @@ static struct resource nvsw_sn2201_lpc_res[] = { }; /* SN2201 I2C platform data. */ -struct mlxreg_core_hotplug_platform_data nvsw_sn2201_i2c_data = { +static struct mlxreg_core_hotplug_platform_data nvsw_sn2201_i2c_data = { .irq = NVSW_SN2201_CPLD_SYSIRQ, }; -- 2.31.1