45 lines
1.4 KiB
Diff
45 lines
1.4 KiB
Diff
From 52c3ac31426131c555093542d51f1e6e0623507c Mon Sep 17 00:00:00 2001
|
|
From: Marc Mattmueller <marc.mattmueller@netmodule.com>
|
|
Date: Mon, 18 Jul 2022 19:26:59 +0200
|
|
Subject: [PATCH] u-boot-armada: Remove redundant YYLOC global declaration
|
|
|
|
Same as the upstream fix for building dtc with gcc 10.
|
|
|
|
After having consulted the team, this patch is only applied to
|
|
the armada bootloader as this one is used on the core os
|
|
environment build-up.
|
|
|
|
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
|
|
---
|
|
scripts/dtc/dtc-lexer.l | 1 -
|
|
scripts/dtc/dtc-lexer.lex.c_shipped | 1 -
|
|
2 files changed, 2 deletions(-)
|
|
|
|
diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l
|
|
index fd825ebba6..24af549977 100644
|
|
--- a/scripts/dtc/dtc-lexer.l
|
|
+++ b/scripts/dtc/dtc-lexer.l
|
|
@@ -38,7 +38,6 @@ LINECOMMENT "//".*\n
|
|
#include "srcpos.h"
|
|
#include "dtc-parser.tab.h"
|
|
|
|
-YYLTYPE yylloc;
|
|
extern bool treesource_error;
|
|
|
|
/* CAUTION: this will stop working if we ever use yyless() or yyunput() */
|
|
diff --git a/scripts/dtc/dtc-lexer.lex.c_shipped b/scripts/dtc/dtc-lexer.lex.c_shipped
|
|
index 3934d8624d..22f6e0d1f8 100644
|
|
--- a/scripts/dtc/dtc-lexer.lex.c_shipped
|
|
+++ b/scripts/dtc/dtc-lexer.lex.c_shipped
|
|
@@ -639,7 +639,6 @@ char *yytext;
|
|
#include "srcpos.h"
|
|
#include "dtc-parser.tab.h"
|
|
|
|
-YYLTYPE yylloc;
|
|
extern bool treesource_error;
|
|
|
|
/* CAUTION: this will stop working if we ever use yyless() or yyunput() */
|
|
--
|
|
2.20.1
|
|
|