You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dirk Mueller 83fdce81a7 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
1 year ago
..
basic kbuild: fixdep: support concatenated dep files 11 years ago
coccinelle scripts/coccinelle: modernize & 8 years ago
dtc scripts/dtc: Remove redundant YYLOC global declaration 1 year ago
genksyms genksyms: pass symbol-prefix instead of arch 11 years ago
kconfig Merge remote-tracking branch 'f2fs/linux-3.10.y' into HEAD 7 years ago
ksymoops Linux-2.6.12-rc2 19 years ago
mod scripts: modpost: check memory allocation results 5 years ago
package deb-pkg: Fix cross-building linux-headers package 10 years ago
rt-tester Fix common misspellings 13 years ago
selinux Create Documentation/security/, 13 years ago
tracing tracing, perf: Convert the power tracer into an event tracer 15 years ago
.gitignore X.509: Add simple ASN.1 grammar compiler 12 years ago
Kbuild.include kbuild: fix ld-option function 11 years ago
Lindent scripts/Lindent: support gnu indent v2.2.10 16 years ago
Makefile X.509: Add simple ASN.1 grammar compiler 12 years ago
Makefile.asm-generic uapi: Allow automatic generation of uapi/asm/ header files 12 years ago
Makefile.build genksyms: pass symbol-prefix instead of arch 11 years ago
Makefile.clean kbuild: Really don't clean bounds.h and asm-offsets.h 14 years ago
Makefile.fwinst kbuild: Fix accidental revert in commit fe04ddf 12 years ago
Makefile.headersinst Merge upstream tag 'v3.10.40' into msm-3.10 10 years ago
Makefile.help Add a target to use the Coccinelle checker 14 years ago
Makefile.host kbuild: fix some minor typoes 16 years ago
Makefile.kasan kasan: enable instrumentation of global variables 9 years ago
Makefile.lib scripts: Don't create .reverse.dts files 7 years ago
Makefile.modbuiltin kbuild: Create output directory in Makefile.modbuiltin 14 years ago
Makefile.modinst kbuild: make it possible to specify the module output dir 9 years ago
Makefile.modpost modpost: Make section mismatches an error 11 years ago
Makefile.modsign MODSIGN: Add modules_sign make target 11 years ago
asn1_compiler.c X.509: remove possible code fragility: enumeration values not handled 7 years ago
bin2c.c Linux-2.6.12-rc2 19 years ago
bloat-o-meter scripts/bloat-o-meter: fix python3 syntax error 8 years ago
bootgraph.pl bootgraph.pl: relax timing information requirements 13 years ago
build-all.py scripts: Restore some of the parallism in "all" builds 9 years ago
checkincludes.pl checkincludes: fix perlcritic warnings 14 years ago
checkkconfigsymbols.sh checkkconfigsymbols.sh: Kconfig symbols sometimes have lowercase letters 14 years ago
checkpatch.pl Revert "checkpatch: emit a warning on file add/move/delete" 9 years ago
checkstack.pl scripts/checkstack.pl: Add metag support 11 years ago
checksyscalls.sh checksyscalls: fix "here document" handling 12 years ago
checkversion.pl kbuild: don't warn about include/linux/version.h not including itself 13 years ago
cleanfile scripts: Make cleanfile/cleanpatch warn about long lines 17 years ago
cleanpatch scripts: Make cleanfile/cleanpatch warn about long lines 17 years ago
coccicheck Coccinelle: Fix patch output when coccicheck is used with M= and C= 11 years ago
config scripts/config: fix assignment of parameters for short version of --*-after options 11 years ago
conmakehash.c Fix all -Wmissing-prototypes warnings in x86 defconfig 15 years ago
decodecode scripts/decodecode: make faulting insn ptr more robust 11 years ago
depmod.sh depmod: pass -P $CONFIG_SYMBOL_PREFIX 11 years ago
diffconfig kconfig: add diffconfig utility 16 years ago
docproc.c docproc: cleanup brace placement 13 years ago
export_report.pl export_report: use warn() to issue WARNING, so they go to stderr 13 years ago
extract-ikconfig scripts/extract-ikconfig: add xz compression support 13 years ago
extract-vmlinux scripts: add extract-vmlinux 13 years ago
gcc-goto.sh ARM: 7333/2: jump label: detect %c support for ARM 12 years ago
gcc-version.sh kbuild: Fix gcc -x syntax 12 years ago
gcc-wrapper.py Merge "scripts: Call out python2 explicitly" 9 years ago
gcc-x86_32-has-stack-protector.sh kbuild: Fix gcc -x syntax 12 years ago
gcc-x86_64-has-stack-protector.sh kbuild: Fix gcc -x syntax 12 years ago
gen_initramfs_list.sh Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6 13 years ago
get_maintainer.pl get_maintainer: use filename-only regex match for Tegra 11 years ago
gfp-translate chmod +x scripts/gfp-translate 12 years ago
headerdep.pl headerdep: perlcritic warning 14 years ago
headers.sh kbuild, headers.sh: Don't make archheaders explicitly 13 years ago
headers_check.pl headers_check: recursively search for linux/types.h inclusion 12 years ago
headers_install.sh kbuild: fix make headers_install when path is too long 10 years ago
kallsyms.c scripts/kallsyms: filter symbols not in kernel address space 10 years ago
kernel-doc scripts/kernel-doc: don't eat struct members with __aligned 9 years ago
link-vmlinux.sh scripts/kallsyms: filter symbols not in kernel address space 10 years ago
makelst kbuild: introduce ccflags-y, asflags-y and ldflags-y 17 years ago
markup_oops.pl Merge branch 'for-35' of git://repo.or.cz/linux-kbuild 14 years ago
mkcompile_h Fix handling of backlash character in LINUX_COMPILE_BY name 13 years ago
mkmakefile kbuild: silence generated makefile message 13 years ago
mksysmap trivial: typo in comment in mksysmap 12 years ago
mkuboot.sh mkuboot.sh: Fail if mkimage is missing 13 years ago
mkversion Linux-2.6.12-rc2 19 years ago
module-common.lds module: Sort exported symbols 13 years ago
namespace.pl Revert "namespace: add source file location exceptions" 14 years ago
patch-kernel scripts/patch-kernel: digest kernel.org hosted .xz patches 12 years ago
pnmtologo.c scripts/pnmtologo: fix for plain PBM 12 years ago
profile2linkerlist.pl profile2linkerlist: fix perl warnings 14 years ago
recordmcount.c ftrace/recordmcount: Work around for addition of metag magic but not relocations 5 years ago
recordmcount.h recordmcount: Fix endianness handling bug for nop_mcount 8 years ago
recordmcount.pl This is the 3.10.96 stable release 7 years ago
setlocalversion setlocalversion: Include post Linus git tags in LOCALVERSION_AUTO 11 years ago
show_delta scripts: change scripts to use system python instead of env 14 years ago
sign-file MODSIGN: Add -s <signature> option to sign-file 11 years ago
sortextable.c scripts: remove unused function in sortextable.c 7 years ago
sortextable.h scripts/sortextable: suppress warning: `relocs_size' may be used uninitialized 7 years ago
spelling.txt checkpatch: look for common misspellings 9 years ago
tags.sh scripts/tags.sh: catch 4.9-rc6 7 years ago
unifdef.c unifdef: update to upstream version 2.5 13 years ago
ver_linux Remove bashisms from scripts 15 years ago
xz_wrap.sh xz: Enable BCJ filters on SPARC and 32-bit x86 12 years ago