[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <160584262848.7157.14296415602219986964.b4-ty@oracle.com>
Date: Thu, 19 Nov 2020 22:31:43 -0500
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Nick Desaulniers <ndesaulniers@...gle.com>,
"James E . J . Bottomley" <jejb@...ux.ibm.com>
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>,
linux-kernel@...r.kernel.org,
Nathan Chancellor <natechancellor@...il.com>,
linux-scsi@...r.kernel.org, clang-built-linux@...glegroups.com
Subject: Re: [PATCH] scsi: core: fix -Wformat
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
Powered by blists - more mailing lists