Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3851892imm; Tue, 17 Jul 2018 11:21:19 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeDdoGBlCgbTqGAiyZcfM0rGrP+SLGVdSg6NJHpNE80bbjWD8ql6cdXjGQwI/8ZgTEM2HHv X-Received: by 2002:a63:f616:: with SMTP id m22-v6mr2566566pgh.293.1531851679844; Tue, 17 Jul 2018 11:21:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531851679; cv=none; d=google.com; s=arc-20160816; b=Vhnmh2OffBt5EwwG0BlOgwT3bfCaBeA+gJ0Ghy98D3eaVC2OMPURzyIS+1dkgughO+ AL4AUqkyt8F/sH20lSXNRPA8s8rKzKNpXxbyXEcZoy7aiByUwoCbyGOYPqO5Cvv8/ZtC +6bJur5XZMQBHfGngvlDzqw11pC9YM3FKHvugGLuv6V2AEV5kYEcyDJtes+BZi3un7kv JT7L6r2NknqYvp7ckBr9tPu/LZv2eGbH41oDL0ik8Ed/XDYAeqEaf45pDs0DxFNgsjgx oKgbDpTo83Vn0A6sF4ur+4GZR9FR+oR9oaHN7uWyfa7f1tdoIIpsNMV1VD3OCGdKxoM8 8KFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=j4E7KxLiNbJ1mXApw3YmMSsEk9piH4M7lAHMNwaB4g4=; b=Uz2Q0JHIvAYb3w/FwagGmoqvqai84sy/X+ZaPew9HQs4yUlP2ePBbX/sGFr1NNZ1GT XAVcz1IWL4DAnUkw6XseBVAu3z90nRceUKG3RoHONSyryTsUW/6cmtnGd6UXb+IfTmtH nPeZ8emgD1hWC5Rr3sU8gRsDrMbmTxjjoPMJ6HvXEkdfkNfZScbGluQhlIG+jNsguxhO gzWEBDqaM7t1xoDgKlivOC4Y0a/+8Jy8IwN73DPwxp9JT+T0cXaVMEVdIGXE4weNqnow zIZuQG1ZB9hALIAq/pCC2pcg2inQtgm5yXuwSUAMAUpG9KvzLABle+HWfKAQgNMbejd7 p7Bg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c7-v6si1465559plz.21.2018.07.17.11.21.05; Tue, 17 Jul 2018 11:21:19 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730341AbeGQSyU (ORCPT + 99 others); Tue, 17 Jul 2018 14:54:20 -0400 Received: from mga01.intel.com ([192.55.52.88]:41012 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729708AbeGQSyU (ORCPT ); Tue, 17 Jul 2018 14:54:20 -0400 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 fmsmga101.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 Cc: kbuild-all@01.org, Matthias Brugger , Rob Herring , Marc Zyngier , Ryder Lee , Stephen Boyd , Sean Wang , CC Hwang , Loda Chou , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, wsd_upstream@mediatek.com, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, Owen Chen , 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-Type: text/plain; charset=us-ascii 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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;