[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2] timer: fix NR_CPUS=1 build with gcc13
On Thu, Sep 14, 2023 at 3:32 PM Jan Beulich <jbeulich@xxxxxxxx> 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 code conditional upon there being at least 2 > CPUs configured (otherwise there simply is nothing to migrate [to]). > > Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> I would still have preferred the code be more robust for the NR_CPUS > 1 case, but this is an improvement, so in any case: Acked-by: George Dunlap <george.dunlap@xxxxxxxxx>
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |