Re: [PATCH] scsi: core: fix -Wformat
From: Martin K. Petersen
Date: Thu Nov 19 2020 - 22:31:59 EST
On Sat, 7 Nov 2020 00:11:32 -0800, Nick Desaulniers wrote:
> Clang is more aggressive about -Wformat warnings when the format flag
> specifies a type smaller than the parameter. Turns out, struct
> Scsi_Host's member can_queue is actually an int. Fixes:
>
> [-Wformat]
> shost_rd_attr(can_queue, "%hd\n");
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> %d
Applied to 5.11/scsi-queue, thanks!
[1/1] scsi: core: Fix -Wformat for scsi_host
https://git.kernel.org/mkp/scsi/c/883928201b00
--
Martin K. Petersen Oracle Linux Engineering