kernel_samsung_a53x/drivers/cpufreq
Greg Kroah-Hartman 80d917e6b7 cpufreq: brcmstb-avs-cpufreq: fix up "add check for cpufreq_cpu_get's return value"
In commit 9127599c075c ("cpufreq: brcmstb-avs-cpufreq: add check for
cpufreq_cpu_get's return value"), build warnings occur because a
variable is created after some logic, resulting in:

drivers/cpufreq/brcmstb-avs-cpufreq.c: In function 'brcm_avs_cpufreq_get':
drivers/cpufreq/brcmstb-avs-cpufreq.c:486:9: error: ISO C90 forbids mixed
declarations and code [-Werror=declaration-after-statement]
  486 |         struct private_data *priv = policy->driver_data;
      |         ^~~~~~
cc1: all warnings being treated as errors
make[2]: *** [scripts/Makefile.build:289:
drivers/cpufreq/brcmstb-avs-cpufreq.o] Error 1
make[1]: *** [scripts/Makefile.build:552: drivers/cpufreq] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1907: drivers] Error 2

Fix this up.

Link: https://lore.kernel.org/r/e114d9e5-26af-42be-9baa-72c3a6ec8fe5@oracle.com
Link: https://lore.kernel.org/stable/20240327015023.GC7502@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net/T/#m15bff0fe96986ef780e848b4fff362bf8ea03f08
Reported-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Fixes: 9127599c075c ("cpufreq: brcmstb-avs-cpufreq: add check for cpufreq_cpu_get's return value")
Cc: Anastasia Belova <abelova@astralinux.ru>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-19 09:22:38 +01:00
..
acpi-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amd_freq_sensitivity.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
armada-8k-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
armada-37xx-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bmips-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
brcmstb-avs-cpufreq.c cpufreq: brcmstb-avs-cpufreq: fix up "add check for cpufreq_cpu_get's return value" 2024-11-19 09:22:38 +01:00
cppc_cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpufreq-dt-platdev.c Revert "cpufreq: Use of_property_present() for testing DT property presence" 2024-11-18 20:19:18 +01:00
cpufreq-dt.c cpufreq: dt: always allocate zeroed cpumask 2024-11-19 09:22:36 +01:00
cpufreq-dt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpufreq-nforce2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpufreq_conservative.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpufreq_governor.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpufreq_governor.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpufreq_governor_attr_set.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpufreq_ondemand.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpufreq_ondemand.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpufreq_performance.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpufreq_powersave.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpufreq_stats.c cpufreq: stats: Fix buffer overflow detection in trans_stats() 2024-11-18 11:43:26 +01:00
cpufreq_times.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpufreq_userspace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
davinci-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dummy-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
e_powersaver.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
elanfreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos-acme.c s5e8825: Tuning 2024-10-17 12:50:20 -03:00
exynos-acme.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos-dsufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
freq-qos-tracer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
freq_table.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gx-suspmod.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
highbank-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ia64-acpi-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-cpufreq-dt.c Revert "cpufreq: Use of_property_present() for testing DT property presence" 2024-11-18 20:19:18 +01:00
imx6q-cpufreq.c Revert "cpufreq: Use of_property_present() for testing DT property presence" 2024-11-18 20:19:18 +01:00
intel_pstate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig.arm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig.powerpc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig.x86 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kirkwood-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
longhaul.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
longhaul.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
longrun.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
loongson1-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
loongson2_cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
maple-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mediatek-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mvebu-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
p4-clockmod.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pasemi-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcc-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmac32-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmac64-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
powernow-k6.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
powernow-k7.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
powernow-k7.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
powernow-k8.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
powernow-k8.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
powernv-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ppc_cbe_cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ppc_cbe_cpufreq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ppc_cbe_cpufreq_pervasive.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ppc_cbe_cpufreq_pmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pxa2xx-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pxa3xx-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom-cpufreq-hw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom-cpufreq-nvmem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qoriq-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
raspberrypi-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s3c24xx-cpufreq-debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s3c24xx-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s3c64xx-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s3c2410-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s3c2412-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s3c2416-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s3c2440-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s5pv210-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sa1100-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sa1110-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sc520_freq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scmi-cpufreq.c Revert "cpufreq: Use of_property_present() for testing DT property presence" 2024-11-18 20:19:18 +01:00
scpi-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sfi-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sh-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sparc-us2e-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sparc-us3-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spear-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speedstep-centrino.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speedstep-ich.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speedstep-lib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speedstep-lib.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speedstep-smi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sti-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sun50i-cpufreq-nvmem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tango-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tegra20-cpufreq.c Revert "cpufreq: Use of_property_present() for testing DT property presence" 2024-11-18 20:19:18 +01:00
tegra124-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tegra186-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tegra194-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ti-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vexpress-spc-cpufreq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00