]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86/intel/pmt/discovery: fix format string warning
authorArnd Bergmann <arnd@arndb.de>
Fri, 11 Jul 2025 07:27:09 +0000 (09:27 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 11 Jul 2025 15:00:48 +0000 (18:00 +0300)
commit6382c27389c266e90b31151a79d81fa6e122d2d6
treef6080beebd802c7a7c2cd1d648767a9017ba6e0e
parentbde430fb669d03a0025fd90485dc26acfafd9b4f
platform/x86/intel/pmt/discovery: fix format string warning

When -Wformat-security is enabled, this new code triggers it:

drivers/platform/x86/intel/pmt/discovery.c: In function 'pmt_features_discovery':
drivers/platform/x86/intel/pmt/discovery.c:505:36: error: format not a string literal and no format arguments [-Werror=format-security]
  505 |                                    pmt_feature_names[feature->id]);

Fixes: d9a078809356 ("platform/x86/intel/pmt: Add PMT Discovery driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250711072718.2748415-1-arnd@kernel.org
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/pmt/discovery.c