Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4418630pxv; Tue, 27 Jul 2021 07:00:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcusVRAVsoh9QdVuP46bkiq3tdrfxgfcMkhStEtD9JjYjHTj9Uj/Na2i+sjnOc/f64sjN2 X-Received: by 2002:a5d:818b:: with SMTP id u11mr2044258ion.43.1627394415839; Tue, 27 Jul 2021 07:00:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627394415; cv=none; d=google.com; s=arc-20160816; b=sMIVJjSqNJpECPtpivnzaZeS0A1PUP5VTt+1nEw7MTHW5KB4EmQjuVJDc/5Hn3N+9M 5Qj2DX2nz/AqHlFzaVlLoDGKhP2LOTBrQb6PGuIzQUKfW4h3OGUIzv8R27Fx+CTaF/A7 QMuoGgdqQM0Gm6QOcACUbWO6jtNlZz8oTpXIeEj5SA+NR5RzPQRt5ox76iaE+eYv84Rl XD4fz94Au6ORDUx4mZX7RVMzxoksNzhVvUkHBdUh/+YktysKr/uM0nucK4gUjmACGZbI z1T7DCzzu7pgpMQdEtx56dlQx3/5H6u/yTZhtix91wLtiNQ+1QuX6QHSXYJ1g6hHFSSN 1rRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=gg1C4gqvqs2JgwQ6TeXXPX5VgOeo/OUyBM1VR7CtlgU=; b=gEJ0loQmUJJW5NOTg7jFUoKYRa6egDrokhwochQ+FQhSsegUQ+CnKJciSZpDRKPE4X yImsxq5Bg2leEMv8dxnLM5+NP2OY7rOTpanIj4ujo0aNI+U8mPtsFaltr+QcdyrosTgH G4nEnSCdcKZuDGKvLQpUR7CaEoXEfVW5voS2/Q8hhKyf0OpqQxdkywExupv4eETBZSZ+ d+wv8pYJSHMF+TI9Pxh2uXCTNTf9y/y5TaXgj13eOc59CBCIYBwUASRjBxD1xdc8ZSwz 0uXdJeAlCS3hv1oWDHaPwegBePh7fY6sGFqnHQZJyLLxSNWwmYH7nQf9OLsni3G/vcpd 5beQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=I8JWmFQV; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x6si3106264ilj.25.2021.07.27.07.00.04; Tue, 27 Jul 2021 07:00:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=I8JWmFQV; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236712AbhG0N7C (ORCPT + 99 others); Tue, 27 Jul 2021 09:59:02 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:51426 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231223AbhG0N6s (ORCPT ); Tue, 27 Jul 2021 09:58:48 -0400 Date: Tue, 27 Jul 2021 13:58:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1627394326; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gg1C4gqvqs2JgwQ6TeXXPX5VgOeo/OUyBM1VR7CtlgU=; b=I8JWmFQVSozWfFy1RH8jAgjvhrxwgmjLRiw2XyqU46PP9GvAhxL6DB3G303YVv+X40EVfl AHzLbz02VHnrE4i19fHR8MwDjw5gbrjsrPo3LgpQ/CPYWEZq36nno3omGwixztbW3YT84g GlFHRGf2TQWKc49a5jMIJ3QjjDaAxxJY8bsepFROOenxtA1ca6D38Kz4d0pG3rMfpZXJ1v 8K5Lo1ck71tN5P01q3jPYTHWeaLMigrWSndZTb6yulZRuKj7KoLPmFFGTGv7KssjgOGHWe 6KYQhgNeb3nWQPMfliXP8N/KYiZdT91aL+xfunvgF90UUP5wuddOhQ1tLYAgig== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1627394326; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gg1C4gqvqs2JgwQ6TeXXPX5VgOeo/OUyBM1VR7CtlgU=; b=OqcbEg2PmCdEfopmEwwoos0W6PuEtoVvg2Hsg8OHTydPdRjJw/dkkjwM2KQnm8Qgu0zCX8 Zy2to2RZNPbZM7Ag== From: "tip-bot2 for Mark Rutland" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/core] locking/atomic: remove ARCH_ATOMIC remanants Cc: Mark Rutland , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20210713105253.7615-3-mark.rutland@arm.com> References: <20210713105253.7615-3-mark.rutland@arm.com> MIME-Version: 1.0 Message-ID: <162739432590.395.3881700007508069068.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the locking/core branch of tip: Commit-ID: f3e615b4db1fb7034f1d76dc307b77cc848f040e Gitweb: https://git.kernel.org/tip/f3e615b4db1fb7034f1d76dc307b77cc848f040e Author: Mark Rutland AuthorDate: Tue, 13 Jul 2021 11:52:50 +01:00 Committer: Peter Zijlstra CommitterDate: Fri, 16 Jul 2021 18:46:44 +02:00 locking/atomic: remove ARCH_ATOMIC remanants Now that gen-atomic-fallback.sh is only used to generate the arch_* fallbacks, we don't need to also generate the non-arch_* forms, and can removethe infrastructure this needed. There is no change to any of the generated headers as a result of this patch. Signed-off-by: Mark Rutland Signed-off-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/20210713105253.7615-3-mark.rutland@arm.com --- scripts/atomic/fallbacks/acquire | 4 +- scripts/atomic/fallbacks/add_negative | 6 +- scripts/atomic/fallbacks/add_unless | 6 +- scripts/atomic/fallbacks/andnot | 4 +- scripts/atomic/fallbacks/dec | 4 +- scripts/atomic/fallbacks/dec_and_test | 6 +- scripts/atomic/fallbacks/dec_if_positive | 6 +- scripts/atomic/fallbacks/dec_unless_positive | 6 +- scripts/atomic/fallbacks/fence | 4 +- scripts/atomic/fallbacks/fetch_add_unless | 8 +- scripts/atomic/fallbacks/inc | 4 +- scripts/atomic/fallbacks/inc_and_test | 6 +- scripts/atomic/fallbacks/inc_not_zero | 6 +- scripts/atomic/fallbacks/inc_unless_negative | 6 +- scripts/atomic/fallbacks/read_acquire | 2 +- scripts/atomic/fallbacks/release | 4 +- scripts/atomic/fallbacks/set_release | 2 +- scripts/atomic/fallbacks/sub_and_test | 6 +- scripts/atomic/fallbacks/try_cmpxchg | 4 +- scripts/atomic/gen-atomic-fallback.sh | 66 ++++++------------- scripts/atomic/gen-atomics.sh | 2 +- 21 files changed, 71 insertions(+), 91 deletions(-) diff --git a/scripts/atomic/fallbacks/acquire b/scripts/atomic/fallbacks/acquire index 59c0052..ef76408 100755 --- a/scripts/atomic/fallbacks/acquire +++ b/scripts/atomic/fallbacks/acquire @@ -1,8 +1,8 @@ cat < 0)) return false; - } while (!${arch}${atomic}_try_cmpxchg(v, &c, c - 1)); + } while (!arch_${atomic}_try_cmpxchg(v, &c, c - 1)); return true; } diff --git a/scripts/atomic/fallbacks/fence b/scripts/atomic/fallbacks/fence index 3764fc8..07757d8 100755 --- a/scripts/atomic/fallbacks/fence +++ b/scripts/atomic/fallbacks/fence @@ -1,10 +1,10 @@ cat <counter); } diff --git a/scripts/atomic/fallbacks/release b/scripts/atomic/fallbacks/release index f8906d5..b46feb5 100755 --- a/scripts/atomic/fallbacks/release +++ b/scripts/atomic/fallbacks/release @@ -1,8 +1,8 @@ cat <counter, i); } diff --git a/scripts/atomic/fallbacks/sub_and_test b/scripts/atomic/fallbacks/sub_and_test index c580f4c..260f373 100755 --- a/scripts/atomic/fallbacks/sub_and_test +++ b/scripts/atomic/fallbacks/sub_and_test @@ -1,6 +1,6 @@ cat < ${LINUXDIR}/include/${header}