[PATCH v2 1/6] iio: introduce IIO_DECLARE_BUFFER_WITH_TS macros
David Lechner
dlechner at baylibre.com
Tue Apr 22 15:37:01 PDT 2025
On 4/22/25 5:30 PM, Andy Shevchenko wrote:
> On Wed, Apr 23, 2025 at 1:08 AM David Lechner <dlechner at baylibre.com> wrote:
>>
...
>> +_Static_assert(sizeof(IIO_DMA_MINALIGN) % sizeof(s64) == 0,
>
> Why not static_assert() ? Because of the message? But static_assert()
> supports messages AFAICS.
>
>> + "macros above assume that IIO_DMA_MINALIGN also ensures s64 timestamp alignment");
>
I just knew that was standard C. But I support BUILD_BUG_ON_MSG or static_assert
would work just as well here.
More information about the linux-arm-kernel
mailing list