summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/nsp32.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2021-03-17 10:11:19 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2021-03-19 03:52:29 +0100
commit66730771543f5fe72363a99035307feedcb1f7d3 (patch)
tree447e137e31b9b656165771b0f17ef34dde411df4 /drivers/scsi/nsp32.c
parentscsi: BusLogic: Supply __printf(x, y) formatting for blogic_msg() (diff)
downloadlinux-66730771543f5fe72363a99035307feedcb1f7d3.tar.xz
linux-66730771543f5fe72363a99035307feedcb1f7d3.zip
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>
Diffstat (limited to 'drivers/scsi/nsp32.c')
-rw-r--r--drivers/scsi/nsp32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/nsp32.c b/drivers/scsi/nsp32.c
index e44b1a0f6709..d5aa96f05bce 100644
--- a/drivers/scsi/nsp32.c
+++ b/drivers/scsi/nsp32.c
@@ -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;