mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
interconnect: move ignore_list out of of_count_icc_providers()
[ Upstream commit 88387e21d2 ]
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>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230109002935.244320-4-dmitry.baryshkov@linaro.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Stable-dep-of: 7ed42176406e ("interconnect: qcom: sm8150: Set ACV enable_mask")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
bf7039825f
commit
8979ed70da
@@ -1100,15 +1100,16 @@ void icc_provider_del(struct icc_provider *provider)
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(icc_provider_del);
|
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)
|
static int of_count_icc_providers(struct device_node *np)
|
||||||
{
|
{
|
||||||
struct device_node *child;
|
struct device_node *child;
|
||||||
int count = 0;
|
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) {
|
for_each_available_child_of_node(np, child) {
|
||||||
if (of_property_read_bool(child, "#interconnect-cells") &&
|
if (of_property_read_bool(child, "#interconnect-cells") &&
|
||||||
|
|||||||
Reference in New Issue
Block a user