Re: [PATCH 6/4] x86/pv: Fix build with Clang and CONFIG_PERF_COUNTERS

2025-01-06 Thread Jan Beulich
On 02.01.2025 20:55, Andrew Cooper wrote: > Clang, of at least verion 17 complains: > > arch/x86/pv/hypercall.c:30:10: error: variable 'eax' is used uninitialized > whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] > 30 | if ( !compat ) > | ^~~

[PATCH 6/4] x86/pv: Fix build with Clang and CONFIG_PERF_COUNTERS

2025-01-02 Thread Andrew Cooper
Clang, of at least verion 17 complains: arch/x86/pv/hypercall.c:30:10: error: variable 'eax' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] 30 | if ( !compat ) | ^~~ arch/x86/pv/hypercall.c:87:29: note: uninitialized u