From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
To: Andy Gross <agross@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
Stephen Boyd <sboyd@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Taniya Das <quic_tdas@quicinc.com>
Cc: Georgi Djakov <djakov@kernel.org>, Alex Elder <elder@linaro.org>,
Johan Hovold <johan@kernel.org>,
linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
kernel test robot <lkp@intel.com>
Subject: [PATCH v3 03/12] interconnect: move ignore_list out of of_count_icc_providers()
Date: Mon, 9 Jan 2023 02:29:26 +0200 [thread overview]
Message-ID: <20230109002935.244320-4-dmitry.baryshkov@linaro.org> (raw)
In-Reply-To: <20230109002935.244320-1-dmitry.baryshkov@linaro.org>
Move the const ignore_list definition out of the
of_count_icc_providers() function. This prevents the following stack
frame size warnings if the list is expanded:
drivers/interconnect/core.c:1082:12: warning: stack frame size (1216) exceeds limit (1024) in 'of_count_icc_providers' [-Wframe-larger-than]
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
drivers/interconnect/core.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c
index 25debded65a8..df77d2f6215d 100644
--- a/drivers/interconnect/core.c
+++ b/drivers/interconnect/core.c
@@ -1079,15 +1079,16 @@ void icc_provider_del(struct icc_provider *provider)
}
EXPORT_SYMBOL_GPL(icc_provider_del);
+static const struct of_device_id __maybe_unused ignore_list[] = {
+ { .compatible = "qcom,sc7180-ipa-virt" },
+ { .compatible = "qcom,sdx55-ipa-virt" },
+ {}
+};
+
static int of_count_icc_providers(struct device_node *np)
{
struct device_node *child;
int count = 0;
- const struct of_device_id __maybe_unused ignore_list[] = {
- { .compatible = "qcom,sc7180-ipa-virt" },
- { .compatible = "qcom,sdx55-ipa-virt" },
- {}
- };
for_each_available_child_of_node(np, child) {
if (of_property_read_bool(child, "#interconnect-cells") &&
--
2.39.0
next prev parent reply other threads:[~2023-01-09 0:29 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-09 0:29 [PATCH v3 00/12] clk/interconnect: qcom: finish migration of IP0 to clocks Dmitry Baryshkov
2023-01-09 0:29 ` [PATCH v3 01/12] interconnect: qcom: sdx55: drop IP0 remnants Dmitry Baryshkov
2023-01-09 13:43 ` Konrad Dybcio
2023-01-15 4:15 ` Manivannan Sadhasivam
2023-01-09 0:29 ` [PATCH v3 02/12] interconnect: qcom: sc7180: " Dmitry Baryshkov
2023-01-09 13:43 ` Konrad Dybcio
2023-01-09 0:29 ` Dmitry Baryshkov [this message]
2023-01-09 13:44 ` [PATCH v3 03/12] interconnect: move ignore_list out of of_count_icc_providers() Konrad Dybcio
2023-01-09 0:29 ` [PATCH v3 04/12] interconnect: qcom: sm8150: Drop IP0 interconnects Dmitry Baryshkov
2023-01-09 13:45 ` Konrad Dybcio
2023-01-09 0:29 ` [PATCH v3 05/12] interconnect: qcom: sm8250: " Dmitry Baryshkov
2023-01-09 13:45 ` Konrad Dybcio
2023-01-09 0:29 ` [PATCH v3 06/12] interconnect: qcom: sc8180x: " Dmitry Baryshkov
2023-01-09 13:46 ` Konrad Dybcio
2023-01-09 0:29 ` [PATCH v3 07/12] interconnect: qcom: sc8280xp: " Dmitry Baryshkov
2023-01-09 13:48 ` Konrad Dybcio
2023-01-09 0:29 ` [PATCH v3 08/12] dt-bindings: interconnect: qcom: Remove ipa-virt compatibles Dmitry Baryshkov
2023-01-09 0:29 ` [PATCH v3 09/12] dt-bindings: interconnect: qcom: drop IPA_CORE related defines Dmitry Baryshkov
2023-01-09 0:29 ` [PATCH v3 10/12] clk: qcom: rpmh: define IPA clocks where required Dmitry Baryshkov
2023-01-09 13:48 ` Konrad Dybcio
2023-01-09 0:29 ` [PATCH v3 11/12] arm64: dts: qcom: sm8150: drop the virtual ipa-virt device Dmitry Baryshkov
2023-01-09 13:49 ` Konrad Dybcio
2023-01-09 0:29 ` [PATCH v3 12/12] arm64: dts: qcom: sm8250: " Dmitry Baryshkov
2023-01-09 13:49 ` Konrad Dybcio
2023-01-12 16:12 ` (subset) [PATCH v3 00/12] clk/interconnect: qcom: finish migration of IP0 to clocks Bjorn Andersson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230109002935.244320-4-dmitry.baryshkov@linaro.org \
--to=dmitry.baryshkov@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=djakov@kernel.org \
--cc=elder@linaro.org \
--cc=johan@kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lkp@intel.com \
--cc=mturquette@baylibre.com \
--cc=quic_tdas@quicinc.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).