Re: [PATCH -next] x86: Fix intel cpu unsed variable ‘l2’ warning

2021-03-23 Thread Borislav Petkov
On Tue, Mar 23, 2021 at 10:59:01AM +0800, Xu Yihang wrote: > Fixes the following W=1 kernel build warning(s): > ../arch/x86/kernel/cpu/intel.c: In function ‘init_intel’: > ../arch/x86/kernel/cpu/intel.c:644:20: warning: variable ‘l2’ set but not > used [-Wunused-but-set-variable] >unsigned int

[PATCH -next] x86: Fix intel cpu unsed variable ‘l2’ warning

2021-03-22 Thread Xu Yihang
Fixes the following W=1 kernel build warning(s): ../arch/x86/kernel/cpu/intel.c: In function ‘init_intel’: ../arch/x86/kernel/cpu/intel.c:644:20: warning: variable ‘l2’ set but not used [-Wunused-but-set-variable] unsigned int l1, l2; ^~ Compilation command(s): make allmodc