Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5608078imu; Mon, 26 Nov 2018 02:56:55 -0800 (PST) X-Google-Smtp-Source: AJdET5fByIRX7X/wb8NlXcXuzdn91FfNwbplm0jlMs05JKAKjW02HXypihAU8hRhFk7zwWhweZ92 X-Received: by 2002:a62:42d4:: with SMTP id h81mr27196066pfd.259.1543229815105; Mon, 26 Nov 2018 02:56:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543229815; cv=none; d=google.com; s=arc-20160816; b=Zl7woMc0ueZi2v4VUGX7/3cwjAW6x6KsuLoYY5G9pWKdGS13ZQP4cGVOL5BOn07Tv3 ffQK0XgpQCQlcwd9lDOuGEu4DF9eWk0tp2Km0RDI+pLAQjlDT83Hpv27l1Ryg4amqyL/ 1kd8MiRBcsl7C782RX57Fec2L34FweWE1XGh1EDz+64AZ/FMLrLo+8nfK+9mNAKX8ZJW q6nr30JK3ad9aE+f/vkzUV03Pq+PrYea5Rc4ol86AsPeCxwClMsTSBW8Vfy1U815l2hG e3O/KuSHb+HcTuIY3QS8tI7dcrGvWaN6lfSZuYtKcP3x5kPyz8FFNacv+IsQaDHUw9c4 OhXA== 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=awna2QstpCNGdzXwvLmmIFrSF/qbhhIwf+f4W1dKB4c=; b=h26eqEy2cugTP00yRP5+93oxF++Vq/mJpDBejkGB1xPBUmNkaSCqDk9W75jNYybbJY w2hfq+oXrym3xsqnYRnQLe7y3eTsTnPCzZeurtjeRUswk1WoRCOodzkoooSoQhk2acAO 8wRFRusYUfETqYPmYcH04lkQsvmRiCVB4dAZEggFCuD6q+J+tVo+nYLfMavrd8RJYd2i 8dZrexzq1uuEpfQuQ20VnA9F9yKwfqW29eVPV9K0a6x1B1gVu24IuvGOa7Jz2oSPyBfo x5S1l7hnhzYLhGwTrJatA1SIKv05OVNgcsbGokWxAnMwkL+n0bFLAPChzjJc+jTP0zJ5 zewA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=t5B+YfOV; 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 g7-v6si31286399plp.130.2018.11.26.02.56.40; Mon, 26 Nov 2018 02:56:55 -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=t5B+YfOV; 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 S1727866AbeKZVtB (ORCPT + 99 others); Mon, 26 Nov 2018 16:49:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:57816 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726872AbeKZVtB (ORCPT ); Mon, 26 Nov 2018 16:49:01 -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 004302089F; Mon, 26 Nov 2018 10:55:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543229717; bh=f4DlPEs0jyd99gZkIHJpwacyGxY/o7lO1slSg7pmmnk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t5B+YfOV/tehANJER+7X/ICdT63U5dNb9YpW5ZpbgI88JHO5iDO82alt1F+d54ubG dPCG5EsQ8Q18hJIC2kk/qTpsUoI1nEGD1JbhkdyEJzqJe9Ri4HDmKn5UTbBCa/gQY8 MSyG5W2ziUethPvahK13GerZZVeIJi4D7b1zQcWU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masahiro Yamada , Matthias Kaehlcke , Nathan Chancellor Subject: [PATCH 4.4 09/70] kbuild: consolidate redundant sed script ASM offset generation Date: Mon, 26 Nov 2018 11:50:24 +0100 Message-Id: <20181126105047.796897385@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181126105046.722096341@linuxfoundation.org> References: <20181126105046.722096341@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.4-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: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- scripts/Makefile.lib | 1 - 1 file changed, 1 deletion(-) --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -395,7 +395,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