.pylintrc: warning: ignored by one of the .gitignore files ../kernel/sys.c:1115:32: warning: incorrect type in argument 1 (different address spaces) ../kernel/sys.c:1115:32: expected struct task_struct *p1 ../kernel/sys.c:1115:32: got struct task_struct [noderef] __rcu *real_parent ../kernel/sys.c:1865:33: warning: context imbalance in 'getrusage' - different lock contexts for basic block ../drivers/base/firmware_loader/main.c:229:9: warning: context imbalance in 'free_fw_priv' - wrong count at exit ../drivers/net/ethernet/marvell/octeontx2/af/cgx.c: In function ‘cgx_lmac_init’: ../drivers/net/ethernet/marvell/octeontx2/af/cgx.c:1735:49: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size between 4 and 6 [-Wformat-overflow=] 1735 | sprintf(lmac->name, "cgx_fwi_%d_%d", cgx->cgx_id, i); | ^~ ../drivers/net/ethernet/marvell/octeontx2/af/cgx.c:1735:37: note: directive argument in the range [-2147483641, 254] 1735 | sprintf(lmac->name, "cgx_fwi_%d_%d", cgx->cgx_id, i); | ^~~~~~~~~~~~~~~ ../drivers/net/ethernet/marvell/octeontx2/af/cgx.c:1735:17: note: ‘sprintf’ output between 12 and 24 bytes into a destination of size 16 1735 | sprintf(lmac->name, "cgx_fwi_%d_%d", cgx->cgx_id, i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/linux/string.h:392, 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/api.h:57, 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 ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:8: In function ‘fortify_memcpy_chk’, inlined from ‘rvu_nix_blk_aq_enq_inst’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1165: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 ‘rvu_nix_blk_aq_enq_inst’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1168: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 ‘rvu_nix_blk_aq_enq_inst’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1171: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 ‘rvu_nix_blk_aq_enq_inst’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1183: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 ‘rvu_nix_blk_aq_enq_inst’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1185: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 ‘rvu_nix_blk_aq_enq_inst’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1187: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 ‘rvu_nix_blk_aq_enq_inst’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1259:5: ../include/linux/fortify-string.h:571:25: warning: call to ‘__write_overflow_field’ declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning] 571 | __write_overflow_field(p_size_field, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘fortify_memcpy_chk’, inlined from ‘rvu_nix_blk_aq_enq_inst’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1262:5: ../include/linux/fortify-string.h:571:25: warning: call to ‘__write_overflow_field’ declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning] 571 | __write_overflow_field(p_size_field, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘fortify_memcpy_chk’, inlined from ‘rvu_nix_blk_aq_enq_inst’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1265:5: ../include/linux/fortify-string.h:571:25: warning: call to ‘__write_overflow_field’ declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning] 571 | __write_overflow_field(p_size_field, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘fortify_memcpy_chk’, inlined from ‘rvu_nix_verify_aq_ctx.constprop’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1300:2: ../include/linux/fortify-string.h:571:25: warning: call to ‘__write_overflow_field’ declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning] 571 | __write_overflow_field(p_size_field, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../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 ‘rvu_nix_verify_aq_ctx.constprop’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1301:2: ../include/linux/fortify-string.h:571:25: warning: call to ‘__write_overflow_field’ declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning] 571 | __write_overflow_field(p_size_field, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c: In function ‘rvu_dbg_mcs_init’: ../drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:508:36: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size 7 [-Wformat-overflow=] 508 | sprintf(dname, "mcs%d", i); | ^~ ../drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:508:32: note: directive argument in the range [-2147483641, 2147483646] 508 | sprintf(dname, "mcs%d", i); | ^~~~~~~ ../drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:508:17: note: ‘sprintf’ output between 5 and 15 bytes into a destination of size 10 508 | sprintf(dname, "mcs%d", i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:681:35: warning: incorrect type in argument 1 (different address spaces) ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:681:35: expected void volatile [noderef] __iomem *addr ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:681:35: got void *hwbase ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:822:21: warning: incorrect type in assignment (different address spaces) ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:822:21: expected struct rvu_fwdata *fwdata ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:822:21: got void [noderef] __iomem * ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:828:28: warning: incorrect type in argument 1 (different address spaces) ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:828:28: expected void volatile [noderef] __iomem *addr ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:828:28: got struct rvu_fwdata *fwdata ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:841:28: warning: incorrect type in argument 1 (different address spaces) ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:841:28: expected void volatile [noderef] __iomem *addr ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:841:28: got struct rvu_fwdata *fwdata ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c: note: in included file (through ../drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h): ../drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:433:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" ../arch/x86/boot/version.c:18:12: warning: symbol 'kernel_version' was not declared. Should it be static? .pylintrc: warning: ignored by one of the .gitignore files ../kernel/sys.c:1115:32: warning: incorrect type in argument 1 (different address spaces) ../kernel/sys.c:1115:32: expected struct task_struct *p1 ../kernel/sys.c:1115:32: got struct task_struct [noderef] __rcu *real_parent ../kernel/sys.c:1865:33: warning: context imbalance in 'getrusage' - different lock contexts for basic block ../drivers/base/firmware_loader/main.c:229:9: warning: context imbalance in 'free_fw_priv' - wrong count at exit ../drivers/net/ethernet/marvell/octeontx2/af/cgx.c: In function ‘cgx_lmac_init’: ../drivers/net/ethernet/marvell/octeontx2/af/cgx.c:1735:49: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size between 4 and 6 [-Wformat-overflow=] 1735 | sprintf(lmac->name, "cgx_fwi_%d_%d", cgx->cgx_id, i); | ^~ ../drivers/net/ethernet/marvell/octeontx2/af/cgx.c:1735:37: note: directive argument in the range [-2147483641, 254] 1735 | sprintf(lmac->name, "cgx_fwi_%d_%d", cgx->cgx_id, i); | ^~~~~~~~~~~~~~~ ../drivers/net/ethernet/marvell/octeontx2/af/cgx.c:1735:17: note: ‘sprintf’ output between 12 and 24 bytes into a destination of size 16 1735 | sprintf(lmac->name, "cgx_fwi_%d_%d", cgx->cgx_id, i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c: note: in included file (through ../drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h): ../drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:433:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" ../drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c: In function ‘rvu_dbg_mcs_init’: ../drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:508:36: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size 7 [-Wformat-overflow=] 508 | sprintf(dname, "mcs%d", i); | ^~ ../drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:508:32: note: directive argument in the range [-2147483641, 2147483646] 508 | sprintf(dname, "mcs%d", i); | ^~~~~~~ ../drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:508:17: note: ‘sprintf’ output between 5 and 15 bytes into a destination of size 10 508 | sprintf(dname, "mcs%d", i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:681:35: warning: incorrect type in argument 1 (different address spaces) ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:681:35: expected void volatile [noderef] __iomem *addr ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:681:35: got void *hwbase In file included from ../include/linux/string.h:392, 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/api.h:57, 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 ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:8: In function ‘fortify_memcpy_chk’, inlined from ‘rvu_nix_blk_aq_enq_inst’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1165: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 ‘rvu_nix_blk_aq_enq_inst’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1168: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 ‘rvu_nix_blk_aq_enq_inst’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1171: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 ‘rvu_nix_blk_aq_enq_inst’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1183: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 ‘rvu_nix_blk_aq_enq_inst’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1185: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 ‘rvu_nix_blk_aq_enq_inst’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1187: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 ‘rvu_nix_blk_aq_enq_inst’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1259:5: ../include/linux/fortify-string.h:571:25: warning: call to ‘__write_overflow_field’ declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning] 571 | __write_overflow_field(p_size_field, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘fortify_memcpy_chk’, inlined from ‘rvu_nix_blk_aq_enq_inst’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1262:5: ../include/linux/fortify-string.h:571:25: warning: call to ‘__write_overflow_field’ declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning] 571 | __write_overflow_field(p_size_field, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘fortify_memcpy_chk’, inlined from ‘rvu_nix_blk_aq_enq_inst’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1265:5: ../include/linux/fortify-string.h:571:25: warning: call to ‘__write_overflow_field’ declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning] 571 | __write_overflow_field(p_size_field, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘fortify_memcpy_chk’, inlined from ‘rvu_nix_verify_aq_ctx.constprop’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1300:2: ../include/linux/fortify-string.h:571:25: warning: call to ‘__write_overflow_field’ declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning] 571 | __write_overflow_field(p_size_field, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../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 ‘rvu_nix_verify_aq_ctx.constprop’ at ../drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:1301:2: ../include/linux/fortify-string.h:571:25: warning: call to ‘__write_overflow_field’ declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning] 571 | __write_overflow_field(p_size_field, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:822:21: warning: incorrect type in assignment (different address spaces) ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:822:21: expected struct rvu_fwdata *fwdata ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:822:21: got void [noderef] __iomem * ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:828:28: warning: incorrect type in argument 1 (different address spaces) ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:828:28: expected void volatile [noderef] __iomem *addr ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:828:28: got struct rvu_fwdata *fwdata ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:841:28: warning: incorrect type in argument 1 (different address spaces) ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:841:28: expected void volatile [noderef] __iomem *addr ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:841:28: got struct rvu_fwdata *fwdata ../arch/x86/boot/version.c:18:12: warning: symbol 'kernel_version' was not declared. Should it be static?