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" <ebiederm@xmission.com>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user