Masahiro Yamada
dbefa1f31a
Rename .data.once to .data..once to fix resetting WARN*_ONCE
...
Commit b1fca27d38 ("kernel debug: support resetting WARN*_ONCE")
added support for clearing the state of once warnings. However,
it is not functional when CONFIG_LD_DEAD_CODE_DATA_ELIMINATION or
CONFIG_LTO_CLANG is enabled, because .data.once matches the
.data.[0-9a-zA-Z_]* pattern in the DATA_MAIN macro.
Commit cb87481ee8 ("kbuild: linker script do not match C names unless
LD_DEAD_CODE_DATA_ELIMINATION is configured") was introduced to suppress
the issue for the default CONFIG_LD_DEAD_CODE_DATA_ELIMINATION=n case,
providing a minimal fix for stable backporting. We were aware this did
not address the issue for CONFIG_LD_DEAD_CODE_DATA_ELIMINATION=y. The
plan was to apply correct fixes and then revert cb87481ee8 . [1]
Seven years have passed since then, yet the #ifdef workaround remains in
place. Meanwhile, commit b1fca27d38 introduced the .data.once section,
and commit dc5723b02e ("kbuild: add support for Clang LTO") extended
the #ifdef.
Using a ".." separator in the section name fixes the issue for
CONFIG_LD_DEAD_CODE_DATA_ELIMINATION and CONFIG_LTO_CLANG.
[1]: https://lore.kernel.org/linux-kbuild/CAK7LNASck6BfdLnESxXUeECYL26yUDm0cwRZuM4gmaWUkxjL5g@mail.gmail.com/
Fixes: b1fca27d38 ("kernel debug: support resetting WARN*_ONCE")
Fixes: dc5723b02e ("kbuild: add support for Clang LTO")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org >
2024-11-27 09:38:27 +09:00
..
2024-06-05 15:52:34 +02:00
2024-09-10 19:52:30 -05:00
2024-10-02 17:23:23 -04:00
2024-09-25 11:01:27 +02:00
2024-09-11 08:55:35 +00:00
2024-10-11 15:59:15 -07:00
2024-09-17 16:46:22 +02:00
2024-09-05 21:43:42 -07:00
2024-09-11 10:44:10 -06:00
2024-10-08 17:44:27 +02:00
2024-09-23 14:17:08 -07:00
2024-10-02 17:14:53 -07:00
2024-09-21 08:20:50 -07:00
2024-10-02 17:23:23 -04:00
2024-09-26 12:00:25 -07:00
2024-10-09 12:47:19 -07:00
2024-10-11 08:39:23 +02:00
2024-10-15 07:54:16 +02:00
2024-09-10 12:41:42 +01:00
2024-10-02 17:23:23 -04:00
2024-09-26 10:27:10 -07:00
2024-09-06 14:49:20 +02:00
2024-09-27 09:55:30 -07:00
2024-10-30 20:14:10 -07:00
2019-05-24 17:27:11 +02:00
2024-09-13 15:41:42 +02:00
2024-10-16 13:17:45 +02:00
2024-09-27 12:10:45 -07:00
2024-09-25 14:56:40 -07:00
2024-09-13 13:22:09 -06:00
2024-09-13 12:31:45 -06:00
2024-09-20 00:19:48 -06:00
2024-10-30 12:13:46 -07:00
2024-10-24 10:17:12 -07:00
2024-10-22 15:42:56 -07:00
2024-09-16 08:54:30 +02:00
2024-09-11 09:58:30 -07:00
2017-11-02 11:10:55 +01:00
2024-09-21 07:29:05 -07:00
2024-09-21 09:44:57 -07:00
2024-09-29 08:51:30 -07:00
2024-10-09 16:57:57 -04:00
2024-10-23 16:04:30 +01:00
2024-09-26 14:01:44 -07:00
2024-01-27 18:08:52 -08:00
2024-09-18 07:52:24 +02:00
2024-09-26 11:39:02 -07:00
2024-10-01 20:43:44 +02:00
2024-09-18 15:03:58 +02:00
2024-09-27 12:10:45 -07:00
2024-09-09 16:39:00 -07:00
2021-09-17 15:08:45 +02:00
2024-09-27 08:18:43 -07:00
2021-07-08 11:48:20 -07:00
2024-10-25 16:07:03 -05:00
2024-09-22 18:47:51 +02:00
2024-03-19 16:11:42 +01:00
2017-11-02 11:10:55 +01:00
2018-01-01 12:40:27 -07:00
2024-10-02 17:23:23 -04:00
2024-09-11 03:30:27 +00:00
2024-09-19 10:18:15 +02:00
2024-09-29 21:52:29 -04:00
2024-09-23 09:35:36 -07:00
2024-09-21 09:27:50 -07:00
2024-09-12 22:30:37 +09:00
2024-10-01 17:01:40 +02:00
2024-10-21 14:30:26 +02:00
2023-10-18 14:08:29 +02:00
2024-10-09 12:47:18 -07:00
2024-10-02 15:14:29 +02:00
2024-09-09 09:41:47 -04:00
2024-09-09 16:39:03 -07:00
2024-09-09 16:39:05 -07:00
2024-09-24 16:10:12 +02:00
2024-09-13 15:14:56 +02:00
2024-10-15 18:46:25 +02:00
2022-02-23 10:58:28 +01:00
2024-10-17 00:28:10 -07:00
2024-09-26 14:01:43 -07:00
2024-09-13 07:27:36 -07:00
2024-09-21 12:46:00 +02:00
2024-10-02 17:23:23 -04:00
2023-12-10 17:21:31 -08:00
2024-11-02 22:28:58 -07:00
2023-09-12 17:50:53 +02:00
2024-11-01 07:45:00 -10:00
2024-09-22 18:48:00 +02:00
2024-09-12 12:20:42 +02:00
2024-09-08 20:47:40 +02:00
2017-11-02 11:10:55 +01:00
2024-09-20 18:28:26 +03:00
2024-09-09 16:39:04 -07:00
2024-09-25 20:12:58 +09:00
2024-10-28 21:40:39 -07:00
2024-10-20 07:05:51 -04:00
2024-09-07 10:16:56 +09:00
2024-05-09 15:48:01 +02:00
2024-09-24 14:54:26 -07:00
2024-09-09 16:39:06 -07:00
2022-12-08 21:49:25 -05:00
2022-10-04 12:06:58 -06:00
2024-09-17 01:07:01 -07:00
2024-10-21 22:11:19 +08:00
2024-11-27 09:38:27 +09:00
2024-11-03 10:47:03 -08:00
2024-09-23 11:07:55 +02:00
2024-07-23 11:43:40 -07:00
2018-03-24 11:25:35 -05:00
2024-09-13 07:36:02 +02:00
2024-10-21 12:54:25 +02:00
2024-09-26 13:03:03 +02:00
2024-09-12 12:20:41 +02:00
2024-09-20 19:31:03 -04:00
2024-09-23 15:03:29 -04:00
2024-10-03 16:19:13 -04:00
2024-09-23 15:03:29 -04:00
2024-09-23 15:03:30 -04:00
2024-10-03 16:19:43 -04:00
2024-09-11 20:53:45 -07:00
2024-05-01 23:18:48 +09:00
2024-11-27 09:38:27 +09:00
2024-11-27 09:38:27 +09:00
2024-10-30 20:14:12 -07:00
2024-09-20 17:53:17 -07:00
2024-08-13 14:16:22 +02:00
2021-02-03 19:05:50 +01:00
2024-09-23 14:08:08 -07:00
2024-09-19 14:25:32 -05:00
2024-09-19 14:25:34 -05:00
2024-10-17 00:28:07 -07:00
2024-09-18 15:03:58 +02:00
2024-09-09 16:39:18 -07:00
2024-09-17 01:06:59 -07:00
2024-09-11 11:06:11 +01:00
2024-10-02 17:23:23 -04:00
2024-09-08 18:40:33 +01:00
2024-09-09 00:03:55 +05:30
2024-11-27 09:38:27 +09:00
2024-09-18 08:53:53 +02:00
2024-09-18 08:53:53 +02:00
2024-08-14 16:59:28 -04:00
2024-09-09 16:39:03 -07:00
2024-09-20 00:20:06 -06:00
2024-10-17 09:58:07 +02:00
2017-11-02 11:10:55 +01:00
2024-10-09 12:47:18 -07:00
2024-09-22 13:35:36 -07:00
2024-09-11 15:47:13 +02:00
2024-09-17 01:07:00 -07:00
2024-09-09 16:39:12 -07:00
2024-04-25 20:55:59 -07:00
2024-09-11 20:44:31 -07:00
2024-09-11 20:44:31 -07:00
2024-09-21 07:29:05 -07:00
2024-09-18 07:52:24 +02:00
2024-09-11 20:44:32 -07:00
2021-12-10 14:06:03 +00:00
2024-09-10 16:42:11 -07:00
2024-09-19 10:18:15 +02:00
2018-04-28 15:01:14 -07:00
2024-10-30 20:14:11 -07:00
2024-10-11 10:49:32 +02:00
2024-10-27 10:36:04 +01:00
2024-09-08 20:47:40 +02:00
2024-04-01 10:36:35 +02:00
2024-04-22 16:13:06 +02:00
2024-10-02 17:23:23 -04:00
2024-09-25 23:23:44 +09:00
2023-08-22 14:58:15 +02:00
2024-10-30 11:38:10 -10:00
2024-09-12 12:20:39 +02:00
2024-10-02 17:23:23 -04:00
2024-09-17 01:07:01 -07:00
2024-09-12 12:16:09 +02:00
2024-10-28 21:40:38 -07:00
2024-09-10 02:51:48 -04:00
2024-10-02 17:21:59 -07:00
2024-09-09 16:39:04 -07:00
2024-09-01 20:25:43 -07:00
2022-02-23 10:58:28 +01:00
2024-08-21 06:37:39 -10:00
2024-09-21 07:29:05 -07:00
2024-09-09 16:39:06 -07:00