Re: x86: clang: acpi-cpufreq.c:970:24: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 11/10/2022 5:19 AM, Arnd Bergmann wrote:
On Thu, Nov 10, 2022, at 12:14, Naresh Kamboju wrote:
[Please ignore email this if it is already reported]

Kernel build warning noticed on x86_64 with clang toolchain [1].
Build failures noticed from next-20221108 .. next-20221110.

Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>

make --silent --keep-going --jobs=8
O=/home/tuxbuild/.cache/tuxmake/builds/1/build LLVM=1 LLVM_IAS=1
ARCH=x86_64 SRCARCH=x86 CROSS_COMPILE=x86_64-linux-gnu- HOSTCC=clang
CC=clang
drivers/cpufreq/acpi-cpufreq.c:970:24: error: variable 'ret' is
uninitialized when used here [-Werror,-Wuninitialized]
         acpi_cpufreq_online = ret;
                               ^~~
drivers/cpufreq/acpi-cpufreq.c:960:9: note: initialize the variable
'ret' to silence this warning
         int ret;
                ^
                 = 0
1 error generated.

This is caused by 13fdbc8b8da6 ("cpufreq: ACPI: Defer setting boost MSRs"),
which removes the initialization of this variable.

       Arnd

Yes, I apologize for missing that.  A patch has already been submitted to
fix this:

https://lore.kernel.org/lkml/20221108170103.3375832-1-nathan@xxxxxxxxxx/



[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux