drm/amdgpu: suppress the compile warning about 64 bit type
Suppress the compile warning below: drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c:1292 gfx_v11_0_rlc_backdoor_autoload_copy_ucode() warn: should '1 << id' be a 64 bit type? Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Guchun Chen <guchun.chen@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
4513edf74c
commit
12d6c18cfa
@ -1316,7 +1316,7 @@ static void gfx_v11_0_rlc_backdoor_autoload_copy_ucode(struct amdgpu_device *ade
|
||||
memset(ptr + toc_offset + fw_size, 0, toc_fw_size - fw_size);
|
||||
|
||||
if ((id != SOC21_FIRMWARE_ID_RS64_PFP) && (id != SOC21_FIRMWARE_ID_RS64_ME))
|
||||
*(uint64_t *)fw_autoload_mask |= 1 << id;
|
||||
*(uint64_t *)fw_autoload_mask |= 1ULL << id;
|
||||
}
|
||||
|
||||
static void gfx_v11_0_rlc_backdoor_autoload_copy_toc_ucode(struct amdgpu_device *adev,
|
||||
|
Loading…
x
Reference in New Issue
Block a user