drm/amdgpu/soc15: Fix static checker warnings
Subsystems (2)
PATCH 1/1 drm/amdgpu/soc15: Fix static checker warnings
vega10 is the only soc15 asic at the moment so these warnings are invalid, but add a default case to silence the warnings.
--- drivers/gpu/drm/amd/amdgpu/soc15.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc15.c +4 -0
@@ -106,6 +106,8 @@ static u32 soc15_pcie_rreg(struct amdgpu_device *adev, u32 reg)if (adev->asic_type ==CHIP_VEGA10 ) nbio_pcie_id = &nbio_v6_1_pcie_index_data; +else +BUG (); address = nbio_pcie_id->index_offset; data = nbio_pcie_id->data_offset;
@@ -125,6 +127,8 @@ static void soc15_pcie_wreg(struct amdgpu_device *adev, u32 reg, u32 v)if (adev->asic_type ==CHIP_VEGA10 ) nbio_pcie_id = &nbio_v6_1_pcie_index_data; +else +BUG (); address = nbio_pcie_id->index_offset; data = nbio_pcie_id->data_offset;
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1491253121-28851-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org
Harry Wentland
Reviewed-byQuoted 25 lines · Alex Deucher
vega10 is the only soc15 asic at the moment so these warnings are invalid, but add a default case to silence the warnings.
Fixes 220ab9bd1ccf: "drm/amdgpu: soc15 enable (v3)"Reported-by Dan Carpenter <[email protected]>Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/soc15.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/gpu/drm/amd/amdgpu/soc15.c +2
-0@@ -106,6 +106,8 @@ static u32 soc15_pcie_rreg(struct amdgpu_device *adev, u32 reg)if (adev->asic_type ==CHIP_VEGA10 ) nbio_pcie_id = &nbio_v6_1_pcie_index_data; +else +BUG (); address = nbio_pcie_id->index_offset; data = nbio_pcie_id->data_offset;
drivers/gpu/drm/amd/amdgpu/soc15.c static void soc15_pcie_wreg(struct amdgpu_device *adev, u32 reg, u32 v) · line 134
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/soc15.c +2
-0@@ -125,6 +127,8 @@ static void soc15_pcie_wreg(struct amdgpu_device *adev, u32 reg, u32 v)if (adev->asic_type ==CHIP_VEGA10 ) nbio_pcie_id = &nbio_v6_1_pcie_index_data; +else +BUG (); address = nbio_pcie_id->index_offset; data = nbio_pcie_id->data_offset;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 48fb0a7d-9349-f9ae-d281-50ff3015e834-5C7GfCeVMHo@public.gmane.org
Zhang, Jerry (Junwei)
Reviewed-by Junwei ZhangQuoted 1 line · Harry Wentland
Reviewed-by Harry Wentland <[email protected]>
Quoted 31 lines · Alex Deucher
Quoted 29 lines
vega10 is the only soc15 asic at the moment so these warnings are invalid, but add a default case to silence the warnings.
Fixes 220ab9bd1ccf: "drm/amdgpu: soc15 enable (v3)"Reported-by Dan Carpenter <[email protected]>Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/soc15.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/gpu/drm/amd/amdgpu/soc15.c +3
-0@@ -106,6 +106,8 @@ static u32 soc15_pcie_rreg(struct amdgpu_device *adev, u32 reg)if (adev->asic_type ==CHIP_VEGA10 ) nbio_pcie_id = &nbio_v6_1_pcie_index_data; +else +BUG (); address = nbio_pcie_id->index_offset; data = nbio_pcie_id->data_offset;@@ -125,6 +127,8 @@ static void soc15_pcie_wreg(struct amdgpu_device *adev, u32 reg, u32 v) if (adev->asic_type == CHIP_VEGA10) nbio_pcie_id = &nbio_v6_1_pcie_index_data; + else
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/soc15.c static u32 soc15_pcie_rreg(struct amdgpu_device *adev, u32 reg) · line 113
Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/soc15.c +1
-0+BUG (); address = nbio_pcie_id->index_offset; data = nbio_pcie_id->data_offset;_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx