nptl: Cleanup mutex internal offset tests
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 7 Nov 2019 20:58:41 +0000 (20:58 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 26 Nov 2019 13:53:36 +0000 (13:53 +0000)
commit71d260c1077ce7ab1530809fc826756bdcd032b0
treedbd30cdc6015415b34e6fd483c6a6186093c75ba
parent7fc8c286e31a336caa008a8bcfb00aac1e47cdc8
nptl: Cleanup mutex internal offset tests

The offsets of pthread_mutex_t __data.__nusers, __data.__spins,
__data.elision, __data.list are not required to be constant over
the releases.  Only the __data.__kind is used for static
initializers.

This patch also adds an additional size check for __data.__kind.

Checked with a build against affected ABIs.

Change-Id: I7a4e48cc91b4c4ada57e9a5d1b151fb702bfaa9f
19 files changed:
nptl/pthreadP.h
nptl/pthread_mutex_init.c
sysdeps/aarch64/nptl/pthread-offsets.h
sysdeps/alpha/nptl/pthread-offsets.h
sysdeps/arm/nptl/pthread-offsets.h
sysdeps/csky/nptl/pthread-offsets.h
sysdeps/hppa/nptl/pthread-offsets.h
sysdeps/i386/nptl/pthread-offsets.h
sysdeps/ia64/nptl/pthread-offsets.h
sysdeps/m68k/nptl/pthread-offsets.h
sysdeps/microblaze/nptl/pthread-offsets.h
sysdeps/mips/nptl/pthread-offsets.h
sysdeps/nios2/nptl/pthread-offsets.h
sysdeps/powerpc/nptl/pthread-offsets.h
sysdeps/riscv/nptl/pthread-offsets.h
sysdeps/s390/nptl/pthread-offsets.h
sysdeps/sh/nptl/pthread-offsets.h
sysdeps/sparc/nptl/pthread-offsets.h
sysdeps/x86_64/nptl/pthread-offsets.h