Re: [PATCH v17 01/14] helpers: Add BUILD_BUG_ON from Linux kernel

2018-07-09 Thread Pekka Paalanen
On Mon, 9 Jul 2018 14:23:07 +0100 Daniel Stone wrote: > Import the trivial definition of BUILD_BUG_ON() from the Linux kernel. > This evaluates an expression such that it will call sizeof() on a > negative-length array if the expression is false, generating a compiler > error. > > This will be

[PATCH v17 01/14] helpers: Add BUILD_BUG_ON from Linux kernel

2018-07-09 Thread Daniel Stone
Import the trivial definition of BUILD_BUG_ON() from the Linux kernel. This evaluates an expression such that it will call sizeof() on a negative-length array if the expression is false, generating a compiler error. This will be used in future patches to ensure two array lengths don't go out of sy