On Mon, Nov 30, 2026 at 2:56 PM Nathan Chancellor <[email protected]> wrote: > > On Mon, Nov 30, 2026 at 11:58:38AM -0500, Alex Deucher wrote: > > On Sat, Nov 28, 2026 at 11:26 AM Nathan Chancellor <[email protected]> > > wrote: > > > > > > Clang warns (or errors with CONFIG_WERROR=y / W=e): > > > > > > drivers/gpu/drm/amd/amdgpu/imu_v13_0.c:264:30: error: variable 'data' > > > is uninitialized when used here [-Werror,-Wuninitialized] > > > 264 | program_imu_rlc_ram(adev, data, (const > > > u32)size); > > > | ^~~~ > > > > > > It is not wrong that data is passed to program_imu_rlc_ram() > > > uninitialized but since this warning happens early in clang's frontend, > > > it cannot see program_imu_rlc_ram() is meber called due to r being > > > -EINVAL and even if it were, data would not be dereferenced because size > > > is 0, so it is never actually used uninitialized. > > > > > > It is bad form to pass uninitialized values to functions even if they > > > are not used, so just initialize data to NULL to silence the warning, as > > > it will need to be properly set up when support for calling > > > program_imu_rlc_ram() is added. > > > > > > Fixes: 9caddf5f7de7 ("drm/amdgpu: Add imu v13 ip block v2") > > > Signed-off-by: Nathan Chancellor <[email protected]> > > > > I already squashed the identical change into the original patch last week. > > Ah, my apologies. I used the tree that -next pulls in as a base (the > drm-next branch of your agd5f/linux.git) but I see now that the > drm-amdgpu-next branch of drm/amdgpu/kernel has the correction. Sorry > for the noise. I assume a sync will happen at some point to make this go > away for -next?
Yes. Sorry. I forgot to update the agd5f/linux.git mirror when I updated the drm/amdgpu branch. Will do it now. Alex
