Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp856066pja; Wed, 1 Apr 2020 09:55:23 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsX990mOgkJIUsusaI1NPRLJ/XpUl1VVEdO6c3CCIIwRxDRlHKuC2di7qTMVaN6OYkL1CF7 X-Received: by 2002:a05:6830:1dfa:: with SMTP id b26mr16802015otj.13.1585760123119; Wed, 01 Apr 2020 09:55:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585760123; cv=none; d=google.com; s=arc-20160816; b=iIQJqiSESAxIUF3JTu2d9233BVFEoNeZnkKyKfKtUaOFyCzQzmXeYqS2XD06MSohD1 BuL+UYTUgiyOz9wOMX07jMfNbbX244XE7Bg2+Sv1XPP6Spr22vr7UoMkgeChEJvfcw+M 7IZmvmEyhut60Lw+SsWc18EX5iluo5dBeKvMERcoqmtBGtwo46h/JOWD0daPKqqkUDEI oqufH/zIG3/ZBLBvsHbfk7gS84ZpQb0n41l+nww9mhaSaZHEaLMyepSc8rW/4Hfj26ub 2XAdj/4oIuWYHEzIXdY4feGGyPT15zhqvcQHuUbqJVg4gF4rRn8TEWue/be24INGN6Jg FrZg== 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=FxJGwuG3ZOvmyCGrMQxsG0p/UJnlS/Hzod2y3MPu631ObuwOjxrO7J5E+6dRO712fj 5ox2V3C/7f9GcQf/Kfg16JrlTKk1FKKvztdXkqX40S/EWiog1EonGKk1IzNRagvU/2Gh QoJmrrQzD7YZsdNE9f7OxwBftKEFA896zuLF5DGD5XAFPCIpV9CD1ywwPs5BSfPXk7A5 L/W6+aojQTaOnQgIlFFOa1N5P3vgYs5CeoCgzQJz9BJ+1454KPQXxGV9m+z5u/dX+ek/ dC+m0kjDtIo9ri4gtTbWwtwn9m9GGzYpUD2bZiuDf4alAkV1abKT/5annSS3xmIDQlj+ bGLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eBBhlmJu; 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 x136si1088990oif.122.2020.04.01.09.55.10; Wed, 01 Apr 2020 09:55:23 -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=eBBhlmJu; 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 S2387716AbgDAQxa (ORCPT + 99 others); Wed, 1 Apr 2020 12:53:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:58584 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733215AbgDAQcM (ORCPT ); Wed, 1 Apr 2020 12:32:12 -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 CEC5E2063A; Wed, 1 Apr 2020 16:32:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585758732; bh=/sxCgI7m/KNwNNLDpk1oZ+muSRGWzY76oNLMuJCpNmA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eBBhlmJuLbFJYwU3rgwuD49DB1vM58veG2SbhcSGytD0zgZ8x8G0NKUIz9Cacxt0S U56Hi09JRSoz5kFNk8lz0w9+j2XfeVxN3K6C3j7DY6Ap4KOQeYjxczhIkdiYYdrLHt 8w2OQCiuhxlLH1M0OPtXQXMLHFfdedQPuTF+8P1Q= 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.4 57/91] scripts/dtc: Remove redundant YYLOC global declaration Date: Wed, 1 Apr 2020 18:17:53 +0200 Message-Id: <20200401161533.003207349@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200401161512.917494101@linuxfoundation.org> References: <20200401161512.917494101@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() */