Re: [PATCH] scsi: esas2r: fix __printf annotation on esas2r_log_master()

From: Martin K. Petersen

Date: Thu Apr 02 2026 - 22:08:26 EST


On Mon, 23 Mar 2026 10:57:39 +0100, Arnd Bergmann wrote:

> 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,
> | ^
>
> [...]

Applied to 7.1/scsi-queue, thanks!

[1/1] scsi: esas2r: fix __printf annotation on esas2r_log_master()
https://git.kernel.org/mkp/scsi/c/67557418905b

--
Martin K. Petersen