Masahiro Yamada
1cd9502ee9
module: get symbol CRC back to unsigned
...
Commit 71810db27c ("modversions: treat symbol CRCs as 32 bit
quantities") changed the CRC fields to s32 because the __kcrctab and
__kcrctab_gpl sections contained relative references to the actual
CRC values stored in the .rodata section when CONFIG_MODULE_REL_CRCS=y.
Commit 7b4537199a ("kbuild: link symbol CRCs at final link, removing
CONFIG_MODULE_REL_CRCS") removed this complexity. Now, the __kcrctab
and __kcrctab_gpl sections directly contain the CRC values in all cases.
The genksyms tool outputs unsigned 32-bit CRC values, so u32 is preferred
over s32.
No functional changes are intended.
Regardless of this change, the CRC value is assigned to the u32 variable
'crcval' before the comparison, as seen in kernel/module/version.c:
crcval = *crc;
It was previously mandatory (but now optional) in order to avoid sign
extension because the following line previously compared 'unsigned long'
and 's32':
if (versions[i].crc == crcval)
return 1;
versions[i].crc is still 'unsigned long' for backward compatibility.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org >
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com >
2025-01-10 23:01:22 +09:00
..
2024-11-12 16:41:45 +00:00
2024-10-22 15:54:11 +02:00
2024-11-19 11:08:17 +01:00
2024-09-25 11:01:27 +02:00
2024-12-07 17:56:46 -08:00
2024-11-25 17:24:51 -08:00
2024-11-04 10:03:50 +00:00
2024-11-02 14:30:39 +01:00
2024-11-09 10:42:13 +00:00
2024-12-03 06:33:13 -07:00
2024-10-08 17:44:27 +02:00
2024-11-18 20:23:04 -05:00
2024-10-11 14:34:11 -04:00
2024-12-05 10:03:43 -08:00
2024-10-13 17:16:57 +02:00
2025-01-03 14:36:54 -08:00
2024-10-24 14:22:24 +02:00
2024-11-22 17:06:59 -08:00
2024-10-09 12:13:11 +01:00
2024-10-28 17:27:15 +00:00
2024-10-11 14:37:29 +05:30
2024-12-04 18:27:32 +05:30
2024-10-23 12:46:40 +01:00
2024-11-18 14:31:57 +01:00
2024-11-23 09:58:07 -08:00
2024-11-20 15:40:54 -08:00
2024-11-27 13:38:09 -08:00
2024-11-22 17:06:59 -08:00
2024-11-11 13:42:01 -05:00
2024-11-29 11:19:31 -08:00
2024-10-14 23:27:57 +05:30
2024-12-02 11:34:44 -08:00
2024-11-07 02:14:46 +01:00
2024-11-05 05:33:46 +01:00
2024-12-18 19:04:46 -08:00
2024-11-19 21:35:14 +01:00
2024-12-04 09:59:54 +00:00
2024-11-07 11:18:52 +00:00
2024-10-05 13:22:04 +08:00
2024-10-05 13:22:04 +08:00
2024-10-14 08:21:09 +02:00
2024-11-11 10:45:03 +01:00
2024-10-09 15:42:48 +01:00
2024-10-30 07:49:32 -06:00
2024-12-12 08:43:28 -07:00
2024-09-27 12:10:45 -07:00
2024-09-25 14:56:40 -07:00
2024-10-30 07:49:32 -06:00
2024-11-13 12:04:58 -07:00
2024-12-10 09:15:33 -07:00
2024-11-07 14:38:07 -08:00
2024-10-24 10:25:59 -07:00
2024-10-30 12:13:46 -07:00
2024-10-24 10:17:12 -07:00
2024-12-10 10:24:57 -08:00
2024-11-22 20:36:11 -08:00
2024-12-13 16:24:53 -08:00
2024-10-14 18:33:04 -07:00
2024-11-04 10:00:39 -08:00
2024-12-18 19:04:43 -08:00
2024-10-08 20:48:18 +03:00
2024-10-23 09:45:00 -10:00
2024-09-21 09:44:57 -07:00
2024-12-07 11:15:14 +01:00
2024-11-18 20:00:28 -08:00
2024-10-22 13:55:22 -07:00
2024-10-30 17:02:38 -07:00
2024-12-05 16:03:24 +01:00
2024-10-09 16:57:57 -04:00
2024-11-07 14:25:16 -08:00
2024-11-19 08:48:27 -08:00
2024-11-25 15:22:35 -08:00
2024-11-11 17:17:04 -08:00
2024-11-11 17:17:04 -08:00
2024-12-13 09:28:32 +01:00
2024-09-26 11:39:02 -07:00
2024-10-01 20:43:44 +02:00
2024-11-19 15:54:19 -08:00
2024-11-19 21:46:51 +01:00
2024-09-27 12:10:45 -07:00
2024-11-11 10:45:04 +01:00
2024-11-13 13:00:35 -06:00
2024-10-23 16:47:01 +02:00
2024-10-15 17:30:32 +02:00
2024-10-16 00:36:47 +02:00
2024-10-08 18:41:06 +01:00
2024-10-25 16:07:03 -05:00
2024-11-03 12:36:54 -08:00
2024-10-29 08:53:37 +01:00
2024-10-29 08:54:18 +01:00
2024-09-24 12:02:37 +02:00
2024-12-04 17:41:25 +05:30
2024-11-05 13:32:21 +01:00
2024-11-03 08:39:07 -08:00
2024-11-13 13:49:33 +01:00
2024-10-31 19:19:36 -07:00
2024-10-11 08:42:03 +02:00
2024-11-15 17:40:00 +01:00
2024-11-04 23:00:47 +01:00
2024-11-05 12:55:37 +01:00
2024-11-05 12:55:37 +01:00
2024-10-02 17:23:23 -04:00
2024-11-18 18:52:11 -08:00
2024-10-22 11:16:56 +02:00
2024-11-07 14:25:16 -08:00
2024-12-03 08:22:25 -08:00
2024-11-26 13:26:15 -08:00
2024-11-21 16:12:30 +00:00
2024-10-16 17:43:05 +02:00
2024-09-30 16:49:41 +01:00
2024-10-07 13:34:41 -04:00
2024-10-19 14:16:45 +02:00
2024-11-18 12:24:06 -08:00
2024-10-02 07:52:07 +02:00
2024-12-10 10:24:57 -08:00
2024-10-01 17:01:40 +02:00
2024-12-16 16:23:07 -08:00
2024-10-21 14:30:26 +02:00
2024-10-14 16:31:15 +02:00
2024-11-18 12:44:25 -08:00
2024-10-02 15:14:29 +02:00
2024-10-15 17:22:35 -04:00
2024-10-15 11:42:35 -04:00
2024-12-02 11:34:44 -08:00
2024-11-23 09:58:07 -08:00
2024-11-09 14:55:33 +01:00
2024-09-24 16:10:12 +02:00
2024-11-28 14:49:28 +01:00
2024-11-03 20:33:43 +00:00
2024-11-18 22:02:17 +01:00
2024-12-18 19:04:43 -08:00
2024-11-02 18:23:25 +08:00
2024-10-15 18:46:25 +02:00
2024-11-07 02:47:07 +01:00
2024-11-11 00:26:43 -08:00
2024-11-06 20:11:10 -08:00
2024-11-10 14:48:06 -08:00
2024-12-09 18:44:15 +00:00
2024-11-27 12:04:26 +01:00
2024-09-21 12:46:00 +02:00
2024-11-12 13:41:45 +01:00
2025-01-02 18:40:59 -08:00
2024-10-29 11:54:57 +01:00
2024-11-24 17:05:27 -08:00
2024-11-14 15:16:50 +02:00
2024-11-07 02:44:38 +01:00
2024-12-17 08:21:46 -07:00
2024-12-18 18:19:33 -07:00
2024-11-12 14:11:03 -04:00
2024-11-21 09:20:07 -08:00
2024-09-22 18:48:00 +02:00
2024-11-27 14:24:34 -08:00
2024-11-12 11:46:19 -04:00
2024-10-16 00:36:47 +02:00
2024-10-10 17:44:43 -05:00
2024-10-17 20:07:22 -07:00
2024-10-16 21:56:59 +02:00
2024-11-13 12:56:48 -05:00
2024-10-30 19:47:20 +01:00
2024-11-05 16:56:21 -08:00
2024-10-23 08:05:20 +02:00
2024-11-05 16:56:26 -08:00
2024-11-11 17:22:26 -08:00
2024-09-25 20:12:58 +09:00
2024-11-07 14:38:07 -08:00
2024-11-14 13:20:04 -05:00
2024-09-30 16:49:42 +01:00
2024-11-06 08:42:59 +00:00
2024-10-09 10:26:27 +02:00
2024-11-11 17:22:26 -08:00
2024-10-14 08:21:09 +02:00
2024-10-17 20:07:23 -07:00
2024-10-14 16:33:24 -05:00
2024-10-11 14:34:15 -04:00
2024-11-07 14:25:16 -08:00
2024-11-14 19:08:55 -08:00
2024-11-11 00:26:42 -08:00
2024-12-30 17:59:06 -08:00
2024-11-05 16:56:25 -08:00
2024-10-14 12:40:10 +02:00
2024-11-05 17:12:35 -08:00
2024-11-11 00:26:44 -08:00
2024-11-11 10:56:27 -08:00
2024-12-30 17:59:07 -08:00
2024-12-30 17:59:07 -08:00
2024-11-05 16:49:55 -08:00
2024-11-27 09:38:27 +09:00
2024-11-06 20:11:17 -08:00
2024-11-14 22:49:19 -08:00
2024-09-23 11:07:55 +02:00
2025-01-10 23:01:22 +09:00
2024-11-07 14:25:15 -08:00
2024-12-12 11:59:18 +01:00
2024-11-15 16:39:18 -08:00
2024-09-26 13:03:03 +02:00
2024-11-21 08:28:08 -08:00
2024-11-19 13:56:02 +01:00
2024-09-23 15:03:29 -04:00
2024-10-03 16:19:13 -04:00
2024-11-08 14:26:20 -05:00
2024-09-23 15:03:30 -04:00
2024-11-18 20:23:12 -05:00
2024-11-05 17:12:31 -08:00
2024-11-21 08:57:41 -08:00
2024-10-15 08:58:36 -05:00
2024-10-29 15:32:45 -05:00
2024-10-24 16:35:48 -05:00
2024-10-15 08:58:36 -05:00
2024-11-27 12:04:01 +01:00
2024-11-27 09:38:27 +09:00
2024-11-27 09:38:27 +09:00
2024-11-05 16:56:26 -08:00
2024-10-03 15:32:04 -07:00
2024-11-11 10:56:27 -08:00
2024-11-07 14:25:16 -08:00
2024-12-18 19:04:45 -08:00
2024-11-06 20:11:16 -08:00
2024-11-07 14:38:07 -08:00
2024-11-11 00:26:44 -08:00
2024-11-29 11:19:31 -08:00
2024-11-16 10:09:30 -06:00
2024-11-18 17:18:21 +00:00
2024-11-21 16:01:27 +00:00
2024-10-02 16:23:10 -05:00
2024-11-26 18:05:44 -08:00
2024-12-30 17:59:09 -08:00
2024-10-17 00:28:07 -07:00
2024-11-14 10:40:01 +01:00
2024-12-05 19:54:46 -08:00
2024-11-11 17:22:27 -08:00
2024-11-28 09:26:13 +01:00
2024-12-01 15:12:43 -08:00
2024-10-30 17:14:44 +01:00
2024-10-10 14:24:30 +02:00
2024-11-11 17:17:04 -08:00
2024-12-02 11:34:44 -08:00
2024-10-22 11:16:59 +02:00
2024-11-07 02:14:45 +01:00
2024-10-17 22:42:08 +02:00
2024-10-03 18:21:07 +02:00
2024-11-05 12:55:38 +01:00
2024-11-13 11:00:23 +01:00
2024-10-02 17:23:23 -04:00
2024-12-02 11:34:44 -08:00
2024-10-03 18:20:55 +02:00
2024-11-08 09:50:07 -07:00
2024-11-05 12:55:35 +01:00
2024-11-23 17:47:53 -05:00
2024-11-27 09:38:27 +09:00
2024-10-23 18:00:17 +02:00
2024-10-23 18:00:17 +02:00
2024-11-20 12:09:47 -08:00
2024-10-01 17:39:53 +02:00
2024-11-07 14:38:07 -08:00
2024-10-29 11:54:57 +01:00
2024-11-05 05:33:46 +01:00
2024-11-05 05:33:46 +01:00
2024-11-11 17:17:04 -08:00
2024-10-24 11:27:01 +02:00
2024-11-11 17:17:04 -08:00
2024-12-05 19:54:47 -08:00
2024-12-29 10:14:20 +01:00
2024-10-22 12:35:14 -07:00
2024-11-18 17:34:05 -08:00
2024-10-22 08:16:40 -06:00
2024-11-05 12:55:35 +01:00
2024-10-28 21:44:28 +00:00
2024-10-04 00:58:14 -07:00
2024-11-07 14:25:15 -08:00
2024-11-23 09:58:07 -08:00
2024-11-12 12:05:33 +01:00
2024-12-20 17:59:47 +01:00
2024-11-25 16:51:24 -08:00
2024-11-28 08:57:42 +01:00
2024-11-11 17:17:04 -08:00
2024-11-11 11:49:46 +01:00
2024-11-11 17:17:04 -08:00
2024-11-11 17:17:04 -08:00
2024-11-15 22:13:37 +01:00
2024-11-15 22:13:37 +01:00
2024-11-15 22:13:37 +01:00
2024-12-05 19:54:45 -08:00
2024-12-18 09:47:43 -08:00
2024-11-30 22:41:35 -05:00
2024-10-30 20:14:11 -07:00
2024-11-11 00:26:44 -08:00
2024-11-06 12:59:44 -05:00
2024-10-23 15:28:28 +02:00
2024-09-30 01:40:51 +00:00
2024-11-15 19:29:16 +01:00
2024-10-11 10:49:32 +02:00
2024-11-04 18:10:56 -08:00
2024-11-07 14:25:15 -08:00
2024-10-24 14:48:23 +02:00
2024-11-05 12:55:37 +01:00
2024-11-19 16:35:06 -08:00
2024-11-02 10:14:31 +01:00
2024-10-10 10:20:46 +02:00
2024-10-02 16:53:38 +02:00
2024-10-15 20:27:29 +02:00
2024-11-13 21:10:45 +02:00
2024-12-23 21:53:43 -05:00
2024-11-01 14:37:31 -04:00
2024-11-28 11:46:13 -08:00
2024-09-30 09:20:59 +01:00
2024-11-18 10:50:09 -08:00
2024-11-18 11:56:21 +00:00
2024-10-02 17:23:23 -04:00
2024-10-28 13:36:54 +01:00
2024-11-11 11:49:48 +01:00
2024-11-14 17:57:33 +01:00
2024-11-07 14:14:59 -08:00
2024-10-28 21:40:38 -07:00
2024-11-11 17:17:04 -08:00
2024-12-23 10:46:38 +01:00
2024-10-02 17:21:59 -07:00
2024-11-13 15:25:41 -07:00
2024-12-10 11:22:21 +01:00
2024-11-11 00:00:37 -08:00
2024-11-07 14:25:16 -08:00
2024-12-18 19:04:46 -08:00
2024-11-11 21:51:42 +01:00
2024-10-07 09:28:41 +02:00
2024-11-19 16:35:06 -08:00
2024-10-08 21:54:05 +02:00
2024-10-29 15:44:23 +02:00
2024-10-08 08:46:54 -10:00
2024-11-13 14:08:34 +01:00
2024-12-02 12:16:57 +01:00
2024-11-07 13:33:45 +01:00
2024-11-06 12:59:44 -05:00
2024-11-11 00:26:42 -08:00