x86: fix build when NR_CPUS == 1
authorJan Beulich <jbeulich@suse.com>
Tue, 30 Mar 2021 12:38:45 +0000 (14:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 30 Mar 2021 12:38:45 +0000 (14:38 +0200)
commit9e0199726be09761c00791576f902d446b87fe1f
tree36e11d63a9ead3a1f14b77c5868a2daca33137a6
parent14612851867e61cf5b46f13aca5a2ce2c329efb6
x86: fix build when NR_CPUS == 1

In this case the compiler is recognizing that no valid array indexes
remain (in x2apic_cluster()'s access to per_cpu(cpu_2_logical_apicid,
...)), but oddly enough isn't really consistent about the checking it
does (see the code comment).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/genapic/x2apic.c