Re: [tip:x86/urgent 3/3] arch/x86/kernel/apic/apic.c:1182:6: warning: the address of 'x2apic_enabled' will always evaluate as 'true'

From: Bandan Das
Date: Tue Aug 27 2019 - 02:58:54 EST


Thomas Gleixner <tglx@xxxxxxxxxxxxx> writes:

> On Tue, 27 Aug 2019, Bandan Das wrote:
>> kbuild test robot <lkp@xxxxxxxxx> writes:
>>
>> > tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/tip/tip.git x86/urgent
>> > head: cfa16294b1c5b320c0a0e1cac37c784b92366c87
>> > commit: cfa16294b1c5b320c0a0e1cac37c784b92366c87 [3/3] x86/apic: Include the LDR when clearing out APIC registers
>> > config: i386-defconfig (attached as .config)
>> > compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
>> > reproduce:
>> > git checkout cfa16294b1c5b320c0a0e1cac37c784b92366c87
>> > # save the attached .config to linux build tree
>> > make ARCH=i386
>> >
>> > If you fix the issue, kindly add following tag
>> > Reported-by: kbuild test robot <lkp@xxxxxxxxx>
>> >
>> > All warnings (new ones prefixed by >>):
>> >
>> > arch/x86/kernel/apic/apic.c: In function 'clear_local_APIC':
>> >>> arch/x86/kernel/apic/apic.c:1182:6: warning: the address of 'x2apic_enabled' will always evaluate as 'true' [-Waddress]
>> > if (!x2apic_enabled) {
>> > ^
>> Thomas, I apologize for the typo here. This is the x2apic_enabled() function.
>> Should I respin ?
>
> 156684295076.23440.2192639697586451635.tip-bot2@tip-bot2">https://lkml.kernel.org/r/156684295076.23440.2192639697586451635.tip-bot2@tip-bot2
>
> You have that mail in your inbox ..

Ah, thanks!