* OvmfPkg VmgExitLib fails to build with CLANG38 (clang 13.0.0)
@ 2022-02-02 20:54 Rebecca Cran
2022-02-02 21:16 ` Lendacky, Thomas
0 siblings, 1 reply; 4+ messages in thread
From: Rebecca Cran @ 2022-02-02 20:54 UTC (permalink / raw)
To: Brijesh Singh, Erdem Aktas, James Bottomley, Jiewen Yao, Min Xu,
Tom Lendacky, edk2-devel-groups-io
[-- Attachment #1: Type: text/plain, Size: 977 bytes --]
VmgExitLib fails to build with the CLANG38 toolset (clang 13.0.0):
edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:1875:9: error:
variable 'Compacted' is used uninitialized whenever 'if' condition is
false [-Werror,-W
sometimes-uninitialized]
if (EcxIn == 1) {
^~~~~~~~~~
edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:1895:12: note:
uninitialized use occurs here
Compacted
^~~~~~~~~
edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:1875:5: note: remove
the 'if' if its condition is always true
if (EcxIn == 1) {
^~~~~~~~~~~~~~~~
edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:1871:37: note:
initialize the variable 'Compacted' to silence this warning
BOOLEAN Compacted;
^
= '\0'
--
Rebecca Cran
[-- Attachment #2: Type: text/html, Size: 1665 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: OvmfPkg VmgExitLib fails to build with CLANG38 (clang 13.0.0)
2022-02-02 20:54 OvmfPkg VmgExitLib fails to build with CLANG38 (clang 13.0.0) Rebecca Cran
@ 2022-02-02 21:16 ` Lendacky, Thomas
2022-02-03 0:16 ` [edk2-devel] " Rebecca Cran
0 siblings, 1 reply; 4+ messages in thread
From: Lendacky, Thomas @ 2022-02-02 21:16 UTC (permalink / raw)
To: Rebecca Cran, Brijesh Singh, Erdem Aktas, James Bottomley,
Jiewen Yao, Min Xu, edk2-devel-groups-io
On 2/2/22 14:54, Rebecca Cran wrote:
> VmgExitLib fails to build with the CLANG38 toolset (clang 13.0.0):
>
>
> edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:1875:9: error: variable
> 'Compacted' is used uninitialized whenever 'if' condition is false [-Werror,-W
> sometimes-uninitialized]
> if (EcxIn == 1) {
> ^~~~~~~~~~
> edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:1895:12: note:
> uninitialized use occurs here
> Compacted
> ^~~~~~~~~
> edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:1875:5: note: remove
> the 'if' if its condition is always true
> if (EcxIn == 1) {
> ^~~~~~~~~~~~~~~~
> edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:1871:37: note:
> initialize the variable 'Compacted' to silence this warning
> BOOLEAN Compacted;
> ^
> = '\0'
This looks like the same error that XCODE5 was complaining about. The
patch was submitted by Brijesh, but some CI failure occurred. I'm not sure
how that is possible from a one line patch like that, maybe it has
something to do with the file in general, excluding the patch?
Thanks,
Tom
>
> --
> Rebecca Cran
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [edk2-devel] OvmfPkg VmgExitLib fails to build with CLANG38 (clang 13.0.0)
2022-02-02 21:16 ` Lendacky, Thomas
@ 2022-02-03 0:16 ` Rebecca Cran
2022-02-04 15:53 ` Brijesh Singh
0 siblings, 1 reply; 4+ messages in thread
From: Rebecca Cran @ 2022-02-03 0:16 UTC (permalink / raw)
To: devel, thomas.lendacky, Brijesh Singh, Erdem Aktas,
James Bottomley, Jiewen Yao, Min Xu
On 2/2/22 14:16, Lendacky, Thomas via groups.io wrote:
> This looks like the same error that XCODE5 was complaining about. The
> patch was submitted by Brijesh, but some CI failure occurred. I'm not
> sure how that is possible from a one line patch like that, maybe it
> has something to do with the file in general, excluding the patch?
No, the patch is wrong: Uncrustify wants the equals signs to line up.
XssMsr.Uint64 = 0;
+ Compacted = FALSE;
Should be:
XssMsr.Uint64 = 0;
+ Compacted = FALSE;
--
Rebecca Cran
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [edk2-devel] OvmfPkg VmgExitLib fails to build with CLANG38 (clang 13.0.0)
2022-02-03 0:16 ` [edk2-devel] " Rebecca Cran
@ 2022-02-04 15:53 ` Brijesh Singh
0 siblings, 0 replies; 4+ messages in thread
From: Brijesh Singh @ 2022-02-04 15:53 UTC (permalink / raw)
To: Rebecca Cran, devel, thomas.lendacky, Erdem Aktas,
James Bottomley, Jiewen Yao, Min Xu
Cc: brijesh.singh
On 2/2/22 6:16 PM, Rebecca Cran wrote:
> On 2/2/22 14:16, Lendacky, Thomas via groups.io wrote:
>> This looks like the same error that XCODE5 was complaining about. The
>> patch was submitted by Brijesh, but some CI failure occurred. I'm not
>> sure how that is possible from a one line patch like that, maybe it
>> has something to do with the file in general, excluding the patch?
>
> No, the patch is wrong: Uncrustify wants the equals signs to line up.
>
> XssMsr.Uint64 = 0;
> + Compacted = FALSE;
>
>
> Should be:
>
> XssMsr.Uint64 = 0;
> + Compacted = FALSE;
>
>
I am a bit occupied with kernel work right now, so feel free to send the
patch. Otherwise, I will get the patch out on Monday or Tuesday.
-Brijesh
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-02-04 15:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-02 20:54 OvmfPkg VmgExitLib fails to build with CLANG38 (clang 13.0.0) Rebecca Cran
2022-02-02 21:16 ` Lendacky, Thomas
2022-02-03 0:16 ` [edk2-devel] " Rebecca Cran
2022-02-04 15:53 ` Brijesh Singh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox