Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp846951pja; Wed, 1 Apr 2020 09:45:52 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuZpYbrQFJECZhFlCmJ9BQdXFmCSpdbZgaCt2rykz/qt/h3+PM7HsyKz1l0D2vh2n3+AFAm X-Received: by 2002:a05:6830:1b64:: with SMTP id d4mr16890554ote.368.1585759552434; Wed, 01 Apr 2020 09:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585759552; cv=none; d=google.com; s=arc-20160816; b=Dgut2Nha2921SDnv2rqSnM1cHe0CHhKW20NaXcMKpFoXPEgm0rykC8DYGVkSX5IIAw I9OPIlzA0ZXUnY3ECLUrLh6oUFFiyBAKmmXDyF/6R1vRiyzqsGQhohxBipFFLNRwpvkO l8doyiZNtINS66bnKMZBU7+y4+tZ40E3mWukdNp+/YLDCQHNI8JuK0jeD2350b/WR/jq LBKfgWrtGH5vkGLUVSVAo319FGHx6JCnn150Iw58xrTbIPEFtDM/Imcgxx49JdRUMBEa zOAF6eJ6xlf3s/G1VIc6Q6py7nfKE05+k0Xv9hUJI9ADhi/9ep620u1JKp3Qb2MQZsoO I6Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cTHsqTv2Jm3eX4HGy2+Fsgf5utNTe6w7nNYvT/lo7Uo=; b=07yWMg8CY2IvweUqqPWRueiQXsWWNsDJh6U7LOReJM1XQIXyvE5+4STIYONWQhr3d8 yhJQAMAR4FVku8DqT/ZZly3KaB2jDxkmAip30jafyNOc3FhnJpANNzh3p13q2kuZGWn2 ng2Zs/akMOH0kRqhDNXYBRK/T96hdKQpTPEcFqIOTNb0kmI8DkPfqTeXMu7lcLcq1wbP BQcBIUobckbJzrJRRiCMgsBn4xRm1JbSBL5id+d3paq5EoZaqfFGFouKyY0aGSH5fhOc dWi+4Jh1bmQArPYh8/4jV6m9Xz9J48u7nrWhCr2qvO43mXBuyeguHjYLyTKCOhHlsO+h 176w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JwdJhrl0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9si1165099otj.157.2020.04.01.09.45.39; Wed, 01 Apr 2020 09:45:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JwdJhrl0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389465AbgDAQou (ORCPT + 99 others); Wed, 1 Apr 2020 12:44:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:45906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388037AbgDAQos (ORCPT ); Wed, 1 Apr 2020 12:44:48 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4FD1B206E9; Wed, 1 Apr 2020 16:44:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585759487; bh=/sxCgI7m/KNwNNLDpk1oZ+muSRGWzY76oNLMuJCpNmA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JwdJhrl0XYK0ri8Eb/2Fvl7f/sVGD7qaCyApXV/z4PRfgtkARDp5UMwuxEZIXEl3t PI5MUTpLgIeT7wpZwJTQBpxw3TT2tXpypz582Mn8tk74j4oE3v9n+GJBgXq+1KwK/s EcSjxETlxb936o8lrsApYb30C7Kx310yRVsJthdE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dirk Mueller , David Gibson , Rob Herring Subject: [PATCH 4.14 095/148] scripts/dtc: Remove redundant YYLOC global declaration Date: Wed, 1 Apr 2020 18:18:07 +0200 Message-Id: <20200401161602.043243800@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200401161552.245876366@linuxfoundation.org> References: <20200401161552.245876366@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dirk Mueller 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 Signed-off-by: David Gibson [robh: cherry-pick from upstream] Cc: stable@vger.kernel.org Signed-off-by: Rob Herring Signed-off-by: Greg Kroah-Hartman --- scripts/dtc/dtc-lexer.l | 1 - 1 file changed, 1 deletion(-) --- a/scripts/dtc/dtc-lexer.l +++ b/scripts/dtc/dtc-lexer.l @@ -38,7 +38,6 @@ LINECOMMENT "//".*\n #include "srcpos.h" #include "dtc-parser.tab.h" -YYLTYPE yylloc; extern bool treesource_error; /* CAUTION: this will stop working if we ever use yyless() or yyunput() */