summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/inc
diff options
context:
space:
mode:
authorBhawanpreet Lakha2019-05-15 22:17:05 +0200
committerAlex Deucher2019-05-24 19:21:00 +0200
commit1b9557fcaa42a45920821b0c6455088bb341f477 (patch)
tree4ae6b3d57c71a5e09a6353b0a35cbaa910cc80b5 /drivers/gpu/drm/amd/powerplay/inc
parentdrm/amdgpu: fix spelling mistake "retrived" -> "retrieved" (diff)
downloadkernel-qcow2-linux-1b9557fcaa42a45920821b0c6455088bb341f477.tar.gz
kernel-qcow2-linux-1b9557fcaa42a45920821b0c6455088bb341f477.tar.xz
kernel-qcow2-linux-1b9557fcaa42a45920821b0c6455088bb341f477.zip
drm/amd/powerplay: Fix maybe-uninitialized in get_ppfeature_status
This fixes the warning below error: ‘feature_mask’ may be used uninitialized in this function [-Werror=maybe-uninitialized] *features_enabled = ((((uint64_t)feature_mask[0] << SMU_FEATURES_LOW_SHIFT) & SMU_FEATURES_LOW_MASK) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ (((uint64_t)feature_mask[1] << SMU_FEATURES_HIGH_SHIFT) & SMU_FEATURES_HIGH_MASK)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/inc')
0 files changed, 0 insertions, 0 deletions