X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-call-rcu-impl.h;h=b9e57cd60a2ba731a2030cd36c9b9b6c211c416e;hp=d5baa69685387808044529f634a69157ca9126c0;hb=f000907d757239af9a08625b850b93b4ef6db508;hpb=03fe58b3c42bf2508f5527cc59cbdc086b55042d diff --git a/urcu-call-rcu-impl.h b/urcu-call-rcu-impl.h index d5baa69..b9e57cd 100644 --- a/urcu-call-rcu-impl.h +++ b/urcu-call-rcu-impl.h @@ -115,7 +115,12 @@ static void alloc_cpu_call_rcu_data(void) #else /* #if defined(HAVE_SCHED_GETCPU) && defined(HAVE_SYSCONF) */ -static const struct call_rcu_data **per_cpu_call_rcu_data = NULL; +/* + * per_cpu_call_rcu_data should be constant, but some functions below, used both + * for cases where cpu number is available and not available, assume it it not + * constant. + */ +static struct call_rcu_data **per_cpu_call_rcu_data = NULL; static const long maxcpus = -1; static void alloc_cpu_call_rcu_data(void)