Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp7552714imm; Thu, 28 Jun 2018 05:48:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ/EZY9NkPfgdwcVkUWSxQSe3t4tb7/Tj/64W9Tnsd4UFmX8yZIPiYD87scncJKuEh1RG0S X-Received: by 2002:a17:902:5a1:: with SMTP id f30-v6mr10514580plf.167.1530190081408; Thu, 28 Jun 2018 05:48:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530190081; cv=none; d=google.com; s=arc-20160816; b=mFJqB3M+OQ3/wWDO1QARiRAP/drAgnzvEIgljUF1r0RF/nXYKgOV7mS8eMsUEDnf5h hLGOU9xLgVyHakIJaBDJQJ0zgZ2WA/uvzJIACVzV5dJ51YFOfwo/+4MB5TDCcAP09x4K AzkXl6mqkCMl78SfRH47s2iHZJizNaqr1PAMV+JfOHfa7b0oo/Wj2UcMkFOCNFAvlp4l 4ZRrqcaan/a6HFHc6W/anWC4RIYXMkcI/1fNV+/kJgvPVfJGKF329lFYkSDWpwQ6dO0B D4bUuj9YQQ6Ht6Jno1FZet6fHJ82dRvYR707SeLxWuTryzDnHwdzd+wo0IXTDtFs5kS1 EsmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=OqhNMsb50bqNFjqShDJDKY8KWLJf3D2g6D7c+genLqQ=; b=edeaXvVZd0yJS5lZyUKoKyVqtxoMJuUJ9fAjTlxaNRkirc0eKXdytrFpTxGF/WTkjQ CIeKwuZpMzJgf1B2Wr3c1pWxLlTR/uWD4n3x99jXrIXgRL5uztcHTPU+wKJRdCeXW/Im XIjbx8NE12hAGaWRZhdLU4sQYJZ2Jse3P2UGQF/jdpG2B4EBmJJaaw7ievqDW3TCWGTC J1ef1kZEKQhaGro59+S6P0mG7cAe4KHq33Ce7134DOxNMsGiOK+gZ8rs1kMB8IdTUWS3 +N8UQ0mo1rrFs20qUhsYHQSpy8bXaKROQhn9cfh5dEdLvN3VvPERXHynFD/F/oxghvsS gTqw== ARC-Authentication-Results: i=1; mx.google.com; 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 t189-v6si6258153pgb.440.2018.06.28.05.47.47; Thu, 28 Jun 2018 05:48:01 -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; 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 S1753770AbeF1MeC (ORCPT + 99 others); Thu, 28 Jun 2018 08:34:02 -0400 Received: from foss.arm.com ([217.140.101.70]:46694 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753714AbeF1MeA (ORCPT ); Thu, 28 Jun 2018 08:34:00 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F241C15AD; Thu, 28 Jun 2018 05:33:59 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id BE9133F5C0; Thu, 28 Jun 2018 05:33:57 -0700 (PDT) From: Mark Rutland To: linux-kernel@vger.kernel.org Cc: akiyks@gmail.com, andrea.parri@amarulasolutions.com, boqun.feng@gmail.com, dhowells@redhat.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, mark.rutland@arm.com, npiggin@gmail.com, paulmck@linux.vnet.ibm.com, peterz@infradead.org, stern@rowland.harvard.edu, will.deacon@arm.com Subject: [PATCH 2/2] tools/memory-model: remove ACCESS_ONCE() from model Date: Thu, 28 Jun 2018 13:33:47 +0100 Message-Id: <20180628123347.52963-3-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180628123347.52963-1-mark.rutland@arm.com> References: <20180628123347.52963-1-mark.rutland@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit: b899a850431e2dd0 ("compiler.h: Remove ACCESS_ONCE()") ... there has been no definition of ACCESS_ONCE() in the kernel tree, and it has been necessary to use READ_ONCE() or WRITE_ONCE() instead. Correspondingly, let's remove ACCESS_ONCE() from the kernel memory model. Signed-off-by: Mark Rutland Cc: Alan Stern Cc: Andrea Parri Cc: Will Deacon Cc: Peter Zijlstra Cc: Boqun Feng Cc: Nicholas Piggin Cc: David Howells Cc: Jade Alglave Cc: Luc Maranget Cc: Paul E. McKenney Cc: Akira Yokosawa --- tools/memory-model/linux-kernel.bell | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/memory-model/linux-kernel.bell b/tools/memory-model/linux-kernel.bell index 64f5740e0e75..b84fb2f67109 100644 --- a/tools/memory-model/linux-kernel.bell +++ b/tools/memory-model/linux-kernel.bell @@ -13,7 +13,7 @@ "Linux-kernel memory consistency model" -enum Accesses = 'once (*READ_ONCE,WRITE_ONCE,ACCESS_ONCE*) || +enum Accesses = 'once (*READ_ONCE,WRITE_ONCE*) || 'release (*smp_store_release*) || 'acquire (*smp_load_acquire*) || 'noreturn (* R of non-return RMW *) -- 2.11.0