* x86: clang: acpi-cpufreq.c:970:24: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized]
@ 2022-11-10 11:14 Naresh Kamboju
2022-11-10 11:19 ` Arnd Bergmann
2022-11-10 12:46 ` Nathan Chancellor
0 siblings, 2 replies; 4+ messages in thread
From: Naresh Kamboju @ 2022-11-10 11:14 UTC (permalink / raw)
To: open list, Linux-Next Mailing List, lkft-triage, llvm
Cc: Rafael J. Wysocki, Viresh Kumar, Arnd Bergmann, Linux PM,
Nathan Chancellor
[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@linaro.org>
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.
tuxmake --runtime podman --target-arch x86_64 --toolchain
clang-nightly --kconfig defconfig --kconfig-add
https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-kernel/linux/files/lkft.config
--kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-kernel/linux/files/lkft-crypto.config
--kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-kernel/linux/files/distro-overrides.config
--kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-kernel/linux/files/systemd.config
--kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-kernel/linux/files/virtio.config
--kconfig-add CONFIG_IGB=y --kconfig-add
CONFIG_UNWINDER_FRAME_POINTER=y LLVM=1 LLVM_IAS=1
Build log:
[1] https://builds.tuxbuild.com/2HLg3VgMgxRXBn31n6Ig7BFwSy9/
--
Linaro LKFT
https://lkft.linaro.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: x86: clang: acpi-cpufreq.c:970:24: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized]
2022-11-10 11:14 x86: clang: acpi-cpufreq.c:970:24: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized] Naresh Kamboju
@ 2022-11-10 11:19 ` Arnd Bergmann
2022-11-10 20:17 ` stuart hayes
2022-11-10 12:46 ` Nathan Chancellor
1 sibling, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2022-11-10 11:19 UTC (permalink / raw)
To: Naresh Kamboju, open list, linux-next, lkft-triage, llvm
Cc: Rafael J . Wysocki, Viresh Kumar, Linux PM, Nathan Chancellor,
Stuart Hayes
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@linaro.org>
>
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: x86: clang: acpi-cpufreq.c:970:24: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized]
2022-11-10 11:14 x86: clang: acpi-cpufreq.c:970:24: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized] Naresh Kamboju
2022-11-10 11:19 ` Arnd Bergmann
@ 2022-11-10 12:46 ` Nathan Chancellor
1 sibling, 0 replies; 4+ messages in thread
From: Nathan Chancellor @ 2022-11-10 12:46 UTC (permalink / raw)
To: Naresh Kamboju
Cc: open list, Linux-Next Mailing List, lkft-triage, llvm,
Rafael J. Wysocki, Viresh Kumar, Arnd Bergmann, Linux PM
Hi Naresh,
On Thu, Nov 10, 2022 at 04:44:09PM +0530, 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@linaro.org>
>
> 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.
Thanks for the report. I noticed this when it came down in next-20221108
and sent a patch for it:
https://lore.kernel.org/20221108170103.3375832-1-nathan@kernel.org/
https://github.com/ClangBuiltLinux/linux/issues/1757
It just needs to be reviewed and picked up.
Cheers,
Nathan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: x86: clang: acpi-cpufreq.c:970:24: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized]
2022-11-10 11:19 ` Arnd Bergmann
@ 2022-11-10 20:17 ` stuart hayes
0 siblings, 0 replies; 4+ messages in thread
From: stuart hayes @ 2022-11-10 20:17 UTC (permalink / raw)
To: Arnd Bergmann, Naresh Kamboju, open list, linux-next, lkft-triage, llvm
Cc: Rafael J . Wysocki, Viresh Kumar, Linux PM, Nathan Chancellor
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@linaro.org>
>>
>> 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@kernel.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-11-10 20:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-10 11:14 x86: clang: acpi-cpufreq.c:970:24: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized] Naresh Kamboju
2022-11-10 11:19 ` Arnd Bergmann
2022-11-10 20:17 ` stuart hayes
2022-11-10 12:46 ` Nathan Chancellor
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.