Nathan Chancellor and Greg Kroah-Hartman
cdde0b55a4
scripts/dtc: Remove unused dts_version in dtc-lexer.l
...
This patch is for stable only. Commit 5a09df2087 ("scripts/dtc: Update
to upstream version v1.7.2-69-g53373d135579") upstream applied it as
part of a regular scripts/dtc sync, which may be unsuitable for older
versions of stable where the warning it fixes is present.
A recent strengthening of -Wunused-but-set-variable (enabled with -Wall)
in clang under a new subwarning, -Wunused-but-set-global, points out an
unused static global variable in dtc-lexer.lex.c (compiled from
dtc-lexer.l):
scripts/dtc/dtc-lexer.lex.c:641:12: warning: variable 'dts_version' set but not used [-Wunused-but-set-global]
641 | static int dts_version = 1;
| ^
Remove it to clear up the warning, as it is truly unused.
Fixes: 658f29a51e ("of/flattree: Update dtc to current mainline.")
Signed-off-by: Nathan Chancellor <nathan@kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2026-06-01 17:38:41 +02:00
..
2024-03-26 18:20:25 -04:00
2026-06-01 17:38:41 +02:00
2025-10-15 11:56:20 +02:00
2024-06-16 13:41:32 +02:00
2025-02-21 13:49:23 +01:00
2025-12-07 06:12:39 +09:00
2026-03-04 07:20:24 -05:00
2023-09-19 12:27:58 +02:00
2025-04-10 14:33:30 +02:00
2023-06-21 16:01:03 +02:00
2023-04-26 14:28:44 +02:00
2018-07-18 01:18:05 +09:00
2019-06-05 17:37:11 +02:00
2024-04-10 16:28:21 +02:00
2022-09-28 09:02:20 +02:00
2020-02-25 03:35:16 -07:00
2021-08-10 09:13:25 +09:00
2017-11-02 11:10:55 +01:00
2023-03-17 08:50:31 +01:00
2026-06-01 17:38:38 +02:00
2023-12-13 18:39:19 +01:00
2021-08-05 20:55:39 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2025-06-04 14:40:06 +02:00
2024-01-20 11:50:11 +01:00
2022-09-11 21:55:05 -07:00
2021-01-01 12:26:39 -08:00
2020-09-04 18:19:37 +02:00
2023-03-17 08:50:31 +01:00
2021-10-26 09:42:29 -06:00
2017-11-02 11:10:55 +01:00
2022-11-16 10:42:10 +01:00
2024-08-03 08:49:39 +02:00
2024-08-03 08:49:39 +02:00
2026-06-01 17:38:41 +02:00
2024-01-31 16:17:01 -08:00
2023-06-28 11:12:22 +02:00
2023-02-25 11:25:42 +01:00
2017-11-02 11:10:55 +01:00
2016-02-26 15:30:20 +00:00
2022-05-11 21:45:53 +09:00
2021-05-17 12:10:03 +09:00
2023-10-25 12:03:16 +02:00
2023-06-21 16:01:03 +02:00
2022-06-13 11:07:45 -06:00
2024-07-18 13:18:44 +02:00
2017-11-02 11:10:55 +01:00
2024-07-11 12:47:18 +02:00
2021-03-15 19:20:48 +09:00
2024-05-17 11:56:10 +02:00
2025-06-27 11:07:24 +01:00
2022-05-08 03:17:00 +09:00
2025-06-27 11:07:24 +01:00
2022-09-28 09:02:20 +02:00
2024-07-05 09:31:57 +02:00
2025-02-21 13:49:46 +01:00
2022-08-16 12:25:53 -07:00
2021-03-15 19:20:48 +09:00
2024-05-17 11:56:10 +02:00
2021-09-24 16:13:35 -07:00
2021-12-09 16:42:27 -08:00
2025-05-02 07:47:10 +02:00
2024-05-17 11:56:17 +02:00
2026-01-11 15:19:15 +01:00
2024-02-23 09:12:38 +01:00
2022-11-24 09:27:57 +09:00
2022-05-08 01:33:07 -07:00
2022-01-20 08:52:55 +02:00
2020-05-17 18:52:01 +09:00
2022-10-03 03:52:58 +09:00
2017-11-02 11:10:55 +01:00
2022-10-03 03:51:58 +09:00
2021-04-25 05:22:42 +09:00
2022-06-08 20:14:13 +09:00
2022-06-05 06:20:57 +09:00
2022-05-12 10:08:43 -07:00
2024-01-20 11:50:10 +01:00
2020-03-26 15:08:27 -07:00
2017-11-02 11:10:55 +01:00
2023-05-24 17:32:41 +01:00
2022-08-12 18:39:43 -07:00
2024-08-29 17:30:32 +02:00
2025-04-25 10:44:04 +02:00
2025-01-17 13:34:38 +01:00
2022-05-18 15:35:42 +02:00
2022-07-07 12:47:34 -06:00
2020-12-08 23:30:04 +09:00
2025-04-25 10:44:04 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-07-09 04:00:39 +09:00
2021-08-10 09:13:25 +09:00
2021-07-09 04:00:39 +09:00
2023-07-05 18:27:38 +01:00