Re: [PATCH] scsi: mpi3mr: Use proper format specifier in mpi3mr_sas_port_add()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 14 May 2024 13:47:23 -0700, Nathan Chancellor wrote:

> When building for a 32-bit platform such as ARM or i386, for which
> size_t is unsigned int, there is a warning due to using an unsigned long
> format specifier:
> 
>   drivers/scsi/mpi3mr/mpi3mr_transport.c:1370:11: error: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Werror,-Wformat]
>    1369 |                         ioc_warn(mrioc, "skipping port %u, max allowed value is %lu\n",
>         |                                                                                 ~~~
>         |                                                                                 %u
>    1370 |                             i, sizeof(mr_sas_port->phy_mask) * 8);
>         |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> [...]

Applied to 6.10/scsi-queue, thanks!

[1/1] scsi: mpi3mr: Use proper format specifier in mpi3mr_sas_port_add()
      https://git.kernel.org/mkp/scsi/c/9f365cb8bbd0

-- 
Martin K. Petersen	Oracle Linux Engineering




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux