[PATCH] drm/amd: Use a constant format string for amdgpu_ucode_request
Borislav Petkov
bp at alien8.de
Mon Oct 28 10:59:28 UTC 2024
On Mon, Aug 05, 2024 at 04:12:48PM -0400, Alex Deucher wrote:
> > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c
> > index fbc2852278e1..6162582d0aa2 100644
> > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c
> > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c
> > @@ -587,7 +587,7 @@ int amdgpu_umsch_mm_init_microcode(struct amdgpu_umsch_mm *umsch)
> > break;
> > }
> >
> > - r = amdgpu_ucode_request(adev, &adev->umsch_mm.fw, fw_name);
> > + r = amdgpu_ucode_request(adev, &adev->umsch_mm.fw, "%s", fw_name);
Looks like this triggers:
drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c: In function ‘amdgpu_umsch_mm_init_microcode’:
drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c:590:13: warning: ‘%s’ directive argument is null [-Wformat-overflow=]
590 | r = amdgpu_ucode_request(adev, &adev->umsch_mm.fw, "%s", fw_name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
now.
Attaching randconfig.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 21-57-40-randconfig-x86_64-19644.cfg.gz
Type: application/gzip
Size: 50810 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20241028/d7df8bb7/attachment-0001.gz>
More information about the amd-gfx
mailing list