# git rev-parse -q --verify 98198c8d52f6ce2c238d9775827ca1c7725b2419^{commit} 98198c8d52f6ce2c238d9775827ca1c7725b2419 already have revision, skipping fetch # git checkout -q -f -B kisskb 98198c8d52f6ce2c238d9775827ca1c7725b2419 # git clean -qxdf # < git log -1 # commit 98198c8d52f6ce2c238d9775827ca1c7725b2419 # Author: Christophe Leroy # Date: Sat Dec 17 14:41:57 2022 +0100 # # Remove cpu-as-y # < /opt/cross/kisskb/korg/gcc-13.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-13.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 98198c8d52f6ce2c238d9775827ca1c7725b2419 # make -s -j 32 ARCH=powerpc O=/kisskb/build/chleroy_ppc64_defconfig_powerpc-gcc13 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-13.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc64_defconfig # < make -s -j 32 ARCH=powerpc O=/kisskb/build/chleroy_ppc64_defconfig_powerpc-gcc13 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-13.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 32 ARCH=powerpc O=/kisskb/build/chleroy_ppc64_defconfig_powerpc-gcc13 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-13.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 32 ARCH=powerpc O=/kisskb/build/chleroy_ppc64_defconfig_powerpc-gcc13 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-13.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In function 'do_byte_reverse', inlined from 'do_vec_store' at /kisskb/src/arch/powerpc/lib/sstep.c:722:3, inlined from 'emulate_loadstore' at /kisskb/src/arch/powerpc/lib/sstep.c:3510:9: /kisskb/src/arch/powerpc/lib/sstep.c:286:25: error: array subscript [3, 4] is outside array bounds of 'union [1]' [-Werror=array-bounds=] 286 | up[0] = byterev_8(up[3]); | ^~~~~~~~~~~~~~~~ /kisskb/src/arch/powerpc/lib/sstep.c: In function 'emulate_loadstore': /kisskb/src/arch/powerpc/lib/sstep.c:708:11: note: at offset [24, 39] into object 'u' of size 16 708 | } u; | ^ In function 'do_byte_reverse', inlined from 'do_vec_store' at /kisskb/src/arch/powerpc/lib/sstep.c:722:3, inlined from 'emulate_loadstore' at /kisskb/src/arch/powerpc/lib/sstep.c:3510:9: /kisskb/src/arch/powerpc/lib/sstep.c:287:23: error: array subscript [3, 4] is outside array bounds of 'union [1]' [-Werror=array-bounds=] 287 | up[3] = tmp; | ~~~~~~^~~~~ /kisskb/src/arch/powerpc/lib/sstep.c: In function 'emulate_loadstore': /kisskb/src/arch/powerpc/lib/sstep.c:708:11: note: at offset [24, 39] into object 'u' of size 16 708 | } u; | ^ In function 'do_byte_reverse', inlined from 'do_vec_store' at /kisskb/src/arch/powerpc/lib/sstep.c:722:3, inlined from 'emulate_loadstore' at /kisskb/src/arch/powerpc/lib/sstep.c:3510:9: /kisskb/src/arch/powerpc/lib/sstep.c:288:23: error: array subscript 2 is outside array bounds of 'union [1]' [-Werror=array-bounds=] 288 | tmp = byterev_8(up[2]); | ^~~~~~~~~~~~~~~~ /kisskb/src/arch/powerpc/lib/sstep.c: In function 'emulate_loadstore': /kisskb/src/arch/powerpc/lib/sstep.c:708:11: note: at offset 16 into object 'u' of size 16 708 | } u; | ^ In function 'do_byte_reverse', inlined from 'do_vec_store' at /kisskb/src/arch/powerpc/lib/sstep.c:722:3, inlined from 'emulate_loadstore' at /kisskb/src/arch/powerpc/lib/sstep.c:3510:9: /kisskb/src/arch/powerpc/lib/sstep.c:289:23: error: array subscript 2 is outside array bounds of 'union [1]' [-Werror=array-bounds=] 289 | up[2] = byterev_8(up[1]); | ~~~~~~^~~~~~~~~~~~~~~~~~ /kisskb/src/arch/powerpc/lib/sstep.c: In function 'emulate_loadstore': /kisskb/src/arch/powerpc/lib/sstep.c:708:11: note: at offset 16 into object 'u' of size 16 708 | } u; | ^ In function 'do_byte_reverse', inlined from 'do_vec_load' at /kisskb/src/arch/powerpc/lib/sstep.c:691:3, inlined from 'emulate_loadstore' at /kisskb/src/arch/powerpc/lib/sstep.c:3439:9: /kisskb/src/arch/powerpc/lib/sstep.c:286:25: error: array subscript [3, 4] is outside array bounds of 'u8[16]' {aka 'unsigned char[16]'} [-Werror=array-bounds=] 286 | up[0] = byterev_8(up[3]); | ^~~~~~~~~~~~~~~~ /kisskb/src/arch/powerpc/lib/sstep.c: In function 'emulate_loadstore': /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset [24, 39] into object 'u' of size 16 681 | } u = {}; | ^ /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset [24, 39] into object 'u' of size 16 /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset [24, 39] into object 'u' of size 16 /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset [24, 39] into object 'u' of size 16 /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset [24, 39] into object 'u' of size 16 In function 'do_byte_reverse', inlined from 'do_vec_load' at /kisskb/src/arch/powerpc/lib/sstep.c:691:3, inlined from 'emulate_loadstore' at /kisskb/src/arch/powerpc/lib/sstep.c:3439:9: /kisskb/src/arch/powerpc/lib/sstep.c:287:23: error: array subscript [3, 4] is outside array bounds of 'u8[16]' {aka 'unsigned char[16]'} [-Werror=array-bounds=] 287 | up[3] = tmp; | ~~~~~~^~~~~ /kisskb/src/arch/powerpc/lib/sstep.c: In function 'emulate_loadstore': /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset [24, 39] into object 'u' of size 16 681 | } u = {}; | ^ /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset [24, 39] into object 'u' of size 16 /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset [24, 39] into object 'u' of size 16 /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset [24, 39] into object 'u' of size 16 /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset [24, 39] into object 'u' of size 16 In function 'do_byte_reverse', inlined from 'do_vec_load' at /kisskb/src/arch/powerpc/lib/sstep.c:691:3, inlined from 'emulate_loadstore' at /kisskb/src/arch/powerpc/lib/sstep.c:3439:9: /kisskb/src/arch/powerpc/lib/sstep.c:288:23: error: array subscript 2 is outside array bounds of 'u8[16]' {aka 'unsigned char[16]'} [-Werror=array-bounds=] 288 | tmp = byterev_8(up[2]); | ^~~~~~~~~~~~~~~~ /kisskb/src/arch/powerpc/lib/sstep.c: In function 'emulate_loadstore': /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset 16 into object 'u' of size 16 681 | } u = {}; | ^ /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset 16 into object 'u' of size 16 /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset 16 into object 'u' of size 16 /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset 16 into object 'u' of size 16 /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset 16 into object 'u' of size 16 In function 'do_byte_reverse', inlined from 'do_vec_load' at /kisskb/src/arch/powerpc/lib/sstep.c:691:3, inlined from 'emulate_loadstore' at /kisskb/src/arch/powerpc/lib/sstep.c:3439:9: /kisskb/src/arch/powerpc/lib/sstep.c:289:23: error: array subscript 2 is outside array bounds of 'u8[16]' {aka 'unsigned char[16]'} [-Werror=array-bounds=] 289 | up[2] = byterev_8(up[1]); | ~~~~~~^~~~~~~~~~~~~~~~~~ /kisskb/src/arch/powerpc/lib/sstep.c: In function 'emulate_loadstore': /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset 16 into object 'u' of size 16 681 | } u = {}; | ^ /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset 16 into object 'u' of size 16 /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset 16 into object 'u' of size 16 /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset 16 into object 'u' of size 16 /kisskb/src/arch/powerpc/lib/sstep.c:681:11: note: at offset 16 into object 'u' of size 16 cc1: all warnings being treated as errors make[4]: *** [/kisskb/src/scripts/Makefile.build:250: arch/powerpc/lib/sstep.o] Error 1 make[3]: *** [/kisskb/src/scripts/Makefile.build:500: arch/powerpc/lib] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/scripts/Makefile.build:500: arch/powerpc] Error 2 make[2]: *** Waiting for unfinished jobs.... In file included from /kisskb/src/arch/powerpc/include/asm/cacheflush.h:7, from /kisskb/src/include/linux/cacheflush.h:5, from /kisskb/src/include/linux/highmem.h:8, from /kisskb/src/include/linux/bvec.h:10, from /kisskb/src/include/linux/blk_types.h:10, from /kisskb/src/include/linux/blkdev.h:9, from /kisskb/src/fs/btrfs/disk-io.c:7: /kisskb/src/fs/btrfs/disk-io.c: In function 'csum_tree_block': /kisskb/src/fs/btrfs/disk-io.c:108:48: warning: array subscript 1 is above array bounds of 'struct page *[1]' [-Warray-bounds=] 108 | kaddr = page_address(buf->pages[i]); | ~~~~~~~~~~^~~ /kisskb/src/include/linux/mm.h:1778:48: note: in definition of macro 'page_address' 1778 | #define page_address(page) lowmem_page_address(page) | ^~~~ In file included from /kisskb/src/fs/btrfs/ctree.h:32, from /kisskb/src/fs/btrfs/disk-io.c:22: /kisskb/src/fs/btrfs/extent_io.h:94:22: note: while referencing 'pages' 94 | struct page *pages[INLINE_EXTENT_BUFFER_PAGES]; | ^~~~~ In function 'btrfs_show_u64', inlined from 'btrfs_space_info_show_flags' at /kisskb/src/fs/btrfs/sysfs.c:825:1: /kisskb/src/fs/btrfs/sysfs.c:634:13: warning: array subscript -34 is outside array bounds of 'struct kobject[144115188075855871]' [-Warray-bounds=] 634 | val = *value_ptr; | ~~~~^~~~~~~~~~~~ In function 'btrfs_show_u64', inlined from 'btrfs_space_info_show_bytes_used' at /kisskb/src/fs/btrfs/sysfs.c:827:1: /kisskb/src/fs/btrfs/sysfs.c:634:13: warning: array subscript -47 is outside array bounds of 'struct kobject[144115188075855871]' [-Warray-bounds=] 634 | val = *value_ptr; | ~~~~^~~~~~~~~~~~ In function 'btrfs_show_u64', inlined from 'btrfs_space_info_show_bytes_reserved' at /kisskb/src/fs/btrfs/sysfs.c:829:1: /kisskb/src/fs/btrfs/sysfs.c:634:13: warning: array subscript -45 is outside array bounds of 'struct kobject[144115188075855871]' [-Warray-bounds=] 634 | val = *value_ptr; | ~~~~^~~~~~~~~~~~ In function 'btrfs_show_u64', inlined from 'btrfs_space_info_show_bytes_zone_unusable' at /kisskb/src/fs/btrfs/sysfs.c:832:1: /kisskb/src/fs/btrfs/sysfs.c:634:13: warning: array subscript -41 is outside array bounds of 'struct kobject[144115188075855871]' [-Warray-bounds=] 634 | val = *value_ptr; | ~~~~^~~~~~~~~~~~ In function 'btrfs_show_u64', inlined from 'btrfs_space_info_show_disk_used' at /kisskb/src/fs/btrfs/sysfs.c:833:1: /kisskb/src/fs/btrfs/sysfs.c:634:13: warning: array subscript -36 is outside array bounds of 'struct kobject[144115188075855871]' [-Warray-bounds=] 634 | val = *value_ptr; | ~~~~^~~~~~~~~~~~ In function 'btrfs_show_u64', inlined from 'btrfs_space_info_show_bytes_readonly' at /kisskb/src/fs/btrfs/sysfs.c:831:1: /kisskb/src/fs/btrfs/sysfs.c:634:13: warning: array subscript -43 is outside array bounds of 'struct kobject[144115188075855871]' [-Warray-bounds=] 634 | val = *value_ptr; | ~~~~^~~~~~~~~~~~ In function 'btrfs_show_u64', inlined from 'btrfs_space_info_show_bytes_pinned' at /kisskb/src/fs/btrfs/sysfs.c:828:1: /kisskb/src/fs/btrfs/sysfs.c:634:13: warning: array subscript -46 is outside array bounds of 'struct kobject[144115188075855871]' [-Warray-bounds=] 634 | val = *value_ptr; | ~~~~^~~~~~~~~~~~ In function 'btrfs_show_u64', inlined from 'btrfs_space_info_show_bytes_may_use' at /kisskb/src/fs/btrfs/sysfs.c:830:1: /kisskb/src/fs/btrfs/sysfs.c:634:13: warning: array subscript -44 is outside array bounds of 'struct kobject[144115188075855871]' [-Warray-bounds=] 634 | val = *value_ptr; | ~~~~^~~~~~~~~~~~ In function 'btrfs_show_u64', inlined from 'btrfs_space_info_show_total_bytes' at /kisskb/src/fs/btrfs/sysfs.c:826:1: /kisskb/src/fs/btrfs/sysfs.c:634:13: warning: array subscript -48 is outside array bounds of 'struct kobject[144115188075855871]' [-Warray-bounds=] 634 | val = *value_ptr; | ~~~~^~~~~~~~~~~~ In function 'btrfs_show_u64', inlined from 'btrfs_space_info_show_disk_total' at /kisskb/src/fs/btrfs/sysfs.c:834:1: /kisskb/src/fs/btrfs/sysfs.c:634:13: warning: array subscript -35 is outside array bounds of 'struct kobject[144115188075855871]' [-Warray-bounds=] 634 | val = *value_ptr; | ~~~~^~~~~~~~~~~~ In function 'lpfc_debugfs_ras_log_data', inlined from 'lpfc_debugfs_ras_log_open' at /kisskb/src/drivers/scsi/lpfc/lpfc_debugfs.c:2268:15: /kisskb/src/drivers/scsi/lpfc/lpfc_debugfs.c:2207:25: warning: 'memcpy' pointer overflow between offset 0 and size [-2147483648, -1] [-Warray-bounds=] 2207 | memcpy(buffer + copied, dmabuf->virt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2208 | size - copied - 1); | ~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/infiniband/core/user_mad.c: In function 'ib_umad_write': /kisskb/src/drivers/infiniband/core/user_mad.c:564:50: warning: array subscript 'struct ib_rmpp_mad[0]' is partly outside array bounds of 'unsigned char[140]' [-Warray-bounds=] 564 | hdr_len = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class); | ^~ In file included from /kisskb/src/include/linux/fs.h:45, from /kisskb/src/drivers/infiniband/core/user_mad.c:42: In function 'kmalloc', inlined from 'kzalloc' at /kisskb/src/include/linux/slab.h:689:9, inlined from 'ib_umad_write' at /kisskb/src/drivers/infiniband/core/user_mad.c:509:11: /kisskb/src/include/linux/slab.h:553:24: note: at offset 104 into object of size 140 allocated by 'kmalloc_trace' 553 | return kmalloc_trace( | ^~~~~~~~~~~~~~ 554 | kmalloc_caches[kmalloc_type(flags)][index], | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 555 | flags, size); | ~~~~~~~~~~~~ /kisskb/src/drivers/infiniband/core/user_mad.c: In function 'ib_umad_write': /kisskb/src/drivers/infiniband/core/user_mad.c:566:42: warning: array subscript 'struct ib_rmpp_mad[0]' is partly outside array bounds of 'unsigned char[140]' [-Warray-bounds=] 566 | if (ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class) | ^~ In function 'kmalloc', inlined from 'kzalloc' at /kisskb/src/include/linux/slab.h:689:9, inlined from 'ib_umad_write' at /kisskb/src/drivers/infiniband/core/user_mad.c:509:11: /kisskb/src/include/linux/slab.h:553:24: note: at offset 104 into object of size 140 allocated by 'kmalloc_trace' 553 | return kmalloc_trace( | ^~~~~~~~~~~~~~ 554 | kmalloc_caches[kmalloc_type(flags)][index], | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 555 | flags, size); | ~~~~~~~~~~~~ /kisskb/src/drivers/infiniband/core/user_mad.c: In function 'ib_umad_write': /kisskb/src/drivers/infiniband/core/user_mad.c:618:25: warning: array subscript 'struct ib_rmpp_mad[0]' is partly outside array bounds of 'unsigned char[140]' [-Warray-bounds=] 618 | rmpp_mad->mad_hdr.tid = *tid; | ^~ In function 'kmalloc', inlined from 'kzalloc' at /kisskb/src/include/linux/slab.h:689:9, inlined from 'ib_umad_write' at /kisskb/src/drivers/infiniband/core/user_mad.c:509:11: /kisskb/src/include/linux/slab.h:553:24: note: at offset 104 into object of size 140 allocated by 'kmalloc_trace' 553 | return kmalloc_trace( | ^~~~~~~~~~~~~~ 554 | kmalloc_caches[kmalloc_type(flags)][index], | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 555 | flags, size); | ~~~~~~~~~~~~ /kisskb/src/drivers/infiniband/core/user_mad.c: In function 'ib_umad_write': /kisskb/src/drivers/infiniband/core/user_mad.c:622:44: warning: array subscript 'struct ib_rmpp_mad[0]' is partly outside array bounds of 'unsigned char[140]' [-Warray-bounds=] 622 | && ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class) | ^~ In function 'kmalloc', inlined from 'kzalloc' at /kisskb/src/include/linux/slab.h:689:9, inlined from 'ib_umad_write' at /kisskb/src/drivers/infiniband/core/user_mad.c:509:11: /kisskb/src/include/linux/slab.h:553:24: note: at offset 104 into object of size 140 allocated by 'kmalloc_trace' 553 | return kmalloc_trace( | ^~~~~~~~~~~~~~ 554 | kmalloc_caches[kmalloc_type(flags)][index], | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 555 | flags, size); | ~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/broadcom/tg3.c: In function 'tg3_init_one': /kisskb/src/drivers/net/ethernet/broadcom/tg3.c:17795:51: warning: array subscript 5 is above array bounds of 'struct tg3_napi[5]' [-Warray-bounds=] 17795 | struct tg3_napi *tnapi = &tp->napi[i]; | ~~~~~~~~^~~ In file included from /kisskb/src/drivers/net/ethernet/broadcom/tg3.c:72: /kisskb/src/drivers/net/ethernet/broadcom/tg3.h:3203:41: note: while referencing 'napi' 3203 | struct tg3_napi napi[TG3_IRQ_MAX_VECS]; | ^~~~ /kisskb/src/drivers/net/ethernet/broadcom/tg3.c:17795:51: warning: array subscript 5 is above array bounds of 'struct tg3_napi[5]' [-Warray-bounds=] 17795 | struct tg3_napi *tnapi = &tp->napi[i]; | ~~~~~~~~^~~ /kisskb/src/drivers/net/ethernet/broadcom/tg3.h:3203:41: note: while referencing 'napi' 3203 | struct tg3_napi napi[TG3_IRQ_MAX_VECS]; | ^~~~ /kisskb/src/drivers/net/bonding/bond_alb.c:1409:13: warning: conflicting types for 'bond_tlb_xmit' due to enum/integer mismatch; have 'netdev_tx_t(struct sk_buff *, struct net_device *)' {aka 'enum netdev_tx(struct sk_buff *, struct net_device *)'} [-Wenum-int-mismatch] 1409 | netdev_tx_t bond_tlb_xmit(struct sk_buff *skb, struct net_device *bond_dev) | ^~~~~~~~~~~~~ In file included from /kisskb/src/include/net/bonding.h:30, from /kisskb/src/drivers/net/bonding/bond_alb.c:24: /kisskb/src/include/net/bond_alb.h:160:5: note: previous declaration of 'bond_tlb_xmit' with type 'int(struct sk_buff *, struct net_device *)' 160 | int bond_tlb_xmit(struct sk_buff *skb, struct net_device *bond_dev); | ^~~~~~~~~~~~~ /kisskb/src/drivers/net/bonding/bond_alb.c:1523:13: warning: conflicting types for 'bond_alb_xmit' due to enum/integer mismatch; have 'netdev_tx_t(struct sk_buff *, struct net_device *)' {aka 'enum netdev_tx(struct sk_buff *, struct net_device *)'} [-Wenum-int-mismatch] 1523 | netdev_tx_t bond_alb_xmit(struct sk_buff *skb, struct net_device *bond_dev) | ^~~~~~~~~~~~~ /kisskb/src/include/net/bond_alb.h:159:5: note: previous declaration of 'bond_alb_xmit' with type 'int(struct sk_buff *, struct net_device *)' 159 | int bond_alb_xmit(struct sk_buff *skb, struct net_device *bond_dev); | ^~~~~~~~~~~~~ In file included from /kisskb/src/include/linux/kernel.h:26, from /kisskb/src/include/linux/cpumask.h:10, from /kisskb/src/include/linux/mm_types_task.h:14, from /kisskb/src/include/linux/mm_types.h:5, from /kisskb/src/include/linux/buildid.h:5, from /kisskb/src/include/linux/module.h:14, from /kisskb/src/drivers/infiniband/ulp/srp/ib_srp.c:35: /kisskb/src/drivers/infiniband/ulp/srp/ib_srp.c: In function 'srp_create_ch_ib': /kisskb/src/include/linux/minmax.h:20:35: warning: comparison of distinct pointer types lacks a cast 20 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) | ^~ /kisskb/src/include/linux/minmax.h:26:18: note: in expansion of macro '__typecheck' 26 | (__typecheck(x, y) && __no_side_effects(x, y)) | ^~~~~~~~~~~ /kisskb/src/include/linux/minmax.h:36:31: note: in expansion of macro '__safe_cmp' 36 | __builtin_choose_expr(__safe_cmp(x, y), \ | ^~~~~~~~~~ /kisskb/src/include/linux/minmax.h:45:25: note: in expansion of macro '__careful_cmp' 45 | #define min(x, y) __careful_cmp(x, y, <) | ^~~~~~~~~~~~~ /kisskb/src/drivers/infiniband/ulp/srp/ib_srp.c:563:42: note: in expansion of macro 'min' 563 | init_attr->cap.max_send_sge = min(SRP_MAX_SGE, attr->max_send_sge); | ^~~ /kisskb/src/drivers/infiniband/ulp/srp/ib_srp.c: In function 'srp_cm_rep_handler': /kisskb/src/include/linux/minmax.h:20:35: warning: comparison of distinct pointer types lacks a cast 20 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) | ^~ /kisskb/src/include/linux/minmax.h:26:18: note: in expansion of macro '__typecheck' 26 | (__typecheck(x, y) && __no_side_effects(x, y)) | ^~~~~~~~~~~ /kisskb/src/include/linux/minmax.h:36:31: note: in expansion of macro '__safe_cmp' 36 | __builtin_choose_expr(__safe_cmp(x, y), \ | ^~~~~~~~~~ /kisskb/src/include/linux/minmax.h:45:25: note: in expansion of macro '__careful_cmp' 45 | #define min(x, y) __careful_cmp(x, y, <) | ^~~~~~~~~~~~~ /kisskb/src/drivers/infiniband/ulp/srp/ib_srp.c:2369:27: note: in expansion of macro 'min' 2369 | = min(ch->req_lim - SRP_TSK_MGMT_SQ_SIZE, | ^~~ /kisskb/src/drivers/infiniband/ulp/ipoib/ipoib_cm.c: In function 'ipoib_cm_alloc_rx_skb': /kisskb/src/drivers/infiniband/ulp/ipoib/ipoib_cm.c:175:24: warning: array subscript 1 is outside array bounds of 'u64[1]' {aka 'long long unsigned int[1]'} [-Warray-bounds=] 175 | mapping[i + 1] = ib_dma_map_page(priv->ca, page, | ~~~~~~~^~~~~~~ /kisskb/src/drivers/infiniband/ulp/ipoib/ipoib_cm.c:144:50: note: at offset 8 into object 'mapping' of size [0, 8] 144 | u64 mapping[IPOIB_CM_RX_SG], | ~~~~^~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/infiniband/ulp/ipoib/ipoib_cm.c:189:17: warning: array subscript 1 is outside array bounds of 'u64[1]' {aka 'long long unsigned int[1]'} [-Warray-bounds=] 189 | ib_dma_unmap_page(priv->ca, mapping[i], PAGE_SIZE, DMA_FROM_DEVICE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/infiniband/ulp/ipoib/ipoib_cm.c:144:50: note: at offset 8 into object 'mapping' of size [0, 8] 144 | u64 mapping[IPOIB_CM_RX_SG], | ~~~~^~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/infiniband/ulp/ipoib/ipoib_cm.c: In function 'ipoib_cm_dma_unmap_rx': /kisskb/src/drivers/infiniband/ulp/ipoib/ipoib_cm.c:91:17: warning: array subscript 1 is outside array bounds of 'u64[1]' {aka 'long long unsigned int[1]'} [-Warray-bounds=] 91 | ib_dma_unmap_page(priv->ca, mapping[i + 1], PAGE_SIZE, DMA_FROM_DEVICE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/infiniband/ulp/ipoib/ipoib_cm.c:84:39: note: at offset 8 into object 'mapping' of size [0, 8] 84 | u64 mapping[IPOIB_CM_RX_SG]) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/intel/i40e/i40e_main.c:129:5: warning: conflicting types for 'i40e_allocate_dma_mem_d' due to enum/integer mismatch; have 'int(struct i40e_hw *, struct i40e_dma_mem *, u64, u32)' {aka 'int(struct i40e_hw *, struct i40e_dma_mem *, long long unsigned int, unsigned int)'} [-Wenum-int-mismatch] 129 | int i40e_allocate_dma_mem_d(struct i40e_hw *hw, struct i40e_dma_mem *mem, | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /kisskb/src/drivers/net/ethernet/intel/i40e/i40e_type.h:8, from /kisskb/src/drivers/net/ethernet/intel/i40e/i40e.h:41, from /kisskb/src/drivers/net/ethernet/intel/i40e/i40e_main.c:12: /kisskb/src/drivers/net/ethernet/intel/i40e/i40e_osdep.h:40:25: note: previous declaration of 'i40e_allocate_dma_mem_d' with type 'i40e_status(struct i40e_hw *, struct i40e_dma_mem *, u64, u32)' {aka 'enum i40e_status_code(struct i40e_hw *, struct i40e_dma_mem *, long long unsigned int, unsigned int)'} 40 | i40e_allocate_dma_mem_d(h, m, s, a) | ^~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/intel/i40e/i40e_alloc.h:23:13: note: in expansion of macro 'i40e_allocate_dma_mem' 23 | i40e_status i40e_allocate_dma_mem(struct i40e_hw *hw, | ^~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/intel/i40e/i40e_main.c:148:5: warning: conflicting types for 'i40e_free_dma_mem_d' due to enum/integer mismatch; have 'int(struct i40e_hw *, struct i40e_dma_mem *)' [-Wenum-int-mismatch] 148 | int i40e_free_dma_mem_d(struct i40e_hw *hw, struct i40e_dma_mem *mem) | ^~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/intel/i40e/i40e_osdep.h:41:33: note: previous declaration of 'i40e_free_dma_mem_d' with type 'i40e_status(struct i40e_hw *, struct i40e_dma_mem *)' {aka 'enum i40e_status_code(struct i40e_hw *, struct i40e_dma_mem *)'} 41 | #define i40e_free_dma_mem(h, m) i40e_free_dma_mem_d(h, m) | ^~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/intel/i40e/i40e_alloc.h:27:13: note: in expansion of macro 'i40e_free_dma_mem' 27 | i40e_status i40e_free_dma_mem(struct i40e_hw *hw, | ^~~~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/intel/i40e/i40e_main.c:166:5: warning: conflicting types for 'i40e_allocate_virt_mem_d' due to enum/integer mismatch; have 'int(struct i40e_hw *, struct i40e_virt_mem *, u32)' {aka 'int(struct i40e_hw *, struct i40e_virt_mem *, unsigned int)'} [-Wenum-int-mismatch] 166 | int i40e_allocate_virt_mem_d(struct i40e_hw *hw, struct i40e_virt_mem *mem, | ^~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/intel/i40e/i40e_osdep.h:48:41: note: previous declaration of 'i40e_allocate_virt_mem_d' with type 'i40e_status(struct i40e_hw *, struct i40e_virt_mem *, u32)' {aka 'enum i40e_status_code(struct i40e_hw *, struct i40e_virt_mem *, unsigned int)'} 48 | #define i40e_allocate_virt_mem(h, m, s) i40e_allocate_virt_mem_d(h, m, s) | ^~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/intel/i40e/i40e_alloc.h:29:13: note: in expansion of macro 'i40e_allocate_virt_mem' 29 | i40e_status i40e_allocate_virt_mem(struct i40e_hw *hw, | ^~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/intel/i40e/i40e_main.c:183:5: warning: conflicting types for 'i40e_free_virt_mem_d' due to enum/integer mismatch; have 'int(struct i40e_hw *, struct i40e_virt_mem *)' [-Wenum-int-mismatch] 183 | int i40e_free_virt_mem_d(struct i40e_hw *hw, struct i40e_virt_mem *mem) | ^~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/intel/i40e/i40e_osdep.h:49:34: note: previous declaration of 'i40e_free_virt_mem_d' with type 'i40e_status(struct i40e_hw *, struct i40e_virt_mem *)' {aka 'enum i40e_status_code(struct i40e_hw *, struct i40e_virt_mem *)'} 49 | #define i40e_free_virt_mem(h, m) i40e_free_virt_mem_d(h, m) | ^~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/intel/i40e/i40e_alloc.h:32:13: note: in expansion of macro 'i40e_free_virt_mem' 32 | i40e_status i40e_free_virt_mem(struct i40e_hw *hw, | ^~~~~~~~~~~~~~~~~~ make[1]: *** [/kisskb/src/Makefile:1994: .] Error 2 make: *** [Makefile:231: __sub-make] Error 2 Command 'make -s -j 32 ARCH=powerpc O=/kisskb/build/chleroy_ppc64_defconfig_powerpc-gcc13 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-13.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2. # rm -rf /kisskb/build/chleroy_ppc64_defconfig_powerpc-gcc13 # Build took: 0:02:57.045792