Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp109002imu; Wed, 21 Nov 2018 16:18:31 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xo/wt799SfUJnt7MEdXqN796paUwlhu1VujfgSFoTphXo3oSZj9mlE5GGtdJ+GZMX3+RLH X-Received: by 2002:a17:902:29ab:: with SMTP id h40mr8912580plb.238.1542845911160; Wed, 21 Nov 2018 16:18:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542845911; cv=none; d=google.com; s=arc-20160816; b=NPgLtzeaFm5joXSd8SDpgIjt2qco5h6Uc/A7ySvSqS6WNNI9fFKk53ZEJDfv8330rH 6HuvGeOTv3mXU4QnKwn1lb3h5XpUzj8BjgltFY9l21fKp8WQALiG/PaaDK/NhXAFe0i5 cFVMSjC5qrNov8fnMu89wm5i3mWaX5FAcXxUgIKuq9C6Ied1vDojyRtuJLIOtOQvMfki oQuE/fCWKEWRtAs2G+oTkVg5d2WkdHjx1m7Pn7NqlzB28xz+UBQKSqlRhtEsrQKHwaUQ Ki+E/nKIaypMzPSnL3Za96hy2kcgfSFMd/o5F36gIZ+BZT8QpMZi6T2J4LS+8v679Stf 5Upw== 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=+2o5IaAiJa6/4x+YqMXPl2pvJbca3YXxhh79UI/HQUA=; b=K2Vryr4Sr2hmk/ehtmvS9HlfQcEY1jg+pH5GGzjtUdp2d8wlHexZPD4qeODsaMgCcb B0GQ5IZ7+XenQPpk1ems9WiNkBYtPKK/UQYSdhy8MOlD+aBnRfrFJ8dHgG29DKkuMUtL U2VqPwOVoOBjdJ10E8NbIx10tcKC095RSWWtyh1vyV2UpISNhIMZXRRFwIyymYDM6H6E 0+GEiM8F/6shjlgPrHvsmEnMPGIPkkhC9KOQl3bDfFyk/5UUSJu3Vhg0znbGA0tGiygi gB+2p1TbytSmrZDUjvGCg5kW7ZXnWk5RNVSIup0vePsSEr668t1G1HECyEiagHYPfUeE GmqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WR3A74i7; 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 59si1736177plf.18.2018.11.21.16.18.07; Wed, 21 Nov 2018 16:18:31 -0800 (PST) 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=WR3A74i7; 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 S2388566AbeKVFp1 (ORCPT + 99 others); Thu, 22 Nov 2018 00:45:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:40288 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729105AbeKVFp0 (ORCPT ); Thu, 22 Nov 2018 00:45:26 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 87A59214D9; Wed, 21 Nov 2018 19:09:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542827394; bh=2Zq2g5qwHvu7ISe7gZuMx5yRu18dM/8PLnrapCGZ6bQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WR3A74i7rN8sS0uLzGM3D+SBzhY4EW5yOwb73KxlRXrAT5hyAxoIuvU6X9JOZITUm wuKQvddcR7kTaScFnau4hT+PZ4ocadbcyT33WiuLn3VVP6qXPnrx5ofj2y/GPRr09G q8M8uNiswCwZGxjzQK1HncMh++DxrR4b4UP3VoDM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masahiro Yamada , Matthias Kaehlcke , Nick Desaulniers Subject: [PATCH 4.9 13/59] kbuild: consolidate redundant sed script ASM offset generation Date: Wed, 21 Nov 2018 20:06:28 +0100 Message-Id: <20181121183508.779590225@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181121183508.262873520@linuxfoundation.org> References: <20181121183508.262873520@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Masahiro Yamada commit 7dd47b95b0f54f2057d40af6e66d477e3fe95d13 upstream. This part ended up in redundant code after touched by multiple people. [1] Commit 3234282f33b2 ("x86, asm: Fix CFI macro invocations to deal with shortcomings in gas") added parentheses for defined expressions to support old gas for x86. [2] Commit a22dcdb0032c ("x86, asm: Fix ancient-GAS workaround") split the pattern into two to avoid parentheses for non-numeric expressions. [3] Commit 95a2f6f72d37 ("Partially revert patch that encloses asm-offset.h numbers in brackets") removed parentheses from numeric expressions as well because parentheses in MN10300 assembly have a special meaning (pointer access). Apparently, there is a conflict between [1] and [3]. After all, [3] took precedence, and a long time has passed since then. Now, merge the two patterns again because the first one is covered by the other. Signed-off-by: Masahiro Yamada Reviewed-by: Matthias Kaehlcke Signed-off-by: Nick Desaulniers Signed-off-by: Greg Kroah-Hartman --- scripts/Makefile.lib | 1 - 1 file changed, 1 deletion(-) --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -415,7 +415,6 @@ cmd_xzmisc = (cat $(filter-out FORCE,$^) # Default sed regexp - multiline due to syntax constraints define sed-offsets "/^->/{s:->#\(.*\):/* \1 */:; \ - s:^->\([^ ]*\) [\$$#]*\([-0-9]*\) \(.*\):#define \1 \2 /* \3 */:; \ s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \ s:->::; p;}" endef