From patchwork Tue Jul 17 18:19:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 10530343 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B6994601D2 for ; Tue, 17 Jul 2018 18:20:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4DF6296AD for ; Tue, 17 Jul 2018 18:20:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 98F5329720; Tue, 17 Jul 2018 18:20:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 32EB6296AD for ; Tue, 17 Jul 2018 18:20:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=s4FDF27r0o2CBQycr3IedofC8Pj8uqfC9nrnzTYAOz0=; b=Rw8v96jhRDbaZs J0WKZHnK7VORZAyhkLQZ0CVXGgbYs5MTSIo5buBiRqRJeGgq7WB9cUPFsVT+82Uxly4D/Ga2/7Kpf C/E/Zz2GY3Bo622F+2GhluGxbs1qdBBmeABoV+fLb6VDNDWSN1trV9gHcQlWuHICMbmYs5/3ITs/a haLCZYkU3KNHb1FFEEXqILxdJb24mkyNcDnXvutm/KTnTkz1QkZvnRGJy0Xp73mHvytUJb/2ggzNy W9cNtoeTa6RwQYeZEUd7+mUmc3wpHGU4oxO+Zjci7DjF0KTY4HpmdnGU7J7O8O7fYi20tlSIhC9Vs 2qvt0I/HORAOKhsbPoHQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ffUak-0000lJ-ND; Tue, 17 Jul 2018 18:20:54 +0000 Received: from mga05.intel.com ([192.55.52.43]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ffUaW-0000S1-I7; Tue, 17 Jul 2018 18:20:43 +0000 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jul 2018 11:20:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,366,1526367600"; d="scan'208";a="246014759" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by fmsmga005.fm.intel.com with ESMTP; 17 Jul 2018 11:20:26 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1ffUaE-000Cj4-OM; Wed, 18 Jul 2018 02:20:22 +0800 Date: Wed, 18 Jul 2018 02:19:29 +0800 From: kbuild test robot To: Mars Cheng Subject: [RFC PATCH] soc: mediatek: bus_ctrl_set_release() can be static Message-ID: <20180717181929.GA13851@lkp-hsx02> References: <1531817552-17221-7-git-send-email-mars.cheng@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1531817552-17221-7-git-send-email-mars.cheng@mediatek.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: lkp@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180717_112040_817962_ED34656C X-CRM114-Status: GOOD ( 18.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Ryder Lee , wsd_upstream@mediatek.com, CC Hwang , Marc Zyngier , Sean Wang , Loda Chou , linux-kernel@vger.kernel.org, Stephen Boyd , Rob Herring , linux-mediatek@lists.infradead.org, kbuild-all@01.org, linux-serial@vger.kernel.org, Matthias Brugger , Mars Cheng , Owen Chen , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes: 4666e05d0237 ("soc: mediatek: add new flow for mtcmos power.") Signed-off-by: kbuild test robot --- mtk-scpsys-ext.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/soc/mediatek/mtk-scpsys-ext.c b/drivers/soc/mediatek/mtk-scpsys-ext.c index 965e64d..e4ceb38 100644 --- a/drivers/soc/mediatek/mtk-scpsys-ext.c +++ b/drivers/soc/mediatek/mtk-scpsys-ext.c @@ -80,7 +80,7 @@ static struct scpsys_ext_attr *__get_attr_parent(const char *parent_n) return ERR_PTR(-EINVAL); } -int bus_ctrl_set_release(struct scpsys_ext_attr *attr, bool set) +static int bus_ctrl_set_release(struct scpsys_ext_attr *attr, bool set) { int i; int ret = 0; @@ -111,17 +111,17 @@ int bus_ctrl_set_release(struct scpsys_ext_attr *attr, bool set) return ret; } -int bus_ctrl_set(struct scpsys_ext_attr *attr) +static int bus_ctrl_set(struct scpsys_ext_attr *attr) { return bus_ctrl_set_release(attr, CMD_ENABLE); } -int bus_ctrl_release(struct scpsys_ext_attr *attr) +static int bus_ctrl_release(struct scpsys_ext_attr *attr) { return bus_ctrl_set_release(attr, CMD_DISABLE); } -int bus_clk_enable_disable(struct scpsys_ext_attr *attr, bool enable) +static int bus_clk_enable_disable(struct scpsys_ext_attr *attr, bool enable) { int i = 0; int ret = 0; @@ -158,7 +158,7 @@ int bus_clk_enable_disable(struct scpsys_ext_attr *attr, bool enable) return ret; } -int bus_clk_enable(struct scpsys_ext_attr *attr) +static int bus_clk_enable(struct scpsys_ext_attr *attr) { struct scpsys_ext_attr *attr_p; int ret = 0; @@ -189,17 +189,17 @@ int bus_clk_disable(struct scpsys_ext_attr *attr) return ret; } -const struct bus_mask_ops bus_mask_set_clr_ctrl = { +static const struct bus_mask_ops bus_mask_set_clr_ctrl = { .set = &mtk_generic_set_cmd, .release = &mtk_generic_clr_cmd, }; -const struct bus_ext_ops ext_bus_ctrl = { +static const struct bus_ext_ops ext_bus_ctrl = { .enable = &bus_ctrl_set, .disable = &bus_ctrl_release, }; -const struct bus_ext_ops ext_cg_ctrl = { +static const struct bus_ext_ops ext_cg_ctrl = { .enable = &bus_clk_enable, .disable = &bus_clk_disable, }; @@ -207,9 +207,9 @@ const struct bus_ext_ops ext_cg_ctrl = { /* * scpsys bus driver init */ -struct regmap *syscon_regmap_lookup_by_phandle_idx(struct device_node *np, - const char *property, - int index) +static struct regmap *syscon_regmap_lookup_by_phandle_idx(struct device_node *np, + const char *property, + int index) { struct device_node *syscon_np; struct regmap *regmap; @@ -228,7 +228,7 @@ struct regmap *syscon_regmap_lookup_by_phandle_idx(struct device_node *np, return regmap; } -int scpsys_ext_regmap_init(struct platform_device *pdev) +static int scpsys_ext_regmap_init(struct platform_device *pdev) { infracfg = syscon_regmap_lookup_by_phandle(pdev->dev.of_node, INFRA); @@ -321,7 +321,7 @@ static int add_cg_to_list(struct platform_device *pdev) return 0; } -int scpsys_ext_clk_init(struct platform_device *pdev) +static int scpsys_ext_clk_init(struct platform_device *pdev) { int ret = 0; @@ -333,7 +333,7 @@ int scpsys_ext_clk_init(struct platform_device *pdev) return ret; } -int scpsys_ext_attr_init(const struct scpsys_ext_data *data) +static int scpsys_ext_attr_init(const struct scpsys_ext_data *data) { int i, count = 0;