linux/drivers/media
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
..
cec media: rc: fix race between unregister and urb/irq callbacks 2026-03-17 14:43:56 +01:00
common media: uvcvideo: Add support for P010 pixel format 2026-03-25 09:40:28 +01:00
dvb-core [GIT PULL for v7.0-rc3] media fixes 2026-03-04 08:12:06 -08:00
dvb-frontends media: m88ds3103: Implement 3103c chip support 2026-03-25 18:27:25 +01:00
firewire Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
i2c [GIT PULL for v7.1] media updates 2026-04-15 08:32:10 -07:00
mc media: mc, v4l2: serialize REINIT and REQBUFS with req_queue_mutex 2026-03-18 11:21:31 +01:00
mmc Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pci media: cx23885: Module option to disable analog video 2026-03-25 18:27:25 +01:00
platform media: qcom: camss: avoid format string warning 2026-04-27 08:41:22 +02:00
radio Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
rc media: lirc: increase IR_MAX_DURATION to send extended code sequences 2026-03-17 14:43:57 +01:00
spi Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
test-drivers media: vidtv: Use crc32_be() instead of open coding 2026-03-25 18:27:25 +01:00
tuners media: si2157: Include support for si2177 chip 2026-03-25 18:27:25 +01:00
usb [GIT PULL for v7.1] media updates 2026-04-15 08:32:10 -07:00
v4l2-core [GIT PULL for v7.1] media updates 2026-04-15 08:32:10 -07:00
Kconfig
Makefile