Re: [PATCH v2] timer: fix NR_CPUS=1 build with gcc13

2023-09-15 Thread George Dunlap
On Thu, Sep 14, 2023 at 3:32 PM Jan Beulich wrote: > > Gcc13 apparently infers from "if ( old_cpu < new_cpu )" that "new_cpu" > is >= 1, and then (on x86) complains about "per_cpu(timers, new_cpu)" > exceeding __per_cpu_offset[]'s bounds (being an array of 1 in such a > configuration). Make the co

[PATCH v2] timer: fix NR_CPUS=1 build with gcc13

2023-09-14 Thread Jan Beulich
Gcc13 apparently infers from "if ( old_cpu < new_cpu )" that "new_cpu" is >= 1, and then (on x86) complains about "per_cpu(timers, new_cpu)" exceeding __per_cpu_offset[]'s bounds (being an array of 1 in such a configuration). Make the code conditional upon there being at least 2 CPUs configured (ot