Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1564615pxu; Tue, 24 Nov 2020 03:37:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfkwBzBgcx9cXPgHR0/L6gpSz28YLvKI3SjGeM16JDjbDWDULUHUEhhCTSCd6lQzlGNM3U X-Received: by 2002:a17:906:ae95:: with SMTP id md21mr3591643ejb.425.1606217835152; Tue, 24 Nov 2020 03:37:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606217835; cv=none; d=google.com; s=arc-20160816; b=rkVeBvrrkbNBYe393+rTopoMSBczN5R/b5lf+GupZMFYtnRtsvRT1PDFxMxfJePqvr OUGe2N3nWzDlN7m5MISvDnwtml/WbTIPYJ9RNXK33+OyZg1LkUsnWbtoyjo/guFu0sC6 jpaKEH80dWMjmA7nMX6qLLNWvfLlqnUh9sLZisA/gcmkr5WQtBqyfnzbEg4pojx6tjB4 k/gXtrZyjak2ZZozwAO5kSLVJOlPfD6yQ5NCOSlZHItpxliaGZiXPIaGhQ1+M3NX1Y6M PT4v66TL6JXORW2dRKkpjRmRJB28kG5aK+Tvgt88GXnkFvzLgK7iMNpBVHdJVflI6aM6 /5mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=Dajz5wubsumsldwt/8C6WVzE0/TQWtA17jBeEzfrsvk=; b=fKapL9IPpAUvfZt87X8Qe0rR+oR2dGAXfbe4gxhPlswz3muEkUd7xQ7YWhJtr2nE77 qcEVze1puRgghDGRoPt4SjnFx4TF7aCSV/RsZWvbNu1zfywn3oA7ufdMkgsoGvcSZu9T x8F6VOpV2PFIVfRsv0ByW7ciB47xRVipprL8De9FFtC+Blk91/55LtfE+/2m8RAN/u4h Q13E+sa3gPNKSVm38VXGHl6bQ046t/7cUz29nkIkodnmEK/0+PVt3cfnNCdPzhxLsdkW gYH1KD40rZOPWMVupnoz/NFDqJOkoTpQo1WSNy7nCzLhnOkWf0rjMEpZnUJ59n7it80l /8aA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o24si681488edz.608.2020.11.24.03.36.52; Tue, 24 Nov 2020 03:37:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732792AbgKXLb0 (ORCPT + 99 others); Tue, 24 Nov 2020 06:31:26 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:8397 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728346AbgKXLb0 (ORCPT ); Tue, 24 Nov 2020 06:31:26 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CgMKM2hG2z6ybj; Tue, 24 Nov 2020 19:31:03 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Tue, 24 Nov 2020 19:31:13 +0800 From: Zou Wei To: , , , CC: , , , Zou Wei Subject: [PATCH -next] pinctrl: pinctrl-microchip-sgpio: Mark some symbols with static keyword Date: Tue, 24 Nov 2020 19:42:53 +0800 Message-ID: <1606218173-3722-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warnings: drivers/pinctrl/pinctrl-microchip-sgpio.c:63:31: warning: symbol 'properties_luton' was not declared. Should it be static? drivers/pinctrl/pinctrl-microchip-sgpio.c:68:31: warning: symbol 'properties_ocelot' was not declared. Should it be static? drivers/pinctrl/pinctrl-microchip-sgpio.c:73:31: warning: symbol 'properties_sparx5' was not declared. Should it be static? Signed-off-by: Zou Wei --- drivers/pinctrl/pinctrl-microchip-sgpio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/pinctrl-microchip-sgpio.c b/drivers/pinctrl/pinctrl-microchip-sgpio.c index d6c31cc..e182419 100644 --- a/drivers/pinctrl/pinctrl-microchip-sgpio.c +++ b/drivers/pinctrl/pinctrl-microchip-sgpio.c @@ -60,17 +60,17 @@ struct sgpio_properties { #define SGPIO_SPARX5_CLK_FREQ GENMASK(19, 8) #define SGPIO_SPARX5_BIT_SOURCE GENMASK(23, 12) -const struct sgpio_properties properties_luton = { +static const struct sgpio_properties properties_luton = { .arch = SGPIO_ARCH_LUTON, .regoff = { 0x00, 0x09, 0x29, 0x2a, 0x2b }, }; -const struct sgpio_properties properties_ocelot = { +static const struct sgpio_properties properties_ocelot = { .arch = SGPIO_ARCH_OCELOT, .regoff = { 0x00, 0x06, 0x26, 0x04, 0x05 }, }; -const struct sgpio_properties properties_sparx5 = { +static const struct sgpio_properties properties_sparx5 = { .arch = SGPIO_ARCH_SPARX5, .regoff = { 0x00, 0x06, 0x26, 0x04, 0x05 }, }; -- 2.6.2