On Tue, 4 Aug 2020 23:01:37 +0530, Sandipan Das wrote: > On distros using older glibc versions, the pkey tests > encounter build failures due to redefinition of the > pkey syscall numbers. > > For compatibility, commit 743f3544fffb added a wrapper > for the gettid() syscall and included syscall.h if the > version of glibc used is older than 2.30. This leads > to different definitions of SYS_pkey_* as the ones in > the pkey test header set numeric constants where as the > ones from syscall.h reuse __NR_pkey_*. The compiler > complains about redefinitions since they are different. > > [...]
Applied to powerpc/fixes. [1/1] selftests/powerpc: Fix pkey syscall redefinitions https://git.kernel.org/powerpc/c/a7aaa2f26bfd932a654706b19859e7adf802bee2 cheers