In file included from ../include/linux/string.h:389, from ../arch/x86/include/asm/page_32.h:18, from ../arch/x86/include/asm/page.h:14, from ../arch/x86/include/asm/processor.h:20, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/jiffies.h:10, from ../include/linux/ktime.h:25, from ../include/linux/timer.h:6, from ../include/linux/netdevice.h:24, from ../include/linux/if_vlan.h:10, from ../net/smc/smc_ism.c:9: In function ‘fortify_memcpy_chk’, inlined from ‘copy_to_smcdgid’ at ../net/smc/smc_ism.h:104:2, inlined from ‘smcd_get_local_gid’ at ../net/smc/smc_ism.c:574:2: ../include/linux/fortify-string.h:580:25: warning: call to ‘__read_overflow2_field’ declared with attribute warning: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../net/ism/ism_loopback.c: In function ‘ism_lo_register_dmb’: ../net/ism/ism_loopback.c:55:20: error: implicit declaration of function ‘kzalloc’ [-Wimplicit-function-declaration] 55 | dmb_node = kzalloc(sizeof(*dmb_node), GFP_KERNEL); | ^~~~~~~ ../net/ism/ism_loopback.c:55:18: error: assignment to ‘struct ism_lo_dmb_node *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 55 | dmb_node = kzalloc(sizeof(*dmb_node), GFP_KERNEL); | ^ ../net/ism/ism_loopback.c:63:28: error: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 63 | dmb_node->cpu_addr = kzalloc(dmb_node->len, GFP_KERNEL | | ^ ../net/ism/ism_loopback.c:100:9: error: implicit declaration of function ‘kfree’ [-Wimplicit-function-declaration] 100 | kfree(dmb_node); | ^~~~~ ../net/ism/ism_loopback.c: In function ‘__ism_lo_unregister_dmb’: ../net/ism/ism_loopback.c:115:9: error: implicit declaration of function ‘kvfree’ [-Wimplicit-function-declaration] 115 | kvfree(dmb_node->cpu_addr); | ^~~~~~ ../net/ism/ism_loopback.c: In function ‘ism_lo_dev_probe’: ../net/ism/ism_loopback.c:322:14: error: assignment to ‘struct ism_lo_dev *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 322 | ldev = kzalloc(sizeof(*ldev), GFP_KERNEL); | ^ ../net/ism/ism_loopback.c:331:29: error: assignment to ‘u8 *’ {aka ‘unsigned char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 331 | ism->sba_client_arr = kzalloc(ISM_LO_MAX_DMBS, GFP_KERNEL); | ^ make[5]: *** [../scripts/Makefile.build:194: net/ism/ism_loopback.o] Error 1 make[4]: *** [../scripts/Makefile.build:440: net/ism] Error 2 make[3]: *** [../scripts/Makefile.build:440: net] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1993: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 ../net/ism/ism_loopback.c: In function ‘ism_lo_register_dmb’: ../net/ism/ism_loopback.c:55:20: error: implicit declaration of function ‘kzalloc’ [-Wimplicit-function-declaration] 55 | dmb_node = kzalloc(sizeof(*dmb_node), GFP_KERNEL); | ^~~~~~~ ../net/ism/ism_loopback.c:55:18: error: assignment to ‘struct ism_lo_dmb_node *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 55 | dmb_node = kzalloc(sizeof(*dmb_node), GFP_KERNEL); | ^ ../net/ism/ism_loopback.c:63:28: error: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 63 | dmb_node->cpu_addr = kzalloc(dmb_node->len, GFP_KERNEL | | ^ ../net/ism/ism_loopback.c:100:9: error: implicit declaration of function ‘kfree’ [-Wimplicit-function-declaration] 100 | kfree(dmb_node); | ^~~~~ ../net/ism/ism_loopback.c: In function ‘__ism_lo_unregister_dmb’: ../net/ism/ism_loopback.c:115:9: error: implicit declaration of function ‘kvfree’ [-Wimplicit-function-declaration] 115 | kvfree(dmb_node->cpu_addr); | ^~~~~~ ../net/ism/ism_loopback.c: In function ‘ism_lo_dev_probe’: ../net/ism/ism_loopback.c:322:14: error: assignment to ‘struct ism_lo_dev *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 322 | ldev = kzalloc(sizeof(*ldev), GFP_KERNEL); | ^ ../net/ism/ism_loopback.c:331:29: error: assignment to ‘u8 *’ {aka ‘unsigned char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 331 | ism->sba_client_arr = kzalloc(ISM_LO_MAX_DMBS, GFP_KERNEL); | ^ make[5]: *** [../scripts/Makefile.build:194: net/ism/ism_loopback.o] Error 1 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [../scripts/Makefile.build:440: net/ism] Error 2 make[4]: *** Waiting for unfinished jobs.... In file included from ../include/linux/string.h:389, from ../arch/x86/include/asm/page_32.h:18, from ../arch/x86/include/asm/page.h:14, from ../arch/x86/include/asm/processor.h:20, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/module.h:13, from ../net/smc/smc_diag.c:13: In function ‘fortify_memcpy_chk’, inlined from ‘copy_to_smcdgid’ at ../net/smc/smc_ism.h:106:2, inlined from ‘__smc_diag_dump.constprop’ at ../net/smc/smc_diag.c:178:3: ../include/linux/fortify-string.h:580:25: warning: call to ‘__read_overflow2_field’ declared with attribute warning: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/linux/string.h:389, from ../arch/x86/include/asm/page_32.h:18, from ../arch/x86/include/asm/page.h:14, from ../arch/x86/include/asm/thread_info.h:12, from ../include/linux/thread_info.h:60, from ../include/linux/uio.h:9, from ../include/linux/socket.h:8, from ../include/uapi/linux/in.h:25, from ../include/linux/in.h:19, from ../net/smc/smc_clc.c:13: In function ‘fortify_memcpy_chk’, inlined from ‘copy_to_smcdgid’ at ../net/smc/smc_ism.h:106:2, inlined from ‘smcd_clc_prep_confirm_accept’ at ../net/smc/smc_clc.c:1061:2: ../include/linux/fortify-string.h:580:25: warning: call to ‘__read_overflow2_field’ declared with attribute warning: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘fortify_memcpy_chk’, inlined from ‘copy_to_smcdgid’ at ../net/smc/smc_ism.h:106:2, inlined from ‘smc_clc_send_proposal’ at ../net/smc/smc_clc.c:918:4: ../include/linux/fortify-string.h:580:25: warning: call to ‘__read_overflow2_field’ declared with attribute warning: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘fortify_memcpy_chk’, inlined from ‘copy_to_smcdgid’ at ../net/smc/smc_ism.h:106:2, inlined from ‘smc_clc_send_proposal’ at ../net/smc/smc_clc.c:968:5: ../include/linux/fortify-string.h:580:25: warning: call to ‘__read_overflow2_field’ declared with attribute warning: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/linux/string.h:389, from ../arch/x86/include/asm/page_32.h:18, from ../arch/x86/include/asm/page.h:14, from ../arch/x86/include/asm/thread_info.h:12, from ../include/linux/thread_info.h:60, from ../include/linux/uio.h:9, from ../include/linux/socket.h:8, from ../net/smc/smc_core.c:12: In function ‘fortify_memcpy_chk’, inlined from ‘copy_to_smcdgid’ at ../net/smc/smc_ism.h:106:2, inlined from ‘smc_nl_fill_smcd_lgr.isra’ at ../net/smc/smc_core.c:558:2: ../include/linux/fortify-string.h:580:25: warning: call to ‘__read_overflow2_field’ declared with attribute warning: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[3]: *** [../scripts/Makefile.build:440: net] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1993: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 New errors added --- /tmp/tmp.aGX1osrT1h 2025-01-15 12:46:46.733620908 -0800 +++ /tmp/tmp.A8nrTWQiYp 2025-01-15 12:47:08.318386241 -0800 @@ -1,20 +0,0 @@ -In file included from ../include/linux/string.h:389, - from ../arch/x86/include/asm/page_32.h:18, - from ../arch/x86/include/asm/page.h:14, - from ../arch/x86/include/asm/processor.h:20, - from ../arch/x86/include/asm/timex.h:5, - from ../include/linux/timex.h:67, - from ../include/linux/time32.h:13, - from ../include/linux/time.h:60, - from ../include/linux/jiffies.h:10, - from ../include/linux/ktime.h:25, - from ../include/linux/timer.h:6, - from ../include/linux/netdevice.h:24, - from ../include/linux/if_vlan.h:10, - from ../net/smc/smc_ism.c:9: -In function ‘fortify_memcpy_chk’, - inlined from ‘copy_to_smcdgid’ at ../net/smc/smc_ism.h:104:2, - inlined from ‘smcd_get_local_gid’ at ../net/smc/smc_ism.c:574:2: -../include/linux/fortify-string.h:580:25: warning: call to ‘__read_overflow2_field’ declared with attribute warning: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] - 580 | __read_overflow2_field(q_size_field, size); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -45,0 +26 @@ +make[5]: *** Waiting for unfinished jobs.... @@ -46,0 +28,60 @@ +make[4]: *** Waiting for unfinished jobs.... +In file included from ../include/linux/string.h:389, + from ../arch/x86/include/asm/page_32.h:18, + from ../arch/x86/include/asm/page.h:14, + from ../arch/x86/include/asm/processor.h:20, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/module.h:13, + from ../net/smc/smc_diag.c:13: +In function ‘fortify_memcpy_chk’, + inlined from ‘copy_to_smcdgid’ at ../net/smc/smc_ism.h:106:2, + inlined from ‘__smc_diag_dump.constprop’ at ../net/smc/smc_diag.c:178:3: +../include/linux/fortify-string.h:580:25: warning: call to ‘__read_overflow2_field’ declared with attribute warning: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] + 580 | __read_overflow2_field(q_size_field, size); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from ../include/linux/string.h:389, + from ../arch/x86/include/asm/page_32.h:18, + from ../arch/x86/include/asm/page.h:14, + from ../arch/x86/include/asm/thread_info.h:12, + from ../include/linux/thread_info.h:60, + from ../include/linux/uio.h:9, + from ../include/linux/socket.h:8, + from ../include/uapi/linux/in.h:25, + from ../include/linux/in.h:19, + from ../net/smc/smc_clc.c:13: +In function ‘fortify_memcpy_chk’, + inlined from ‘copy_to_smcdgid’ at ../net/smc/smc_ism.h:106:2, + inlined from ‘smcd_clc_prep_confirm_accept’ at ../net/smc/smc_clc.c:1061:2: +../include/linux/fortify-string.h:580:25: warning: call to ‘__read_overflow2_field’ declared with attribute warning: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] + 580 | __read_overflow2_field(q_size_field, size); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In function ‘fortify_memcpy_chk’, + inlined from ‘copy_to_smcdgid’ at ../net/smc/smc_ism.h:106:2, + inlined from ‘smc_clc_send_proposal’ at ../net/smc/smc_clc.c:918:4: +../include/linux/fortify-string.h:580:25: warning: call to ‘__read_overflow2_field’ declared with attribute warning: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] + 580 | __read_overflow2_field(q_size_field, size); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In function ‘fortify_memcpy_chk’, + inlined from ‘copy_to_smcdgid’ at ../net/smc/smc_ism.h:106:2, + inlined from ‘smc_clc_send_proposal’ at ../net/smc/smc_clc.c:968:5: +../include/linux/fortify-string.h:580:25: warning: call to ‘__read_overflow2_field’ declared with attribute warning: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] + 580 | __read_overflow2_field(q_size_field, size); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from ../include/linux/string.h:389, + from ../arch/x86/include/asm/page_32.h:18, + from ../arch/x86/include/asm/page.h:14, + from ../arch/x86/include/asm/thread_info.h:12, + from ../include/linux/thread_info.h:60, + from ../include/linux/uio.h:9, + from ../include/linux/socket.h:8, + from ../net/smc/smc_core.c:12: +In function ‘fortify_memcpy_chk’, + inlined from ‘copy_to_smcdgid’ at ../net/smc/smc_ism.h:106:2, + inlined from ‘smc_nl_fill_smcd_lgr.isra’ at ../net/smc/smc_core.c:558:2: +../include/linux/fortify-string.h:580:25: warning: call to ‘__read_overflow2_field’ declared with attribute warning: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] + 580 | __read_overflow2_field(q_size_field, size); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Per-file breakdown --- /tmp/tmp.pMSnD56DRA 2025-01-15 12:47:08.326386155 -0800 +++ /tmp/tmp.3aP1o8zDvm 2025-01-15 12:47:08.328386133 -0800 @@ -1 +1 @@ - 1 ../include/linux/fortify-string.h + 5 ../include/linux/fortify-string.h