Re: [PATCH] platform/x86/intel-uncore-freq: avoid non-literal format string
From: Ilpo Järvinen
Date: Fri Jun 13 2025 - 04:48:53 EST
On Tue, 10 Jun 2025 11:34:55 +0200, Arnd Bergmann wrote:
> Using a string variable in place of a format string causes a W=1 build warning:
>
> drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.c:61:40: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]
> 61 | length += sysfs_emit_at(buf, length, agent_name[agent]);
> | ^~~~~~~~~~~~~~~~~
>
> Use the safer "%s" format string to print it instead.
>
> [...]
Thank you for your contribution, it has been applied to my local
review-ilpo-fixes branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-fixes branch only once I've pushed my
local branch there, which might take a while.
The list of commits applied:
[1/1] platform/x86/intel-uncore-freq: avoid non-literal format string
commit: 0c44b46f51a17baa7ab67de1464427116e9c4eaa
--
i.