aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
diff options
context:
space:
mode:
authorQiuxu Zhuo <[email protected]>2025-04-24 08:14:54 +0000
committerTony Luck <[email protected]>2025-04-24 15:42:25 +0000
commit2b2408aca90b86c1ef51c19d834e5f6db0a1ff30 (patch)
tree9db57f634d5b25c7ef9fc8231ff4144452a8dd00 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
parentEDAC/ie31200: Add two Intel SoCs for EDAC support (diff)
downloadkernel-2b2408aca90b86c1ef51c19d834e5f6db0a1ff30.tar.gz
kernel-2b2408aca90b86c1ef51c19d834e5f6db0a1ff30.zip
EDAC/i10nm: Fix the bitwise operation between variables of different sizes
The tool of Smatch static checker reported the following warning: drivers/edac/i10nm_base.c:364 show_retry_rd_err_log() warn: should bitwise negate be 'ullong'? This warning was due to the bitwise NOT/AND operations between 'status_mask' (a u32 type) and 'log' (a u64 type), which resulted in the high 32 bits of 'log' were cleared. This was a false positive warning, as only the low 32 bits of 'log' was written to the first RRL memory controller register (a u32 type). To improve code sanity, fix this warning by changing 'status_mask' to a u64 type, ensuring it matches the size of 'log' for bitwise operations. Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Qiuxu Zhuo <[email protected]> Signed-off-by: Tony Luck <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions