aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorAashish Sharma <shraash@google.com>2022-03-24 19:10:31 +0530
committerAlex Deucher <alexander.deucher@amd.com>2022-04-05 10:26:36 -0400
commit7da7b02e97c8e4332a497a179575db6892cbeca5 (patch)
tree55ddfaf49fa193853a52f48f78e1012298ce5a65 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parenta68bec2ce7d6d89136b91160c3428caf683acb91 (diff)
drm/amd/display: Fix unused-but-set-variable warning
Fix the kernel test robot warning below: drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2893:12: warning: variable 'temp' set but not used [-Wunused-but-set-variable] Replaced the assignment to the unused temp variable with READ_ONCE() macro to flush the writes. READ_ONCE() helps avoid the use of volatile and makes it obvious from the code that the read here is intentional. Also verified on x86 that the generated code is exactly the same as before. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Aashish Sharma <shraash@google.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions