drm/radeon/dpm: fix non-restricted types with le16_to_cpu()
Subsystems (2)
PATCH 1/1 drm/radeon/dpm: fix non-restricted types with le16_to_cpu()
Fix the following sparse warnings:drivers/gpu/drm/radeon/rv6xx_dpm.c:1798:21: warning: cast to restricted __le32drivers/gpu/drm/radeon/rv6xx_dpm.c:1799:22: warning: cast to restricted __le16drivers/gpu/drm/radeon/rv6xx_dpm.c:1800:23: warning: cast to restricted __le16
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- drivers/gpu/drm/radeon/rv6xx_dpm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/rv6xx_dpm.c +3 -3
@@ -1795,9 +1795,9 @@ static void rv6xx_parse_pplib_non_clock_info(struct radeon_device *rdev,struct radeon_ps *rps, struct _ATOM_PPLIB_NONCLOCK_INFO *non_clock_info) { - rps->caps = le32_to_cpu(non_clock_info->ulCapsAndSettings); - rps->class =le16_to_cpu (non_clock_info->usClassification); - rps->class2 =le16_to_cpu (non_clock_info->usClassification2); + rps->caps = le32_to_cpu((__le32 __force)non_clock_info->ulCapsAndSettings); + rps->class =le16_to_cpu ((__le16 __force )non_clock_info->usClassification); + rps->class2 =le16_to_cpu ((__le16 __force )non_clock_info->usClassification2);if (r600_is_uvd_state (rps->class, rps->class2)) { rps->vclk =RV6XX_DEFAULT_VCLK_FREQ ;
Signature · 6 lines
1.8.3.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel