arm: Add compile-time asserts for siginfo_t offsets
authorMarco Elver <elver@google.com>
Thu, 29 Apr 2021 19:07:33 +0000 (21:07 +0200)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 23 Jul 2021 16:56:54 +0000 (11:56 -0500)
commit56516a42f2f1af01f053eecc4bf3f468d146f2c4
treee6565a752502d5572f3b2ac8fed0f44ea00c0440
parent42365abdde2a22992e320ea5ae8f023d07352db3
arm: Add compile-time asserts for siginfo_t offsets

To help catch ABI breaks at compile-time, add compile-time assertions to
verify the siginfo_t layout.

This could have caught that we cannot portably add 64-bit integers to
siginfo_t on 32-bit architectures like Arm before reaching -next:
https://lkml.kernel.org/r/20210422191823.79012-1-elver@google.com

Link: https://lkml.kernel.org/r/20210429190734.624918-2-elver@google.com
Link: https://lkml.kernel.org/r/20210505141101.11519-2-ebiederm@xmission.com
Link: https://lkml.kernel.org/r/87y2a7xx9q.fsf_-_@disp2133
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
arch/arm/kernel/signal.c