Re: [PATCH] cpufreq: kyro: Reduce frame-size of qcom_cpufreq_kryo_probe()

From: Arnd Bergmann
Date: Wed Feb 20 2019 - 07:30:57 EST


On Wed, Feb 20, 2019 at 12:14 PM Viresh Kumar <viresh.kumar@xxxxxxxxxx> wrote:
>
> With the introduction of commit 846a415bf440 ("arm64: default NR_CPUS to
> 256"), we have started getting following compilation warning:
>
> qcom-cpufreq-kryo.c:168:1: warning: the frame size of 2160 bytes is larger than 2048 bytes [-Wframe-larger-than=]
>
> Fix that by dynamically allocating opp_tables and freeing it later.
>
> Compile tested only.
>
> Signed-off-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>

Looks good to me, thanks for the fix!

Reviewed-by: Arnd Bergmann <arnd@xxxxxxxx>