Re: [PATCH v2] target: iscsi: fix clang -Wformat warnings
From: Martin K. Petersen
Date: Tue Jul 26 2022 - 23:16:57 EST
On Mon, 18 Jul 2022 11:04:21 -0700, Justin Stitt wrote:
> When building with Clang we encounter these warnings:
> | drivers/target/iscsi/iscsi_target_login.c:719:24: error: format
> | specifies type 'unsigned short' but the argument has type 'int'
> | [-Werror,-Wformat] " from node: %s\n", atomic_read(&sess->nconn),
> -
> | drivers/target/iscsi/iscsi_target_login.c:767:12: error: format
> | specifies type 'unsigned short' but the argument has type 'int'
> | [-Werror,-Wformat] " %s\n", atomic_read(&sess->nconn),
> -
> | drivers/target/iscsi/iscsi_target.c:4365:12: error: format specifies
> | type 'unsigned short' but the argument has type 'int' [-Werror,-Wformat]
> | " %s\n", atomic_read(&sess->nconn)
>
> [...]
Applied to 5.20/scsi-queue, thanks!
[1/1] target: iscsi: fix clang -Wformat warnings
https://git.kernel.org/mkp/scsi/c/71b25693b22e
--
Martin K. Petersen Oracle Linux Engineering