android_kernel_lge_bullhead/scripts/dtc
Dirk Mueller 8f9549f135 scripts/dtc: Remove redundant YYLOC global declaration
commit e33a814e772cdc36436c8c188d8c42d019fda639 upstream.

gcc 10 will default to -fno-common, which causes this error at link
time:

  (.text+0x0): multiple definition of `yylloc'; dtc-lexer.lex.o (symbol from plugin):(.text+0x0): first defined here

This is because both dtc-lexer as well as dtc-parser define the same
global symbol yyloc. Before with -fcommon those were merged into one
defintion. The proper solution would be to to mark this as "extern",
however that leads to:

  dtc-lexer.l:26:16: error: redundant redeclaration of 'yylloc' [-Werror=redundant-decls]
   26 | extern YYLTYPE yylloc;
      |                ^~~~~~
In file included from dtc-lexer.l:24:
dtc-parser.tab.h:127:16: note: previous declaration of 'yylloc' was here
  127 | extern YYLTYPE yylloc;
      |                ^~~~~~
cc1: all warnings being treated as errors

which means the declaration is completely redundant and can just be
dropped.

Signed-off-by: Dirk Mueller <dmueller@suse.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
[robh: cherry-pick from upstream]
Cc: stable@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
[nc: Also apply to dtc-lexer.lex.c_shipped due to a lack of
     e039139be8c2, where dtc-lexer.l started being used]
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I7f299451e99aab09375883546e47505ec0937c26
2020-06-19 15:10:31 +02:00
..
libfdt UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2020-06-19 15:10:21 +02:00
.gitignore kbuild: trivial - remove trailing empty lines 2020-06-19 15:06:58 +02:00
Makefile scripts: Makefile: add support to use external DTC 2020-06-19 15:08:08 +02:00
Makefile.dtc dtc: import latest upstream dtc 2012-10-01 11:11:35 -05:00
checks.c UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2020-06-19 15:10:21 +02:00
data.c scripts/dtc: Update to upstream version 9d3649bd3be245c9 2020-06-19 15:07:38 +02:00
dt_to_config UPSTREAM: scripts/dtc: dt_to_config - kernel config options for a devicetree 2020-06-19 15:10:05 +02:00
dtc-lexer.l scripts/dtc: Remove redundant YYLOC global declaration 2020-06-19 15:10:31 +02:00
dtc-lexer.lex.c_shipped scripts/dtc: Remove redundant YYLOC global declaration 2020-06-19 15:10:31 +02:00
dtc-parser.tab.c_shipped UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2020-06-19 15:10:21 +02:00
dtc-parser.tab.h_shipped UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2020-06-19 15:10:21 +02:00
dtc-parser.y UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2020-06-19 15:10:21 +02:00
dtc.c UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2020-06-19 15:10:21 +02:00
dtc.h UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2020-06-19 15:10:21 +02:00
dtx_diff UPSTREAM: scripts/dtc: dt_to_config - kernel config options for a devicetree 2020-06-19 15:10:05 +02:00
fdtdump.c dtc: import latest upstream dtc 2012-10-01 11:11:35 -05:00
fdtget.c dtc: import latest upstream dtc 2012-10-01 11:11:35 -05:00
fdtput.c dtc: import latest upstream dtc 2012-10-01 11:11:35 -05:00
flattree.c UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2020-06-19 15:10:21 +02:00
fstree.c UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2020-06-19 15:10:21 +02:00
livetree.c UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2020-06-19 15:10:21 +02:00
srcpos.c UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2020-06-19 15:10:21 +02:00
srcpos.h UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2020-06-19 15:10:21 +02:00
treesource.c UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2020-06-19 15:10:21 +02:00
update-dtc-source.sh scripts/dtc: add missing libfdt and fixups to import script 2020-06-19 15:07:17 +02:00
util.c UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2020-06-19 15:10:21 +02:00
util.h UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2020-06-19 15:10:21 +02:00
version_gen.h UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2020-06-19 15:10:21 +02:00