[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <170657812665.784857.18111081210924770600.b4-ty@oracle.com>
Date: Mon, 29 Jan 2024 21:27:08 -0500
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: "James E . J . Bottomley" <jejb@...ux.ibm.com>,
Petr Mladek <pmladek@...e.com>
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
Chris Down <chris@...isdown.name>, oe-kbuild-all@...ts.linux.dev,
kernel test robot <lkp@...el.com>
Subject: Re: [PATCH] scsi: core: Safe warning about bad dev info string
On Thu, 11 Jan 2024 17:24:19 +0100, Petr Mladek wrote:
> Both "model" and "strflags" are passed to "%s" even when one or both
> are NULL.
>
> It is safe because vsprintf() would detect the NULL pointer and print
> "(null)". But it is a kernel-specific feature and compiler warns
> about it:
>
> [...]
Applied to 6.9/scsi-queue, thanks!
[1/1] scsi: core: Safe warning about bad dev info string
https://git.kernel.org/mkp/scsi/c/796cae1a79b1
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists