scsi: nsp32: Supply __printf(x, y) formatting for nsp32_message()
Fixes the following W=1 kernel build warning(s): drivers/scsi/nsp32.c: In function ‘nsp32_message’: drivers/scsi/nsp32.c:318:2: warning: function ‘nsp32_message’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] Link: https://lore.kernel.org/r/20210317091125.2910058-3-lee.jones@linaro.org Cc: GOTO Masanori <gotom@debian.or.jp> Cc: YOKOTA Hiroshi <yokota@netlab.is.tsukuba.ac.jp> Cc: "James E.J. Bottomley" <jejb@linux.ibm.com> Cc: "Martin K. Petersen" <martin.petersen@oracle.com> Cc: gotom@debian.org Cc: linux-scsi@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Родитель
5c9e2596ed
Коммит
6673077154
|
@ -309,6 +309,7 @@ static struct scsi_host_template nsp32_template = {
|
|||
|
||||
#define NSP32_DEBUG_BUF_LEN 100
|
||||
|
||||
__printf(4, 5)
|
||||
static void nsp32_message(const char *func, int line, char *type, char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
|
Загрузка…
Ссылка в новой задаче