forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
-Wunused-but-set-global[BUG] linuxA bug that should be fixed in the mainline kernel.A bug that should be fixed in the mainline kernel.[PATCH] SubmittedA patch has been submitted for reviewA patch has been submitted for review
Description
After llvm/llvm-project@fd11cf4 (llvm/llvm-project@fd11cf4 split the warning out from -Wunused-but-set-variable into -Wunused-but-set-global):
scripts/dtc/dtc-lexer.lex.c:641:12: error: variable 'dts_version' set but not used [-Werror,-Wunused-but-set-global]
641 | static int dts_version = 1;
| ^
This one is unfortunate because dtc is a vendored project in the kernel. I submitted the fix against upstream dtc:
https://lore.kernel.org/20260325-dtc-lexer-remove-dts_version-v1-1-0b5d64903bbb@kernel.org/
Once that is merged in dtc.git upstream, I will ask Rob to cherry-pick it into the kernel or just sync with dtc (hopefully the former so that it is easy to backport to stable).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
-Wunused-but-set-global[BUG] linuxA bug that should be fixed in the mainline kernel.A bug that should be fixed in the mainline kernel.[PATCH] SubmittedA patch has been submitted for reviewA patch has been submitted for review