scsi: lpfc: Use __printf() format notation
authorLee Jones <lee.jones@linaro.org>
Thu, 23 Jul 2020 12:24:21 +0000 (13:24 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 25 Jul 2020 02:32:01 +0000 (22:32 -0400)
commit7fa03c77cd54e1ff8fc58bb85f787ff67910ec48
treeeaa2718db18f22c7e7f66b083e2afc753356d28f
parent6e3f4f68821ba4f17c38655e72698b4323b7f756
scsi: lpfc: Use __printf() format notation

Fixes the following W=1 kernel build warning(s):

 drivers/scsi/lpfc/lpfc_init.c: In function ‘lpfc_dbg_print’:
 drivers/scsi/lpfc/lpfc_init.c:14212:6: warning: function ‘lpfc_dbg_print’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format]
 14212 | sizeof(phba->dbg_log[idx].log), fmt, args);
 | ^~~~~~

Link: https://lore.kernel.org/r/20200723122446.1329773-16-lee.jones@linaro.org
Cc: James Smart <james.smart@broadcom.com>
Cc: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c