Nathan Chancellor
4d3a2a466b
HID: core: Fix size_t specifier in hid_report_raw_event()
...
When building for 32-bit platforms, for which 'size_t' is
'unsigned int', there are warnings around using the incorrect format
specifier to print bsize in hid_report_raw_event():
drivers/hid/hid-core.c:2054:29: error: format specifies type 'long' but the argument has type 'size_t' (aka 'unsigned int') [-Werror,-Wformat]
2053 | hid_warn_ratelimited(hid, "Event data for report %d is incorrect (%d vs %ld)\n",
| ~~~
| %zu
2054 | report->id, csize, bsize);
| ^~~~~
drivers/hid/hid-core.c:2076:29: error: format specifies type 'long' but the argument has type 'size_t' (aka 'unsigned int') [-Werror,-Wformat]
2075 | hid_warn_ratelimited(hid, "Event data for report %d was too short (%d vs %ld)\n",
| ~~~
| %zu
2076 | report->id, rsize, bsize);
| ^~~~~
Use the proper 'size_t' format specifier, '%zu', to clear up the
warnings.
Cc: stable@vger.kernel.org
Fixes: 2c85c61d13 ("HID: pass the buffer size to hid_report_raw_event")
Reported-by: Miguel Ojeda <ojeda@kernel.org >
Closes: https://lore.kernel.org/20260516020430.110135-1-ojeda@kernel.org/
Signed-off-by: Nathan Chancellor <nathan@kernel.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2026-05-18 13:05:41 -07:00
..
2026-04-16 21:01:18 +02:00
2026-05-12 18:03:37 +02:00
2026-05-14 14:30:01 -07:00
2026-03-06 10:00:58 -08:00
2026-04-28 18:35:29 +02:00
2025-02-03 10:56:43 +01:00
2026-05-12 18:13:40 +02:00
2022-12-20 15:30:35 +01:00
2024-06-06 10:52:48 +02:00
2026-04-09 17:37:39 +02:00
2026-04-16 21:01:18 +02:00
2025-06-08 09:07:37 +02:00
2025-02-18 22:01:54 +01:00
2026-05-12 17:57:35 +02:00
2026-04-16 21:11:19 +02:00
2024-08-27 16:29:55 +02:00
2026-02-21 17:09:51 -08:00
2024-06-06 10:52:48 +02:00
2026-02-21 17:09:51 -08:00
2024-09-05 16:20:56 +02:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2026-03-06 10:00:58 -08:00
2026-05-18 13:05:41 -07:00
2025-11-18 18:03:48 +01:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2025-10-14 11:46:49 +02:00
2026-02-19 18:58:39 +01:00
2024-08-27 16:29:55 +02:00
2026-04-16 21:01:18 +02:00
2026-02-21 17:09:51 -08:00
2026-04-28 18:30:02 +02:00
2026-01-23 13:53:25 +01:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2025-11-26 17:17:53 +01:00
2024-06-06 10:52:48 +02:00
2026-04-28 18:24:52 +02:00
2026-02-21 17:09:51 -08:00
2024-08-27 16:29:55 +02:00
2025-11-26 17:21:48 +01:00
2026-05-12 18:03:37 +02:00
2024-08-27 16:29:55 +02:00
2024-11-13 10:56:37 +01:00
2026-05-12 18:01:05 +02:00
2024-06-06 10:52:48 +02:00
2021-05-27 15:40:34 +02:00
2024-06-06 10:52:48 +02:00
2026-02-21 20:03:00 -08:00
2025-09-15 14:32:55 +02:00
2024-09-05 16:20:56 +02:00
2024-08-27 16:29:55 +02:00
2026-02-21 17:09:51 -08:00
2026-04-09 17:56:46 +02:00
2026-02-21 17:09:51 -08:00
2026-05-12 18:11:43 +02:00
2026-03-19 15:52:45 +01:00
2026-04-16 21:01:18 +02:00
2024-08-27 16:29:55 +02:00
2024-07-12 18:28:03 +02:00
2024-09-05 16:20:56 +02:00
2024-10-02 17:23:23 -04:00
2026-03-27 15:51:05 +01:00
2024-07-10 09:11:27 +02:00
2022-04-21 10:28:49 +02:00
2026-04-28 18:34:21 +02:00
2026-03-10 17:53:18 +01:00
2026-01-28 19:23:16 +01:00
2025-06-08 09:07:37 +02:00
2026-02-21 17:09:51 -08:00
2024-02-13 11:43:55 +01:00
2026-02-21 17:09:51 -08:00
2025-10-14 11:50:25 +02:00
2026-02-21 17:09:51 -08:00
2026-04-16 21:01:18 +02:00
2026-05-12 18:16:46 +02:00
2024-08-27 16:29:55 +02:00
2026-05-12 17:49:18 +02:00
2024-09-05 16:20:56 +02:00
2025-08-07 10:07:06 +02:00
2026-05-12 17:48:16 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2026-05-12 18:03:37 +02:00
2026-01-28 19:23:16 +01:00
2024-08-27 16:29:55 +02:00
2026-02-21 17:09:51 -08:00
2025-04-05 10:30:12 +02:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2024-09-05 10:55:15 +02:00
2026-03-17 14:43:56 +01:00
2026-02-21 17:09:51 -08:00
2026-01-20 19:44:19 -08:00
2024-11-22 16:29:57 -08:00
2024-09-30 16:49:42 +01:00
2026-03-12 14:20:57 +01:00
2025-02-03 11:09:05 +01:00
2026-05-12 17:54:48 +02:00
2026-05-12 18:03:37 +02:00
2026-02-21 17:09:51 -08:00
2024-09-05 16:20:57 +02:00
2026-05-12 17:23:59 +02:00
2026-01-10 09:52:37 +01:00
2024-06-06 10:52:48 +02:00
2024-08-27 16:29:55 +02:00
2024-06-06 10:52:48 +02:00
2023-10-25 18:33:42 +02:00
2026-02-21 17:09:51 -08:00
2025-06-17 10:44:13 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2021-09-25 08:20:48 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-04-16 21:01:18 +02:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 01:02:28 -08:00
2024-08-27 16:29:55 +02:00
2026-05-12 17:23:08 +02:00
2026-04-28 18:28:32 +02:00
2024-06-06 10:52:48 +02:00
2025-08-06 10:02:28 -07:00
2025-09-12 16:27:35 +02:00
2024-08-27 16:29:55 +02:00
2026-02-21 17:09:51 -08:00
2024-06-06 10:52:48 +02:00
2026-02-21 17:09:51 -08:00
2025-02-03 22:59:42 +01:00
2024-06-06 10:52:48 +02:00
2024-06-06 10:52:48 +02:00
2022-11-25 17:39:19 +08:00
2023-10-25 16:25:47 +02:00
2026-04-28 18:37:01 +02:00
2023-10-25 16:25:47 +02:00
2026-02-21 17:09:51 -08:00
2025-10-14 12:01:34 +02:00
2024-12-02 11:34:44 -08:00
2025-10-14 12:01:34 +02:00
2025-10-14 12:01:34 +02:00
2025-08-15 15:58:10 +02:00
2024-09-05 16:20:57 +02:00
2026-05-12 18:03:37 +02:00
2022-08-25 11:37:21 +02:00
2022-08-25 11:37:21 +02:00
2024-09-05 16:20:57 +02:00
2024-09-05 16:20:57 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2022-11-04 09:57:16 +01:00
2022-11-04 09:57:16 +01:00
2026-04-09 18:09:15 +02:00
2024-09-05 16:20:57 +02:00
2024-06-06 10:52:48 +02:00
2026-02-21 17:09:51 -08:00
2026-02-19 18:58:39 +01:00
2026-02-21 17:09:51 -08:00
2026-04-16 21:07:13 +02:00
2026-04-16 21:07:13 +02:00
2026-02-21 17:09:51 -08:00
2026-05-12 18:03:37 +02:00
2026-03-09 19:34:12 +01:00
2025-03-04 21:51:04 +01:00
2025-01-09 09:58:28 +01:00