]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: fix variable type errors in smu_v11_0_setup_pptable
authorKevin Wang <kevin1.wang@amd.com>
Mon, 19 Aug 2019 15:38:02 +0000 (23:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Aug 2019 22:30:45 +0000 (17:30 -0500)
commit38cb54c07f443f0698858931b1a35b50b5fb5e9d
tree000d2969f994d8d6831316f471307346be0c582d
parent76e309646f492170329c04c915c13a2bfa3fd5c8
drm/amd/powerplay: fix variable type errors in smu_v11_0_setup_pptable

fix size type errors, from uint32_t to uint16_t.
it will cause only initializes the highest 16 bits in
smu_get_atom_data_table function.

bug report:
This fixes the following static checker warning.
        drivers/gpu/drm/amd/amdgpu/../powerplay/smu_v11_0.c:390 smu_v11_0_setup_pptable()
        warn: passing casted pointer '&size' to 'smu_get_atom_data_table()' 32 vs 16.

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smu_v11_0.c