In file included from ../include/linux/string.h:389, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:12, from ../arch/x86/include/asm/paravirt.h:21, from ../arch/x86/include/asm/cpuid.h:64, from ../arch/x86/include/asm/processor.h:19, 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/staging/gpib/fmh_gpib/fmh_gpib.o In file included from ../include/linux/string.h:389, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:12, from ../arch/x86/include/asm/paravirt.h:21, from ../arch/x86/include/asm/cpuid.h:64, from ../arch/x86/include/asm/processor.h:19, 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 ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:12, from ../arch/x86/include/asm/paravirt.h:21, from ../arch/x86/include/asm/cpuid.h:64, from ../arch/x86/include/asm/processor.h:19, from ../arch/x86/include/asm/cpufeature.h:5, from ../arch/x86/include/asm/thread_info.h:59, 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 ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:12, from ../arch/x86/include/asm/paravirt.h:21, from ../arch/x86/include/asm/cpuid.h:64, from ../arch/x86/include/asm/processor.h:19, from ../arch/x86/include/asm/cpufeature.h:5, from ../arch/x86/include/asm/thread_info.h:59, 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/staging/gpib/fmh_gpib/fmh_gpib.o New errors added --- /tmp/tmp.qVWGMjGksx 2025-01-15 13:51:27.885521041 -0800 +++ /tmp/tmp.qVR2SUR0y8 2025-01-15 13:52:42.441710223 -0800 @@ -11,6 +11,3 @@ - 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: + from ../include/linux/stat.h:19, + from ../include/linux/module.h:13, + from ../net/smc/smc_diag.c:13: @@ -18,2 +15,52 @@ - 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: + 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 ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:12, + from ../arch/x86/include/asm/paravirt.h:21, + from ../arch/x86/include/asm/cpuid.h:64, + from ../arch/x86/include/asm/processor.h:19, + from ../arch/x86/include/asm/cpufeature.h:5, + from ../arch/x86/include/asm/thread_info.h:59, + 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 ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:12, + from ../arch/x86/include/asm/paravirt.h:21, + from ../arch/x86/include/asm/cpuid.h:64, + from ../arch/x86/include/asm/processor.h:19, + from ../arch/x86/include/asm/cpufeature.h:5, + from ../arch/x86/include/asm/thread_info.h:59, + 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: Per-file breakdown --- /tmp/tmp.OePf6Z4kTl 2025-01-15 13:52:42.448710147 -0800 +++ /tmp/tmp.4kbwRvxgIv 2025-01-15 13:52:42.450710125 -0800 @@ -1 +1 @@ - 1 ../include/linux/fortify-string.h + 5 ../include/linux/fortify-string.h