linux/drivers/scsi/esas2r
Arnd Bergmann 6755741890 scsi: esas2r: Fix __printf annotation on esas2r_log_master()
clang-22 started warning about functions that take printf format
strings:

drivers/scsi/esas2r/esas2r_log.c:160:50: error: diagnostic behavior may be improved by adding the 'format(printf, 3, 0)' attribute to the declaration of 'esas2r_log_master' [-Werror,-Wmissing-format-attribute]
  121 |                 retval = vsnprintf(buffer, buflen, format, args);
      |                                                                ^
drivers/scsi/esas2r/esas2r_log.c:121:12: note: 'esas2r_log_master' declared here
  121 | static int esas2r_log_master(const long level,
      |            ^

The warning already got silenced for gcc but not clang in the past.
Rather than modify that hack to turn it off for both, just add the
attribute as suggested and remove the pragma again.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20260323100027.1975646-1-arnd@kernel.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2026-03-27 16:29:50 -04:00
..
atioctl.h scsi: esas2r: Use flex array destination for memcpy() 2022-09-06 22:24:37 -04:00
atvda.h
esas2r_disc.c
esas2r_flash.c
esas2r_init.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
esas2r_int.c
esas2r_io.c
esas2r_ioctl.c scsi: esas2r: Use FIELD_GET() to extract PCIe capability fields 2023-09-13 21:01:59 -04:00
esas2r_log.c scsi: esas2r: Fix __printf annotation on esas2r_log_master() 2026-03-27 16:29:50 -04:00
esas2r_log.h
esas2r_main.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
esas2r_targdb.c
esas2r_vda.c scsi: esas2r: Remove unused esas2r_build_cli_req() 2024-11-06 20:45:43 -05:00
esas2r.h scsi: Change the return type of the .queuecommand() callback 2026-01-23 21:32:34 -05:00
Kconfig
Makefile