Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp778328ybb; Wed, 1 Apr 2020 09:26:47 -0700 (PDT) X-Google-Smtp-Source: APiQypJABZ0MmzYMIA5L1Xx6BPoASvyRvffyl8StC+GncQ9izPJ/EmL3bOrYV468gYlKrE0aSO8y X-Received: by 2002:a54:448a:: with SMTP id v10mr3484494oiv.49.1585758406874; Wed, 01 Apr 2020 09:26:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585758406; cv=none; d=google.com; s=arc-20160816; b=Y12/ERv2pbZ6fhmWlqpQ3XQ1TO6uZslSS5JD4loItjdLpS6HnnGNkfkQNJc6NAxkzE oAJ2SxDltULUr3KHEPotsiCn39kwwaxKboc4134pfNs8lTwwE2ybKDJQLn3DMpAcJqKX 9Q6x3+ROyAgiBqR9OYAyTFyQ0DO9B4zPJtFhl778zqfDFj+RPXjlqoCQMxifq1RSI9c6 lhrfIKEeVjp4LHKK9+CkvZCuxLeiPScwSP5PXqTu1/Z0foRBfaubaq7SroJKudaJAiuL K+GsnOk/OBvX+v6+dCa2wJFVxi4LxA4pX5iB0VQYPZSjh3g4SSn2Y/hDD6LurZ5RivIA 6rhw== 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=Eh3vVr1UW+4Hmrzf0VRvbXXZ7umcNgggoUDN8BQ9VmkbDeefagdkxm3sAwFR2ivUZa 4O8lcla8xQFF+BUQ19oBstv/BqQzVKP6NIguNteHaRAiP8EE3kEBMYH6SYBI13iCM27U VpQMiRjzTEM3iICMcs95jhlgv8uddjsGqJSK+Axhtm3Xac06ZOcEUoPTL+Vr7kt0mu6i ry9LwcsocHdcpzSKI7ypZLLu4TOWxiY66OpFQs+4Dyj7kcl31yCrNfs58Tvj3cpsIkN9 23QTIx/EcvaIqRZdA5+gFmjNcbxdmtwW/tKtJLROJYSApAU+T4UY/gPqYUtjIhEazZea xDqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Qz3+sowo; 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 i5si1007812otp.103.2020.04.01.09.26.34; Wed, 01 Apr 2020 09:26:46 -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=Qz3+sowo; 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 S2387827AbgDAQZ2 (ORCPT + 99 others); Wed, 1 Apr 2020 12:25:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:49524 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387599AbgDAQZ1 (ORCPT ); Wed, 1 Apr 2020 12:25:27 -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 40B6C21582; Wed, 1 Apr 2020 16:25:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585758326; bh=/sxCgI7m/KNwNNLDpk1oZ+muSRGWzY76oNLMuJCpNmA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qz3+sowoWhJEwmW8DyBYSNUHznKMoeIiWljZCYDwy1+hfkfwPB6lQ0SU8SHBqwJOG CopaKJFQGxpNa21axl4ilp9KnWORpFizQPCv0SucKoHCfTBC9pRjkrofyZ53ZZPf94 IN40fjd4XQLylljQfRkXBzTb5QfptlT4E04zpVAw= 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.19 056/116] scripts/dtc: Remove redundant YYLOC global declaration Date: Wed, 1 Apr 2020 18:17:12 +0200 Message-Id: <20200401161549.821884956@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200401161542.669484650@linuxfoundation.org> References: <20200401161542.669484650@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() */