Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3286140ybb; Tue, 31 Mar 2020 02:07:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsulQlY6su94ncBQnbS35Ah94jjS8Xk6zEWfE2G1ZwEN2dAK5l47WI1SXLBGqbCYXVuOh4I X-Received: by 2002:aca:5d87:: with SMTP id r129mr1296585oib.144.1585645629123; Tue, 31 Mar 2020 02:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585645629; cv=none; d=google.com; s=arc-20160816; b=XAxEk5fRN7T735Gc1y+8m3u/mOWEerm/1VTio7TMVogv3hyYu75h6WpK/x0JC9NFY2 FW54dzTZijtcmDdDRZR1SZZjk29QK5PaELDYYhDlZtKQYwh5uoOiM1xprYq6JiZa11VK Hz7ngV5uMdCc8++p9WZjby4/vv+ojkzYrRZgDgx3eU22tBLN20vPPLzJDpAdQ63ig6VD /6BLmX2okEEdJG8Q34PCqnkE1hocdeadhcUkMVYOK/0CdazxmiunR1wOCVqw11LjDKtd u3ao93MS8r5Lvfso+98yrujO3HngL4Q+etGmH7J53nlgTsPM8UEy4Nsqe2FKZppOqOJa dPYQ== 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=58TrdeBCYELJxipv9lWhWq/DkCHymCkFlVTzC9vN7ag=; b=mfS+OxuN/Yvvo0yeYILpc1n8BIO+EHioMNusQGx9ZcmRiLgjcrSLtvFRTv57I2SFr+ RWawaN/mhlRokx7BzvO+EGDXq8pj8B8TO3Mb8aTyxwPfRoTkkE8NKfoOrQYTwe9e1D9G FQ6UZK7Dm6ZM2Y/FFS97G0iXQ3/NAb1JssOVS6ADagb2LQrk7d0cc16WbZW/EL5ZqUxi pYB4e/ZV6wG4DtoRpOOsCdVnMwu5b3dvucnhhdQmxOqLKT8+a349578+yFR/0n7IqO+Q vqnKbCTG/G3999sJpb9wSe7nuO0G8A4x62sKay5zoYcDoge+kaULar2huv5o0ydI6Xin dCHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GnXFLPzZ; 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 q16si7249169otn.111.2020.03.31.02.06.56; Tue, 31 Mar 2020 02:07:09 -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=GnXFLPzZ; 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 S1730930AbgCaJGm (ORCPT + 99 others); Tue, 31 Mar 2020 05:06:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:48150 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730647AbgCaJGj (ORCPT ); Tue, 31 Mar 2020 05:06:39 -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 57567208E0; Tue, 31 Mar 2020 09:06:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585645598; bh=4QJEQOKZynqx+5osBx7WAdPupqu0Gs4IifljY4vX/rU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GnXFLPzZ/FxAU9orWWV7FaA97bvc/HbU+E0K+8mZzgRGRmVcgZCBXsElFd5CHKVjE dvzUgxLq2TjNgV5SenjJ93h3iM4MBL+lYyD6a/12S6wqwjs74VpgFFQaJeSsd4US03 5/CX/qBmU2TCtefMKeQp2LrMIs8wAABYBKP/Y9dI= 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 5.5 102/170] scripts/dtc: Remove redundant YYLOC global declaration Date: Tue, 31 Mar 2020 10:58:36 +0200 Message-Id: <20200331085435.053942582@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200331085423.990189598@linuxfoundation.org> References: <20200331085423.990189598@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 @@ -23,7 +23,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() */