diff options
author | Lee Jones <[email protected]> | 2021-03-17 09:11:18 +0000 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2021-03-18 22:52:29 -0400 |
commit | 5c9e2596ed1dae031358b647f53cc6ee290e2124 (patch) | |
tree | ae43657d95224a3291f56db0cb14a77a954632db | |
parent | 035e9f471691a16c32b389c8b2f236043a2a50d7 (diff) |
scsi: BusLogic: Supply __printf(x, y) formatting for blogic_msg()
Fixes the following W=1 kernel build warning(s):
In file included from drivers/scsi/BusLogic.c:51:
drivers/scsi/BusLogic.c: In function ‘blogic_msg’:
drivers/scsi/BusLogic.c:3591:2: warning: function ‘blogic_msg’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format]
Link: https://lore.kernel.org/r/[email protected]
Cc: Khalid Aziz <[email protected]>
Cc: "James E.J. Bottomley" <[email protected]>
Cc: "Martin K. Petersen" <[email protected]>
Cc: "Leonard N. Zubkoff" <[email protected]>
Cc: [email protected]
Acked-by: Khalid Aziz <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
-rw-r--r-- | drivers/scsi/BusLogic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c index ccb061ab0a0a..0ac3f713fc21 100644 --- a/drivers/scsi/BusLogic.c +++ b/drivers/scsi/BusLogic.c @@ -3578,7 +3578,7 @@ Target Requested Completed Requested Completed Requested Completed\n\ /* blogic_msg prints Driver Messages. */ - +__printf(2, 4) static void blogic_msg(enum blogic_msglevel msglevel, char *fmt, struct blogic_adapter *adapter, ...) { |