mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
signal: Remove the need for __ARCH_SI_PREABLE_SIZE and SI_PAD_SIZE
Rework the defintion of struct siginfo so that the array padding struct siginfo to SI_MAX_SIZE can be placed in a union along side of the rest of the struct siginfo members. The result is that we no longer need the __ARCH_SI_PREAMBLE_SIZE or SI_PAD_SIZE definitions. Signed-off-by: "Eric W. Biederman" <[email protected]>
This commit is contained in:
parent
e75dc036c4
commit
f283801851
17 changed files with 99 additions and 207 deletions
|
|
@ -3963,9 +3963,6 @@ __weak const char *arch_vma_name(struct vm_area_struct *vma)
|
|||
|
||||
void __init signals_init(void)
|
||||
{
|
||||
/* If this check fails, the __ARCH_SI_PREAMBLE_SIZE value is wrong! */
|
||||
BUILD_BUG_ON(__ARCH_SI_PREAMBLE_SIZE
|
||||
!= offsetof(struct siginfo, _sifields._pad));
|
||||
BUILD_BUG_ON(sizeof(struct siginfo) != SI_MAX_SIZE);
|
||||
|
||||
sigqueue_cachep = KMEM_CACHE(sigqueue, SLAB_PANIC);
|
||||
|
|
|
|||
Loading…
Reference in a new issue