lkml.org 
[lkml]   [2020]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] scsi: core: fix -Wformat
Date
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

\
 
 \ /
  Last update: 2020-11-20 04:34    [W:1.651 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site