linux-stable/scripts/dtc
Dirk Mueller 88f7a6aa7f scripts/dtc: Remove redundant YYLOC global declaration
commit e33a814e77 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
     e039139be8, where dtc-lexer.l started being used]
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-02 16:34:30 +02:00
..
include-prefixes devicetree: Move include prefixes from arch to separate directory 2017-05-18 23:55:48 -07:00
libfdt scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
.gitignore kbuild: trivial - remove trailing empty lines 2014-06-10 00:04:06 +02:00
checks.c scripts/dtc: fix '%zx' warning 2017-08-31 16:33:15 -07:00
data.c scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
dt_to_config scripts: Switch to more portable Perl shebang 2017-05-14 11:20:44 +09:00
dtc-lexer.l scripts/dtc: Remove redundant YYLOC global declaration 2020-04-02 16:34:30 +02:00
dtc-lexer.lex.c_shipped scripts/dtc: Remove redundant YYLOC global declaration 2020-04-02 16:34:30 +02:00
dtc-parser.tab.c_shipped scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
dtc-parser.tab.h_shipped scripts/dtc: Update to upstream version 0931cea3ba20 2017-01-04 10:47:53 -06:00
dtc-parser.y scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
dtc.c scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
dtc.h scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
dtx_diff scripts/dtc: dtx_diff - 2nd update of include dts paths to match build 2017-09-20 10:13:05 -05:00
fdtdump.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fdtget.c
fdtput.c
flattree.c scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
fstree.c scripts/dtc: Update to upstream version 0931cea3ba20 2017-01-04 10:47:53 -06:00
livetree.c scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile.dtc
srcpos.c scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
srcpos.h scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
treesource.c scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
update-dtc-source.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
util.c scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
util.h scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
version_gen.h scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00