[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20241028105928.GAZx9ukFr36Rh7i8qN@fat_crate.local>
Date: Mon, 28 Oct 2024 11:59:28 +0100
From: Borislav Petkov <bp@...en8.de>
To: Alex Deucher <alexdeucher@...il.com>
Cc: Arnd Bergmann <arnd@...nel.org>,
Alex Deucher <alexander.deucher@....com>,
Christian König <christian.koenig@....com>,
Xinhui Pan <Xinhui.Pan@....com>, David Airlie <airlied@...il.com>,
Daniel Vetter <daniel@...ll.ch>,
Harry Wentland <harry.wentland@....com>,
Leo Li <sunpeng.li@....com>,
Rodrigo Siqueira <Rodrigo.Siqueira@....com>,
Lijo Lazar <lijo.lazar@....com>,
Mario Limonciello <mario.limonciello@....com>,
Arnd Bergmann <arnd@...db.de>,
Srinivasan Shanmugam <srinivasan.shanmugam@....com>,
Alex Hung <alex.hung@....com>,
Hamza Mahfooz <hamza.mahfooz@....com>, Roman Li <roman.li@....com>,
Wayne Lin <Wayne.Lin@....com>, amd-gfx@...ts.freedesktop.org,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm/amd: Use a constant format string for
amdgpu_ucode_request
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
Download attachment "21-57-40-randconfig-x86_64-19644.cfg.gz" of type "application/gzip" (50810 bytes)
Powered by blists - more mailing lists