Nathan Chancellor
155d9c9ed1
scsi: mpi3mr: Use proper format specifier in mpi3mr_sas_port_add()
...
commit 9f365cb8bbd0162963d6852651d7c9e30adcb7b5 upstream.
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);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Use the proper format specifier for size_t, %zu, to resolve the warning for
all platforms.
Fixes: 3668651def2c ("scsi: mpi3mr: Sanitise num_phys")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20240514-mpi3mr-fix-wformat-v1-1-f1ad49217e5e@kernel.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-07-11 12:49:15 +02:00
..
2024-01-01 12:42:45 +00:00
2023-07-31 11:28:55 -04:00
2023-08-21 17:50:59 -04:00
2024-02-05 20:14:19 +00:00
2023-03-24 19:19:21 -04:00
2023-12-13 18:45:17 +01:00
2024-06-12 11:11:49 +02:00
2024-05-17 12:02:11 +02:00
2023-05-26 13:52:19 -07:00
2024-03-26 18:20:01 -04:00
2023-04-26 16:07:23 -07:00
2023-04-27 11:53:57 -07:00
2023-03-16 23:02:23 -04:00
2023-08-21 17:13:56 -04:00
2023-04-27 16:36:55 -07:00
2024-02-23 09:25:01 +01:00
2024-01-25 15:35:22 -08:00
2024-05-17 12:02:15 +02:00
2023-11-28 17:19:42 +00:00
2023-03-16 23:36:36 -04:00
2024-02-05 20:14:34 +00:00
2024-02-05 20:14:20 +00:00
2024-07-05 09:33:57 +02:00
2024-05-17 12:02:09 +02:00
2023-11-28 17:19:55 +00:00
2024-07-11 12:49:15 +02:00
2024-06-21 14:38:25 +02:00
2023-08-21 17:50:58 -04:00
2023-05-31 19:59:26 -04:00
2023-09-13 20:08:40 -04:00
2024-07-11 12:49:03 +02:00
2024-06-27 13:49:01 +02:00
2024-06-12 11:11:50 +02:00
2023-07-25 21:51:04 -04:00
2024-03-01 13:35:06 +01:00
2023-08-24 22:30:32 -04:00
2023-05-31 18:04:30 -04:00
2023-05-26 13:52:19 -07:00
2023-03-24 19:19:20 -04:00
2023-01-12 00:09:52 -05:00
2023-05-22 17:31:56 -04:00
2022-09-25 13:06:00 -04:00
2023-07-31 14:38:17 -04:00
2023-03-24 19:19:20 -04:00
2023-03-24 19:19:20 -04:00
2023-03-24 19:19:20 -04:00
2023-03-24 19:19:20 -04:00
2023-03-24 19:19:20 -04:00
2023-03-24 19:19:21 -04:00
2023-03-24 19:19:21 -04:00
2023-03-24 19:19:22 -04:00
2022-02-22 21:11:03 -05:00
2023-03-24 19:19:21 -04:00
2023-03-24 19:19:20 -04:00
2023-06-12 08:04:04 -06:00
2023-03-24 19:19:21 -04:00
2023-03-24 19:19:22 -04:00
2023-03-24 19:19:22 -04:00
2023-03-24 19:19:22 -04:00
2023-03-24 19:19:22 -04:00
2022-08-01 19:52:03 -04:00
2023-03-24 19:19:22 -04:00
2023-08-21 16:37:11 -04:00
2024-04-03 15:28:59 +02:00
2024-06-12 11:11:43 +02:00
2023-05-26 13:52:19 -07:00
2022-09-25 13:04:17 -04:00
2023-03-24 19:19:56 -04:00
2022-02-22 21:11:04 -05:00
2023-03-24 19:19:56 -04:00
2022-02-22 21:11:05 -05:00
2023-04-24 23:11:47 -04:00
2023-04-18 23:01:23 -04:00
2023-01-18 18:41:12 -05:00
2023-09-17 17:46:13 +01:00
2023-06-24 15:50:13 -07:00
2023-03-24 19:19:22 -04:00
2024-03-01 13:35:06 +01:00
2022-06-21 21:19:23 -04:00
2023-03-24 19:19:57 -04:00
2023-03-24 19:19:57 -04:00
2022-02-27 21:35:30 -05:00
2023-03-24 19:19:22 -04:00
2022-02-22 21:11:03 -05:00
2022-06-27 22:56:21 -04:00
2023-03-24 20:27:17 -04:00
2022-02-22 21:11:05 -05:00
2023-03-24 19:19:57 -04:00
2022-02-27 21:34:02 -05:00
2023-03-24 19:19:57 -04:00
2023-08-24 22:11:29 -04:00
2023-01-12 00:11:11 -05:00
2024-04-10 16:36:00 +02:00
2024-04-10 16:36:00 +02:00
2023-06-21 21:13:00 -04:00
2022-02-22 21:11:07 -05:00
2023-05-22 15:13:03 -10:00
2022-02-22 21:11:03 -05:00
2023-03-24 19:19:58 -04:00
2022-02-22 21:11:06 -05:00
2023-08-21 17:13:56 -04:00
2022-03-29 23:32:26 -04:00
2023-09-05 05:26:49 -04:00
2023-08-21 16:32:40 -04:00
2023-03-24 19:19:58 -04:00
2023-03-24 19:19:59 -04:00
2022-02-22 21:11:06 -05:00
2022-02-22 21:11:02 -05:00
2022-02-22 21:11:02 -05:00
2023-08-21 16:37:11 -04:00
2023-08-24 21:34:28 -04:00
2023-06-12 08:04:04 -06:00
2023-05-31 11:05:34 -04:00
2023-07-05 21:37:43 -04:00
2023-08-24 22:13:03 -04:00
2023-03-16 22:54:43 -04:00
2024-02-16 19:10:53 +01:00
2023-06-12 08:04:04 -06:00
2024-04-27 17:11:30 +02:00
2022-03-29 23:29:19 -04:00
2021-12-22 23:38:29 -05:00
2024-02-05 20:14:34 +00:00
2023-07-31 15:39:39 -04:00
2024-04-03 15:28:59 +02:00
2023-04-13 11:49:20 -07:00
2023-08-24 22:11:29 -04:00
2023-06-16 12:19:59 -04:00
2023-07-25 21:48:13 -04:00
2024-06-21 14:38:25 +02:00
2023-01-13 21:34:09 -05:00
2023-06-16 12:19:59 -04:00
2024-06-21 14:38:25 +02:00
2022-05-08 14:28:18 -04:00
2023-02-21 22:00:32 -05:00
2022-12-01 03:13:55 +00:00
2023-07-05 21:58:10 -04:00
2024-06-21 14:38:25 +02:00
2023-09-28 21:23:18 +09:00
2023-04-27 11:53:57 -07:00
2024-04-17 11:19:34 +02:00
2023-03-24 19:19:59 -04:00
2023-01-13 21:34:09 -05:00
2021-12-22 23:41:13 -05:00
2023-06-30 11:57:07 -07:00
2022-03-08 19:40:01 -07:00
2023-08-24 22:16:28 -04:00
2022-03-08 19:40:00 -07:00
2023-05-31 11:36:40 -04:00
2024-02-23 09:24:54 +01:00
2022-02-22 21:11:03 -05:00
2023-03-24 19:19:22 -04:00
2023-07-23 15:49:41 -04:00
2023-08-24 22:11:29 -04:00
2022-04-06 23:01:54 -04:00
2022-06-07 21:30:56 -04:00
2022-09-25 13:29:53 -04:00
2022-09-25 13:29:53 -04:00
2023-03-24 19:19:59 -04:00
2022-02-22 21:11:07 -05:00
2023-08-24 22:06:44 -04:00
2022-02-22 21:11:07 -05:00
2022-03-30 00:05:42 -04:00
2023-03-24 19:19:22 -04:00