../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/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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 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:567: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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/staging/gpib/fmh_gpib/fmh_gpib.o 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[4]: *** Waiting for unfinished jobs.... 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.Qx7MFoJT4I 2025-01-15 12:45:28.538471035 -0800 +++ /tmp/tmp.YI1r83hL3W 2025-01-15 12:45:50.516232096 -0800 @@ -17 +17 @@ - inlined from ‘smcd_get_local_gid’ at ../net/smc/smc_ism.c:567:2: + inlined from ‘smcd_get_local_gid’ at ../net/smc/smc_ism.c:574:2: @@ -21 +21,32 @@ -WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/staging/gpib/fmh_gpib/fmh_gpib.o +../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[4]: *** Waiting for unfinished jobs.... +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 Per-file breakdown --- /tmp/tmp.lm1nORmEKs 2025-01-15 12:45:50.523232020 -0800 +++ /tmp/tmp.0e1wIsFKbH 2025-01-15 12:45:50.525231998 -0800 @@ -1,0 +2 @@ + 7 ../net/ism/ism_loopback.c