linux/drivers/media/platform
Arnd Bergmann 23c39cb598 media: qcom: camss: avoid format string warning
clang-22 warns about csiphy_match_clock_name() taking a variable format
string that is not checked against the 'int index' argument:

drivers/media/platform/qcom/camss/camss-csiphy.c:566:44: error: diagnostic behavior may be improved by
      adding the 'format(printf, 2, 3)' attribute to the declaration of 'csiphy_match_clock_name'
      [-Werror,-Wmissing-format-attribute]
  561 | static bool csiphy_match_clock_name(const char *clock_name, const char *format,
      | __attribute__((format(printf, 2, 3)))
  562 |                                     int index)
  563 | {
  564 |         char name[16]; /* csiphyXXX_timer\0 */
  565 |
  566 |         snprintf(name, sizeof(name), format, index);
      |                                                   ^
drivers/media/platform/qcom/camss/camss-csiphy.c:561:13: note: 'csiphy_match_clock_name' declared here
  561 | static bool csiphy_match_clock_name(const char *clock_name, const char *format,
      |             ^

Change the function to use a snprintf() style format string that allows this
to be checked at the call site.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
2026-04-27 08:41:22 +02:00
..
allegro-dvt Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
amlogic Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
amphion media: amphion: Fix race between m2m job_abort and device_run 2026-03-23 11:18:34 +01:00
arm media: mali-c55: Bypass Purple Fringe Correction 2026-03-24 16:13:09 +01:00
aspeed media: aspeed: Fix dram hang at res-change 2026-01-13 13:10:07 +01:00
atmel media: atmel-isi: use devm_kmemdup_array() 2025-04-25 15:14:33 +02:00
broadcom media: bcm2835-unicam: Fix RGB format / mbus code association 2026-03-24 11:58:02 +01:00
cadence Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
chips-media media: chips-media: wave5: add missing spinlock protection for handle_dynamic_resolution_change() 2026-03-23 11:18:33 +01:00
imagination Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
intel Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
marvell Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
mediatek rpmsg updates for v7.1 2026-04-17 14:18:55 -07:00
microchip media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
nuvoton Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
nvidia Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
nxp media: imx8mq-mipi-csi2: Add support for i.MX8ULP 2026-03-24 22:14:45 +01:00
qcom media: qcom: camss: avoid format string warning 2026-04-27 08:41:22 +02:00
raspberrypi Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
renesas media: renesas: vsp1: Initialize format on all pads 2026-03-25 10:25:49 +01:00
rockchip [GIT PULL for v7.1] media updates 2026-04-15 08:32:10 -07:00
samsung media: fimc: check return value of clk_enable in runtime_resume 2026-03-16 11:51:55 +01:00
st media: stm32: dcmi: addition of DMA-MDMA chaining support 2026-03-11 01:05:33 +01:00
sunxi Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
synopsys [GIT PULL for v7.1] media updates 2026-04-15 08:32:10 -07:00
ti media: ti: vpe: Add missing v4l2_device_unregister in vip_remove() 2026-03-16 11:51:55 +01:00
verisilicon media: verisilicon: Fix kernel panic due to __initconst misuse 2026-03-18 13:17:25 +01:00
via Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
xilinx media: Wrap file->private_data access with a helper function 2025-08-13 08:33:23 +02:00
Kconfig media: mali-c55: Add Mali-C55 ISP driver 2025-11-14 15:48:49 +01:00
m2m-deinterlace.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Makefile media: mali-c55: Add Mali-C55 ISP driver 2025-11-14 15:48:49 +01:00
video-mux.c media: platform: video-mux: Fix mutex locking 2024-10-16 09:32:41 +02:00