"Burton, Ross" <ross.bur...@intel.com> writes: > On 24 April 2017 at 10:09, Burton, Ross <ross.bur...@intel.com> wrote: > >> All merged, I'll fire in a moment. >> > > lttng-modules fails: > > In function 'lib_ring_buffer_align', > inlined from 'lib_ring_buffer_try_reserve' at > TOPDIR/tmp/work/qemumips-poky-linux/lttng-modules/2.9.1-r0/lttng-modules-2.9.1/lib/ringbuffer/frontend_api.h:118:3, > inlined from 'lib_ring_buffer_reserve' at > TOPDIR/tmp/work/qemumips-poky-linux/lttng-modules/2.9.1-r0/lttng-modules-2.9.1/lib/ringbuffer/frontend_api.h:179:6, > inlined from 'lttng_event_reserve' at > TOPDIR/tmp/work/qemumips-poky-linux/lttng-modules/2.9.1-r0/lttng-modules-2.9.1/lttng-ring-buffer-metadata-client.h:317:6: > TOPDIR/tmp/work-shared/qemumips/kernel-source/include/linux/compiler.h:518:38: > error: call to '__compiletime_assert_269' declared with attribute error: > BUILD_BUG_ON failed: (size_of_type) == 0 || ((size_of_type) & > ((size_of_type) - 1)) > _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) > ^ > > Suggestions welcome :)
Does adding this patch to lttng-modules work around it? diff --git a/lib/align.h b/lib/align.h index 5b91ae87410b..5e134cd485fe 100644 --- a/lib/align.h +++ b/lib/align.h @@ -48,7 +48,7 @@ */ #define offset_align(align_drift, alignment) \ ({ \ - BUILD_RUNTIME_BUG_ON((alignment) == 0 \ + BUG_ON((alignment) == 0 \ || ((alignment) & ((alignment) - 1))); \ (((alignment) - (align_drift)) & ((alignment) - 1)); \ }) @@ -63,7 +63,7 @@ */ #define offset_align_floor(align_drift, alignment) \ ({ \ - BUILD_RUNTIME_BUG_ON((alignment) == 0 \ + BUG_ON((alignment) == 0 \ || ((alignment) & ((alignment) - 1))); \ (((align_drift) - (alignment)) & ((alignment) - 1)); \ }) -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto