Re: [PATCH 1/3] sparc64: Add compile-time asserts for siginfo_t offsets

From: David Miller
Date: Fri Apr 30 2021 - 18:23:07 EST


From: Marco Elver <elver@xxxxxxxxxx>
Date: Thu, 29 Apr 2021 21:07:32 +0200

> To help catch ABI breaks at compile-time, add compile-time assertions to
> verify the siginfo_t layout. Unlike other architectures, sparc64 is
> special, because it is one of few architectures requiring si_trapno.
> ABI breaks around that field would only be caught here.
>
> Link: https://lkml.kernel.org/r/m11rat9f85.fsf@xxxxxxxxxxxxxxxxx
> Suggested-by: Eric W. Biederman <ebiederm@xxxxxxxxxxxx>
> Signed-off-by: Marco Elver <elver@xxxxxxxxxx>

Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>