android_kernel_oneplus_msm8998/scripts/dtc
Jami Kettunen b083a066c9
scripts/dtc: Remove redundant YYLOC global declaration
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>
Change-Id: Ie5f32479b6fb948472bbfdec45a07c3728855c28
Signed-off-by: engstk <eng.stk@sapo.pt>
2020-12-18 02:42:10 +02:00
..
libfdt Merge android-4.4.116 (20ddb25) into msm-4.4 2018-03-01 17:18:47 +05:30
.gitignore kbuild: trivial - remove trailing empty lines 2014-06-10 00:04:06 +02:00
checks.c UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2018-02-05 08:58:36 -08:00
data.c scripts/dtc: Update to upstream version 9d3649bd3be245c9 2015-04-29 17:17:27 -05:00
dt_to_config UPSTREAM: scripts/dtc: dt_to_config - kernel config options for a devicetree 2018-02-05 08:58:36 -08:00
dtc-lexer.l scripts/dtc: Remove redundant YYLOC global declaration 2020-12-18 02:42:10 +02:00
dtc-lexer.lex.c_shipped scripts/dtc: Remove redundant YYLOC global declaration 2020-12-18 02:42:10 +02:00
dtc-parser.tab.c_shipped UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2018-02-05 08:58:36 -08:00
dtc-parser.tab.h_shipped UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2018-02-05 08:58:36 -08:00
dtc-parser.y UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2018-02-05 08:58:36 -08:00
dtc.c UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2018-02-05 08:58:36 -08:00
dtc.h UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2018-02-05 08:58:36 -08:00
dtx_diff UPSTREAM: scripts/dtc: dt_to_config - kernel config options for a devicetree 2018-02-05 08:58:36 -08: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 2018-02-05 08:58:36 -08:00
fstree.c UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2018-02-05 08:58:36 -08:00
livetree.c UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2018-02-05 08:58:36 -08:00
Makefile scripts: Makefile: add support to use external DTC 2017-04-06 11:22:41 -07:00
Makefile.dtc dtc: import latest upstream dtc 2012-10-01 11:11:35 -05:00
srcpos.c UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2018-02-05 08:58:36 -08:00
srcpos.h UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2018-02-05 08:58:36 -08:00
treesource.c UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2018-02-05 08:58:36 -08:00
update-dtc-source.sh scripts/dtc: add missing libfdt and fixups to import script 2015-04-29 16:08:05 -05:00
util.c UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2018-02-05 08:58:36 -08:00
util.h UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2018-02-05 08:58:36 -08:00
version_gen.h UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 2018-02-05 08:58:36 -08:00