# 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-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-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_mpc85xx_smp_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_smp_defconfig # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:11:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:12, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^ /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xd6584c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd6584c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd6584c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd6584c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd6584c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd6584c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd6584c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd6584c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd6584c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd6584c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd6584c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd6584c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd6584c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd6584c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd6584c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd55048) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) Image Name: Linux-5.8.0-rc2-ga7aaa2f26bfd Created: Thu Aug 6 07:45:19 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6575099 Bytes = 6421.00 KiB = 6.27 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.8.0-rc2-ga7aaa2f26bfd Created: Thu Aug 6 07:45:18 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6575435 Bytes = 6421.32 KiB = 6.27 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.8.0-rc2-ga7aaa2f26bfd Created: Thu Aug 6 07:45:19 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6542586 Bytes = 6389.24 KiB = 6.24 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.8.0-rc2-ga7aaa2f26bfd Created: Thu Aug 6 07:45:19 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6575481 Bytes = 6421.37 KiB = 6.27 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.8.0-rc2-ga7aaa2f26bfd Created: Thu Aug 6 07:45:20 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6575052 Bytes = 6420.95 KiB = 6.27 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.8.0-rc2-ga7aaa2f26bfd Created: Thu Aug 6 07:45:20 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6576037 Bytes = 6421.91 KiB = 6.27 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.8.0-rc2-ga7aaa2f26bfd Created: Thu Aug 6 07:45:20 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6575050 Bytes = 6420.95 KiB = 6.27 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.8.0-rc2-ga7aaa2f26bfd Created: Thu Aug 6 07:45:20 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6575224 Bytes = 6421.12 KiB = 6.27 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.8.0-rc2-ga7aaa2f26bfd Created: Thu Aug 6 07:45:21 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6575372 Bytes = 6421.26 KiB = 6.27 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.8.0-rc2-ga7aaa2f26bfd Created: Thu Aug 6 07:45:21 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6575471 Bytes = 6421.36 KiB = 6.27 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.8.0-rc2-ga7aaa2f26bfd Created: Thu Aug 6 07:45:21 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6575382 Bytes = 6421.27 KiB = 6.27 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.8.0-rc2-ga7aaa2f26bfd Created: Thu Aug 6 07:45:22 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6575071 Bytes = 6420.97 KiB = 6.27 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.8.0-rc2-ga7aaa2f26bfd Created: Thu Aug 6 07:45:22 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6576326 Bytes = 6422.19 KiB = 6.27 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.8.0-rc2-ga7aaa2f26bfd Created: Thu Aug 6 07:45:22 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6575848 Bytes = 6421.73 KiB = 6.27 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.8.0-rc2-ga7aaa2f26bfd Created: Thu Aug 6 07:45:22 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6575371 Bytes = 6421.26 KiB = 6.27 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.8.0-rc2-ga7aaa2f26bfd Created: Thu Aug 6 07:45:23 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6576229 Bytes = 6422.10 KiB = 6.27 MiB Load Address: 00e00000 Entry Point: 00e002a4 Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc4.9 # Build took: 0:02:27.234139