# git gc # git rev-parse -q --verify f7e2b2478af237b3e88abab3ee0e2b163c624a68^{commit} # git fetch -q -n -f https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git for-next/kspp # git rev-parse -q --verify f7e2b2478af237b3e88abab3ee0e2b163c624a68^{commit} f7e2b2478af237b3e88abab3ee0e2b163c624a68 # git checkout -q -f -B kisskb f7e2b2478af237b3e88abab3ee0e2b163c624a68 # git clean -qxdf # < git log -1 # commit f7e2b2478af237b3e88abab3ee0e2b163c624a68 # Author: Arnd Bergmann # Date: Thu Apr 30 23:30:46 2020 +0200 # # ath10k: fix gcc-10 zero-length-bounds warnings # # gcc-10 started warning about out-of-bounds access for zero-length # arrays: # # In file included from drivers/net/wireless/ath/ath10k/core.h:18, # from drivers/net/wireless/ath/ath10k/htt_rx.c:8: # drivers/net/wireless/ath/ath10k/htt_rx.c: In function 'ath10k_htt_rx_tx_fetch_ind': # drivers/net/wireless/ath/ath10k/htt.h:1683:17: warning: array subscript 65535 is outside the bounds of an interior zero-length array 'struct htt_tx_fetch_record[0]' [-Wzero-length-bounds] # 1683 | return (void *)&ind->records[le16_to_cpu(ind->num_records)]; # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # drivers/net/wireless/ath/ath10k/htt.h:1676:29: note: while referencing 'records' # 1676 | struct htt_tx_fetch_record records[0]; # | ^~~~~~~ # # The structure was already converted to have a flexible-array member in # the past, but there are two zero-length members in the end and only # one of them can be a flexible-array member. # # Swap the two around to avoid the warning, as 'resp_ids' is not accessed # in a way that causes a warning. # # Fixes: 3ba225b506a2 ("treewide: Replace zero-length array with flexible-array member") # Fixes: 22e6b3bc5d96 ("ath10k: add new htt definitions") # Signed-off-by: Arnd Bergmann # Signed-off-by: Gustavo A. R. Silva # < /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 f7e2b2478af237b3e88abab3ee0e2b163c624a68 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/gustavoars_mpc85xx_defconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # < make -s -j 48 ARCH=powerpc O=/kisskb/build/gustavoars_mpc85xx_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/gustavoars_mpc85xx_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/gustavoars_mpc85xx_defconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:11, 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] 22 | #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' 78 | # 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' 139 | 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 0xe3c478) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe3c478) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe3c478) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe3c478) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe3c478) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe3c478) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe3c478) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe3c478) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe3c478) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe3c478) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe3c478) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe3c478) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe3c478) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe3c478) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe3c478) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe2bc74) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) Image Name: Linux-5.7.0-rc2-14553-gf7e2b2478 Created: Fri May 1 08:30:33 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6740767 Bytes = 6582.78 KiB = 6.43 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.7.0-rc2-14553-gf7e2b2478 Created: Fri May 1 08:30:35 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6775483 Bytes = 6616.68 KiB = 6.46 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.7.0-rc2-14553-gf7e2b2478 Created: Fri May 1 08:30:35 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6775759 Bytes = 6616.95 KiB = 6.46 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.7.0-rc2-14553-gf7e2b2478 Created: Fri May 1 08:30:35 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6776089 Bytes = 6617.27 KiB = 6.46 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.7.0-rc2-14553-gf7e2b2478 Created: Fri May 1 08:30:35 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6775806 Bytes = 6617.00 KiB = 6.46 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.7.0-rc2-14553-gf7e2b2478 Created: Fri May 1 08:30:36 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6775818 Bytes = 6617.01 KiB = 6.46 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.7.0-rc2-14553-gf7e2b2478 Created: Fri May 1 08:30:36 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6776025 Bytes = 6617.21 KiB = 6.46 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.7.0-rc2-14553-gf7e2b2478 Created: Fri May 1 08:30:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6775859 Bytes = 6617.05 KiB = 6.46 MiB Load Address: 00f00000 Entry Point: 00f0031c Image Name: Linux-5.7.0-rc2-14553-gf7e2b2478 Created: Fri May 1 08:30:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6776195 Bytes = 6617.38 KiB = 6.46 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.7.0-rc2-14553-gf7e2b2478 Created: Fri May 1 08:30:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6775488 Bytes = 6616.69 KiB = 6.46 MiB Load Address: 00f00000 Entry Point: 00f0031c Image Name: Linux-5.7.0-rc2-14553-gf7e2b2478 Created: Fri May 1 08:30:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6775816 Bytes = 6617.01 KiB = 6.46 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.7.0-rc2-14553-gf7e2b2478 Created: Fri May 1 08:30:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6775526 Bytes = 6616.72 KiB = 6.46 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.7.0-rc2-14553-gf7e2b2478 Created: Fri May 1 08:30:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6775803 Bytes = 6617.00 KiB = 6.46 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.7.0-rc2-14553-gf7e2b2478 Created: Fri May 1 08:30:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6775821 Bytes = 6617.01 KiB = 6.46 MiB Load Address: 00f00000 Entry Point: 00f0031c Image Name: Linux-5.7.0-rc2-14553-gf7e2b2478 Created: Fri May 1 08:30:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6775487 Bytes = 6616.69 KiB = 6.46 MiB Load Address: 00f00000 Entry Point: 00f0031c Image Name: Linux-5.7.0-rc2-14553-gf7e2b2478 Created: Fri May 1 08:30:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6775702 Bytes = 6616.90 KiB = 6.46 MiB Load Address: 00f00000 Entry Point: 00f0031c Completed OK # rm -rf /kisskb/build/gustavoars_mpc85xx_defconfig_powerpc-gcc9 # Build took: 0:06:09.221267