On 2015-10-29 15:18, Anders Roxell wrote: > The API definition of a CPU mask must not be incompatible with the > platform it is implemented on > > Signed-off-by: Anders Roxell <[email protected]> > --- > platform/linux-generic/odp_cpumask.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/platform/linux-generic/odp_cpumask.c > b/platform/linux-generic/odp_cpumask.c > index b31e1ca..5cd6a38 100644 > --- a/platform/linux-generic/odp_cpumask.c > +++ b/platform/linux-generic/odp_cpumask.c > @@ -16,6 +16,10 @@ > #include <stdlib.h> > #include <string.h> > > +/** @internal Compile time assert */ > +_ODP_STATIC_ASSERT(CPU_SETSIZE >= ODP_CPUMASK_SIZE, > + "ODP_CPUMASK_SIZE__SIZE_ERROR"); > + > void odp_cpumask_from_str(odp_cpumask_t *mask, const char *str_in) > { > cpu_set_t cpuset; > -- > 2.1.4 >
ping _______________________________________________ lng-odp mailing list [email protected] https://lists.linaro.org/mailman/listinfo/lng-odp
