android_kernel_samsung_a7y1.../scripts/dtc
Dirk Mueller 45662f78ef 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>
2020-04-07 14:24:12 +02:00
..
include-prefixes A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
libfdt A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
checks.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
data.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dt_to_config A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dtc-lexer.l scripts/dtc: Remove redundant YYLOC global declaration 2020-04-07 14:24:12 +02:00
dtc-lexer.lex.c_shipped scripts/dtc: Remove redundant YYLOC global declaration 2020-04-07 14:24:12 +02:00
dtc-parser.tab.c_shipped A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dtc-parser.tab.h_shipped A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dtc-parser.y A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dtc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dtc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dtx_diff A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fdtdump.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fdtget.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fdtput.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
flattree.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fstree.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
livetree.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile.dtc A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
srcpos.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
srcpos.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
treesource.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
update-dtc-source.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
util.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
util.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
version_gen.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
version_non_gen.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30