milos-linux/scripts/dtc
Nathan Chancellor eff87ab17c 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-04-27 07:30:17 -06:00
..
include-prefixes
libfdt scripts/dtc: Update to upstream version v1.7.2-62-ga26ef6400bd8 2026-02-03 20:58:12 -06:00
.gitignore
checks.c scripts/dtc: Update to upstream version v1.7.2-62-ga26ef6400bd8 2026-02-03 20:58:12 -06:00
data.c scripts/dtc: Update to upstream version v1.7.2-35-g52f07dcca47c 2025-08-11 08:08:51 -05:00
dt-extract-compatibles of: Add for_each_compatible_node_scoped() helper 2026-02-03 20:58:12 -06:00
dt_to_config scripts: dt_to_config: fix grammar and a typo in --help text 2025-09-26 15:53:30 -05:00
dtc-lexer.l scripts/dtc: Remove unused dts_version in dtc-lexer.l 2026-04-27 07:30:17 -06:00
dtc-parser.y scripts/dtc: Update to upstream version v1.7.0-93-g1df7b047fe43 2024-07-09 16:04:09 -06:00
dtc.c scripts/dtc: Update to upstream version v1.7.2-62-ga26ef6400bd8 2026-02-03 20:58:12 -06:00
dtc.h scripts/dtc: Update to upstream version v1.7.2-62-ga26ef6400bd8 2026-02-03 20:58:12 -06:00
dtx_diff
fdtget.c
fdtoverlay.c scripts/dtc: Update to upstream version v1.7.2-35-g52f07dcca47c 2025-08-11 08:08:51 -05:00
fdtput.c
flattree.c scripts/dtc: Update to upstream version v1.7.2-62-ga26ef6400bd8 2026-02-03 20:58:12 -06:00
fstree.c scripts/dtc: Update to upstream version v1.7.0-93-g1df7b047fe43 2024-07-09 16:04:09 -06:00
livetree.c scripts/dtc: Update to upstream version v1.7.2-62-ga26ef6400bd8 2026-02-03 20:58:12 -06:00
Makefile
of_unittest_expect
srcpos.c scripts/dtc: Update to upstream version v1.7.2-62-ga26ef6400bd8 2026-02-03 20:58:12 -06:00
srcpos.h scripts/dtc: Update to upstream version v1.7.2-35-g52f07dcca47c 2025-08-11 08:08:51 -05:00
treesource.c scripts/dtc: Update to upstream version v1.7.2-62-ga26ef6400bd8 2026-02-03 20:58:12 -06:00
update-dtc-source.sh
util.c scripts/dtc: Update to upstream version v1.7.2-35-g52f07dcca47c 2025-08-11 08:08:51 -05:00
util.h scripts/dtc: Update to upstream version v1.7.2-35-g52f07dcca47c 2025-08-11 08:08:51 -05:00
version_gen.h scripts/dtc: Update to upstream version v1.7.2-62-ga26ef6400bd8 2026-02-03 20:58:12 -06:00
yamltree.c