# git rev-parse -q --verify a7aaa2f26bfd932a654706b19859e7adf802bee2^{commit} a7aaa2f26bfd932a654706b19859e7adf802bee2 already have revision, skipping fetch # git checkout -q -f -B kisskb a7aaa2f26bfd932a654706b19859e7adf802bee2 # git clean -qxdf # < git log -1 # commit a7aaa2f26bfd932a654706b19859e7adf802bee2 # Author: Sandipan Das # Date: Tue Aug 4 23:01:37 2020 +0530 # # selftests/powerpc: Fix pkey syscall redefinitions # # 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. # # This replaces SYS_pkey_* definitions with __NR_pkey_* such that the # definitions in both syscall.h and pkeys.h are alike. This way, if # syscall.h has to be included for compatibility reasons, builds will # still succeed. # # Fixes: 743f3544fffb ("selftests/powerpc: Add wrapper for gettid") # Reported-by: Sachin Sant # Suggested-by: David Laight # Suggested-by: Michael Ellerman # Signed-off-by: Sandipan Das # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/a4956d838bf59b0a71a2553c5ca81131ea8b49b9.1596561758.git.sandipan@linux.ibm.com # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 a7aaa2f26bfd932a654706b19859e7adf802bee2 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc6xx_defconfig # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- INFO: Uncompressed kernel (size 0xc05ab8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc05ab8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc05ab8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc05ab8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc05ab8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc05ab8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc05ab8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc05ab8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc05ab8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xbf53d0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xc05ab8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xbf53d0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-5.8.0-rc2+ Created: Thu Aug 6 06:50:52 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5630717 Bytes = 5498.75 KiB = 5.37 MiB Load Address: 00d00000 Entry Point: 00d002ac Image Name: Linux-5.8.0-rc2+ Created: Thu Aug 6 06:50:52 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5631669 Bytes = 5499.68 KiB = 5.37 MiB Load Address: 00d00000 Entry Point: 00d0090c Image Name: Linux-5.8.0-rc2+ Created: Thu Aug 6 06:50:52 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5631575 Bytes = 5499.58 KiB = 5.37 MiB Load Address: 00d00000 Entry Point: 00d0090c Image Name: Linux-5.8.0-rc2+ Created: Thu Aug 6 06:50:53 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5631426 Bytes = 5499.44 KiB = 5.37 MiB Load Address: 00d00000 Entry Point: 00d002ac Image Name: Linux-5.8.0-rc2+ Created: Thu Aug 6 06:50:53 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5596216 Bytes = 5465.05 KiB = 5.34 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.8.0-rc2+ Created: Thu Aug 6 06:50:53 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5631508 Bytes = 5499.52 KiB = 5.37 MiB Load Address: 00d00000 Entry Point: 00d002ac Image Name: Linux-5.8.0-rc2+ Created: Thu Aug 6 06:50:54 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5631463 Bytes = 5499.48 KiB = 5.37 MiB Load Address: 00d00000 Entry Point: 00d002ac Image Name: Linux-5.8.0-rc2+ Created: Thu Aug 6 06:50:54 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5630874 Bytes = 5498.90 KiB = 5.37 MiB Load Address: 00d00000 Entry Point: 00d002ac Image Name: Linux-5.8.0-rc2+ Created: Thu Aug 6 06:50:54 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5631404 Bytes = 5499.42 KiB = 5.37 MiB Load Address: 00d00000 Entry Point: 00d002ac Completed OK # rm -rf /kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc9 # Build took: 0:04:26.710111