--- a/scripts/dtc/dtc-lexer.l 2019-12-21 12:57:45.000000000 +0300 +++ b/scripts/dtc/dtc-lexer.l 2021-10-24 16:01:38.478555927 +0300 @@ -38,7 +38,7 @@ #include "srcpos.h" #include "dtc-parser.tab.h" -YYLTYPE yylloc; +extern YYLTYPE yylloc ; extern bool treesource_error; /* CAUTION: this will stop working if we ever use yyless() or yyunput() */