forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
[Build] Global flag[Linux] v5.18Released in Linux kernel v5.18Released in Linux kernel v5.18compilerNeeds compiler supportNeeds compiler support
Description
Currently, there are 114 of these warnings in next-20201002:
drivers/message/fusion/mptbase.c:7758:62: warning: array subscript 1 is above array bounds of ‘U32[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds]
fs/hpfs/dir.c:163:41: warning: array subscript 1 is above array bounds of ‘u8[1]’ {aka ‘unsigned char[1]’} [-Warray-bounds]
fs/nfsd/nfsfh.c:190:41: warning: array subscript 1 is above array bounds of ‘__u32[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds]
fs/nfsd/nfsfh.c:191:32: warning: array subscript 2 is above array bounds of ‘__u32[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds]
fs/nfsd/nfsfh.c:191:15: warning: array subscript 1 is above array bounds of ‘__u32[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds]
fs/cifs/cifssmb.c:4636:23: warning: array subscript 1 is above array bounds of ‘char[1]’ [-Warray-bounds]
drivers/message/fusion/mptlan.c:759:28: warning: array subscript 1 is above array bounds of ‘U32[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds]
drivers/scsi/aacraid/aachba.c:4015:18: warning: array subscript 1 is above array bounds of ‘struct sge_ieee1212[1]’ [-Warray-bounds]
drivers/scsi/aacraid/aachba.c:4056:28: warning: array subscript 1 is above array bounds of ‘struct sge_ieee1212[1]’ [-Warray-bounds]
drivers/scsi/aacraid/aachba.c:4057:24: warning: array subscript 1 is above array bounds of ‘struct sge_ieee1212[1]’ [-Warray-bounds]
drivers/scsi/aacraid/aachba.c:4059:33: warning: array subscript 1 is above array bounds of ‘struct sge_ieee1212[1]’ [-Warray-bounds]
drivers/scsi/aacraid/aachba.c:4060:28: warning: array subscript 1 is above array bounds of ‘struct sge_ieee1212[1]’ [-Warray-bounds]
fs/cifs/smb2pdu.c:786:16: warning: array subscript 1 is above array bounds of ‘__le16[1]’ {aka ‘short unsigned int[1]’} [-Warray-bounds]
fs/cifs/smb2pdu.c:787:16: warning: array subscript 2 is above array bounds of ‘__le16[1]’ {aka ‘short unsigned int[1]’} [-Warray-bounds]
fs/cifs/smb2pdu.c:788:16: warning: array subscript 3 is above array bounds of ‘__le16[1]’ {aka ‘short unsigned int[1]’} [-Warray-bounds]
fs/cifs/smb2pdu.c:780:16: warning: array subscript 1 is above array bounds of ‘__le16[1]’ {aka ‘short unsigned int[1]’} [-Warray-bounds]
drivers/scsi/mpt3sas/mpt3sas_ctl.c:3191:63: warning: array subscript 24 is above array bounds of ‘U16[1]’ {aka ‘short unsigned int[1]’} [-Warray-bounds]
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c:3729:13: warning: array subscript 1 is above array bounds of ‘u32[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds]
drivers/usb/gadget/composite.c:769:30: warning: array subscript 1 is above array bounds of ‘__le32[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds]
drivers/gpu/drm/radeon/ni_dpm.c:2522:20: warning: array subscript 1 is above array bounds of ‘NISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’ {aka ‘struct NISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’} [-Warray-bounds]
drivers/gpu/drm/radeon/ni_dpm.c:2524:20: warning: array subscript 1 is above array bounds of ‘NISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’ {aka ‘struct NISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’} [-Warray-bounds]
drivers/gpu/drm/radeon/ni_dpm.c:2525:20: warning: array subscript 1 is above array bounds of ‘NISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’ {aka ‘struct NISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’} [-Warray-bounds]
drivers/gpu/drm/radeon/ni_dpm.c:2526:20: warning: array subscript 1 is above array bounds of ‘NISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’ {aka ‘struct NISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’} [-Warray-bounds]
drivers/gpu/drm/radeon/ni_dpm.c:2527:35: warning: array subscript 1 is above array bounds of ‘NISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’ {aka ‘struct NISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’} [-Warray-bounds]
drivers/gpu/drm/radeon/ni_dpm.c:2527:35: warning: array subscript 1 is above array bounds of ‘NISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’ {aka ‘struct NISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’} [-Warray-bounds]
drivers/gpu/drm/radeon/ni_dpm.c:2443:20: warning: array subscript 1 is above array bounds of ‘NISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’ {aka ‘struct NISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’} [-Warray-bounds]
drivers/gpu/drm/radeon/si_dpm.c:2353:20: warning: array subscript 1 is above array bounds of ‘SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’ {aka ‘struct SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’} [-Warray-bounds]
drivers/gpu/drm/radeon/si_dpm.c:2354:20: warning: array subscript 1 is above array bounds of ‘SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’ {aka ‘struct SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’} [-Warray-bounds]
drivers/gpu/drm/radeon/si_dpm.c:2355:20: warning: array subscript 1 is above array bounds of ‘SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’ {aka ‘struct SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’} [-Warray-bounds]
drivers/gpu/drm/radeon/si_dpm.c:2356:20: warning: array subscript 1 is above array bounds of ‘SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’ {aka ‘struct SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’} [-Warray-bounds]
drivers/gpu/drm/radeon/si_dpm.c:2357:20: warning: array subscript 1 is above array bounds of ‘SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’ {aka ‘struct SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’} [-Warray-bounds]
drivers/gpu/drm/radeon/si_dpm.c:5108:20: warning: array subscript 1 is above array bounds of ‘SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’ {aka ‘struct SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’} [-Warray-bounds]
drivers/media/common/siano/smscoreapi.c:1003:24: warning: array subscript 1 is above array bounds of ‘u32[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds]
drivers/media/common/siano/smscoreapi.c:1004:24: warning: array subscript 2 is above array bounds of ‘u32[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds]
drivers/media/common/siano/smscoreapi.c:1005:24: warning: array subscript 3 is above array bounds of ‘u32[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds]
drivers/media/common/siano/smscoreapi.c:1006:24: warning: array subscript 4 is above array bounds of ‘u32[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds]
drivers/staging/rtl8188eu/core/rtw_wlan_util.c:691:65: warning: array subscript 2 is above array bounds of ‘u8[1]’ {aka ‘unsigned char[1]’} [-Warray-bounds]
./drivers/staging/rtl8723bs/include/basic_types.h:108:11: warning: array subscript 1 is above array bounds of ‘u8[1]’ {aka ‘unsigned char[1]’} [-Warray-bounds]
drivers/staging/rtl8723bs/core/rtw_wlan_util.c:1042:75: warning: array subscript 2 is above array bounds of ‘u8[1]’ {aka ‘unsigned char[1]’} [-Warray-bounds]
drivers/staging/rtl8723bs/core/rtw_wlan_util.c:1595:19: warning: array subscript 4 is above array bounds of ‘u8[1]’ {aka ‘unsigned char[1]’} [-Warray-bounds]
drivers/staging/rtl8723bs/core/rtw_wlan_util.c:1598:20: warning: array subscript 5 is above array bounds of ‘u8[1]’ {aka ‘unsigned char[1]’} [-Warray-bounds]
drivers/staging/rtl8723bs/core/rtw_wlan_util.c:1602:19: warning: array subscript 5 is above array bounds of ‘u8[1]’ {aka ‘unsigned char[1]’} [-Warray-bounds]
drivers/staging/rtl8723bs/core/rtw_wlan_util.c:1606:20: warning: array subscript 6 is above array bounds of ‘u8[1]’ {aka ‘unsigned char[1]’} [-Warray-bounds]
drivers/hv/channel_mgmt.c:301:23: warning: array subscript 1 is above array bounds of ‘struct ic_version[1]’ [-Warray-bounds]
drivers/hv/channel_mgmt.c:302:23: warning: array subscript 1 is above array bounds of ‘struct ic_version[1]’ [-Warray-bounds]
drivers/media/platform/qcom/venus/hfi_msgs.c:246:35: warning: array subscript 1 is above array bounds of ‘u32[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds]
drivers/media/platform/qcom/venus/hfi_msgs.c:342:62: warning: array subscript 1 is above array bounds of ‘u32[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds]
drivers/media/platform/qcom/venus/hfi_cmds.c:57:11: warning: array subscript 1 is above array bounds of ‘u32[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:1515:37: warning: array subscript 1 is above array bounds of ‘const struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:1516:32: warning: array subscript 1 is above array bounds of ‘const struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:290:24: warning: array subscript 1 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:291:24: warning: array subscript 1 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:292:24: warning: array subscript 2 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:293:24: warning: array subscript 2 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:294:24: warning: array subscript 3 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:295:24: warning: array subscript 3 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:296:24: warning: array subscript 4 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:297:24: warning: array subscript 4 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:298:24: warning: array subscript 5 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:299:24: warning: array subscript 5 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:300:24: warning: array subscript 6 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:301:24: warning: array subscript 6 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:302:24: warning: array subscript 7 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:303:24: warning: array subscript 7 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:4102:60: warning: array subscript 3 is above array bounds of ‘phm_ppt_v1_clock_voltage_dependency_record[1]’ {aka ‘struct phm_ppt_v1_clock_voltage_dependency_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:4103:60: warning: array subscript 2 is above array bounds of ‘phm_ppt_v1_clock_voltage_dependency_record[1]’ {aka ‘struct phm_ppt_v1_clock_voltage_dependency_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu10_hwmgr.c:146:24: warning: array subscript 1 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu10_hwmgr.c:147:24: warning: array subscript 1 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu10_hwmgr.c:148:24: warning: array subscript 2 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu10_hwmgr.c:149:24: warning: array subscript 2 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu10_hwmgr.c:150:24: warning: array subscript 3 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu10_hwmgr.c:151:24: warning: array subscript 3 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu10_hwmgr.c:152:24: warning: array subscript 4 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu10_hwmgr.c:153:24: warning: array subscript 4 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu10_hwmgr.c:154:24: warning: array subscript 5 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu10_hwmgr.c:155:24: warning: array subscript 5 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu10_hwmgr.c:156:24: warning: array subscript 6 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu10_hwmgr.c:157:24: warning: array subscript 6 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu10_hwmgr.c:158:24: warning: array subscript 7 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu10_hwmgr.c:159:24: warning: array subscript 7 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu_helper.c:510:25: warning: array subscript 1 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu_helper.c:511:25: warning: array subscript 1 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu_helper.c:512:25: warning: array subscript 2 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu_helper.c:513:25: warning: array subscript 2 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu_helper.c:514:25: warning: array subscript 3 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu_helper.c:515:25: warning: array subscript 3 is above array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:3114:30: warning: array subscript 4 is above array bounds of ‘ATOM_Vega10_GFXCLK_Dependency_Record[1]’ {aka ‘struct _ATOM_Vega10_GFXCLK_Dependency_Record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:2017:29: warning: array subscript 1 is above array bounds of ‘phm_ppt_v1_voltage_lookup_record[1]’ {aka ‘struct phm_ppt_v1_voltage_lookup_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:2020:31: warning: array subscript 1 is above array bounds of ‘phm_ppt_v1_voltage_lookup_record[1]’ {aka ‘struct phm_ppt_v1_voltage_lookup_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:3519:39: warning: array subscript 3 is above array bounds of ‘phm_ppt_v1_clock_voltage_dependency_record[1]’ {aka ‘struct phm_ppt_v1_clock_voltage_dependency_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:570:27: warning: array subscript 1 is above array bounds of ‘phm_ppt_v1_pcie_record[1]’ {aka ‘struct phm_ppt_v1_pcie_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:568:27: warning: array subscript 1 is above array bounds of ‘phm_ppt_v1_pcie_record[1]’ {aka ‘struct phm_ppt_v1_pcie_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1239:23: warning: array subscript [0, 0] is outside array bounds of ‘phm_ppt_v1_clock_voltage_dependency_record[1]’ {aka ‘struct phm_ppt_v1_clock_voltage_dependency_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1239:23: warning: array subscript [0, 0] is outside array bounds of ‘phm_ppt_v1_clock_voltage_dependency_record[1]’ {aka ‘struct phm_ppt_v1_clock_voltage_dependency_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1239:23: warning: array subscript [0, 0] is outside array bounds of ‘phm_ppt_v1_clock_voltage_dependency_record[1]’ {aka ‘struct phm_ppt_v1_clock_voltage_dependency_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1239:23: warning: array subscript [0, 0] is outside array bounds of ‘phm_ppt_v1_clock_voltage_dependency_record[1]’ {aka ‘struct phm_ppt_v1_clock_voltage_dependency_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1405:28: warning: array subscript [0, 0] is outside array bounds of ‘phm_ppt_v1_mm_clock_voltage_dependency_record[1]’ {aka ‘struct phm_ppt_v1_mm_clock_voltage_dependency_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1391:28: warning: array subscript [0, 0] is outside array bounds of ‘phm_ppt_v1_mm_clock_voltage_dependency_record[1]’ {aka ‘struct phm_ppt_v1_mm_clock_voltage_dependency_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1375:28: warning: array subscript [0, 0] is outside array bounds of ‘phm_ppt_v1_mm_clock_voltage_dependency_record[1]’ {aka ‘struct phm_ppt_v1_mm_clock_voltage_dependency_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1239:23: warning: array subscript [0, 0] is outside array bounds of ‘phm_ppt_v1_clock_voltage_dependency_record[1]’ {aka ‘struct phm_ppt_v1_clock_voltage_dependency_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1239:23: warning: array subscript [0, 0] is outside array bounds of ‘phm_ppt_v1_clock_voltage_dependency_record[1]’ {aka ‘struct phm_ppt_v1_clock_voltage_dependency_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1239:23: warning: array subscript [0, 0] is outside array bounds of ‘phm_ppt_v1_clock_voltage_dependency_record[1]’ {aka ‘struct phm_ppt_v1_clock_voltage_dependency_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:710:35: warning: array subscript [0, 0] is outside array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:696:36: warning: array subscript [0, 0] is outside array bounds of ‘struct phm_clock_voltage_dependency_record[1]’ [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:806:30: warning: array subscript [0, 0] is outside array bounds of ‘phm_ppt_v1_clock_voltage_dependency_record[1]’ {aka ‘struct phm_ppt_v1_clock_voltage_dependency_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:789:30: warning: array subscript [0, 0] is outside array bounds of ‘phm_ppt_v1_clock_voltage_dependency_record[1]’ {aka ‘struct phm_ppt_v1_clock_voltage_dependency_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:723:29: warning: array subscript 1 is above array bounds of ‘phm_ppt_v1_voltage_lookup_record[1]’ {aka ‘struct phm_ppt_v1_voltage_lookup_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:726:31: warning: array subscript 1 is above array bounds of ‘phm_ppt_v1_voltage_lookup_record[1]’ {aka ‘struct phm_ppt_v1_voltage_lookup_record[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/si_dpm.c:2448:20: warning: array subscript 1 is above array bounds of ‘SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’ {aka ‘struct SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/si_dpm.c:2449:20: warning: array subscript 1 is above array bounds of ‘SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’ {aka ‘struct SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/si_dpm.c:2450:20: warning: array subscript 1 is above array bounds of ‘SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’ {aka ‘struct SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/si_dpm.c:2451:20: warning: array subscript 1 is above array bounds of ‘SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’ {aka ‘struct SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/si_dpm.c:2452:20: warning: array subscript 1 is above array bounds of ‘SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’ {aka ‘struct SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’} [-Warray-bounds]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/si_dpm.c:5570:20: warning: array subscript 1 is above array bounds of ‘SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’ {aka ‘struct SISLANDS_SMC_HW_PERFORMANCE_LEVEL[1]’} [-Warray-bounds]
Address all the warnings above in order to enable -Warray-bounds. See:
Metadata
Metadata
Assignees
Labels
[Build] Global flag[Linux] v5.18Released in Linux kernel v5.18Released in Linux kernel v5.18compilerNeeds compiler supportNeeds compiler support