[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <170294822162.2675590.18169081255954498195.b4-ty@oracle.com>
Date: Mon, 18 Dec 2023 21:18:45 -0500
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Sathya Prakash Veerichetty <sathya.prakash@...adcom.com>,
Kashyap Desai <kashyap.desai@...adcom.com>,
Sumit Saxena <sumit.saxena@...adcom.com>,
Sreekanth Reddy <sreekanth.reddy@...adcom.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
Chandrakanth patil <chandrakanth.patil@...adcom.com>,
Arnd Bergmann <arnd@...nel.org>
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>,
Arnd Bergmann <arnd@...db.de>,
Ranjan Kumar <ranjan.kumar@...adcom.com>,
Shin'ichiro Kawasaki <shinichiro.kawasaki@....com>,
mpi3mr-linuxdrv.pdl@...adcom.com, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mpi3mr: fix printk() format strings
On Thu, 07 Dec 2023 15:28:06 +0100, Arnd Bergmann wrote:
> The newly introduced error messages get multiple format strings wrong: size_t must
> be printed using the %z modifier rather than %l and dma_addr_t must be printed
> by reference using the special %pad pointer type:
>
> drivers/scsi/mpi3mr/mpi3mr_app.c: In function 'mpi3mr_build_nvme_prp':
> include/linux/kern_levels.h:5:25: error: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'dma_addr_t' {aka 'unsigned int'} [-Werror=format=]
> drivers/scsi/mpi3mr/mpi3mr_app.c:949:25: note: in expansion of macro 'dprint_bsg_err'
> 949 | dprint_bsg_err(mrioc,
> | ^~~~~~~~~~~~~~
> include/linux/kern_levels.h:5:25: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Werror=format=]
> drivers/scsi/mpi3mr/mpi3mr_app.c:1112:41: note: in expansion of macro 'dprint_bsg_err'
> 1112 | dprint_bsg_err(mrioc,
> | ^~~~~~~~~~~~~~
>
> [...]
Applied to 6.8/scsi-queue, thanks!
[1/1] mpi3mr: fix printk() format strings
https://git.kernel.org/mkp/scsi/c/fc1fbd13a205
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists