Received: by 10.192.165.156 with SMTP id m28csp1893305imm; Thu, 12 Apr 2018 05:27:57 -0700 (PDT) X-Google-Smtp-Source: AIpwx48lR25MTvJAMR/jWRaaJzz79BC/cydTSwECWbwbbXEAccBZiSjFW6YDkJ68gD5sCm2ze1cs X-Received: by 2002:a17:902:6d0f:: with SMTP id s15-v6mr816800plk.241.1523536077106; Thu, 12 Apr 2018 05:27:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523536077; cv=none; d=google.com; s=arc-20160816; b=FCEJM/XxiFxh4mRmMZ67o1vQVv72ljGMRwag8xluMhrAYkmFMeMgMqIzh+cb6SSxiw q3oFoPqf/X14nZMBlhzt2dkR0o3GEPFA8/VvCBvnJrZtvWgDY+vF99IMLeE5OPIuDYmC kWrUeIeD0eTFq6WEuJ/BvL53sGk8NJxOHX8hu8WhMzOvgeo5+FrP1jDLHcLwLWLLyzaP z2P+WArJyU6SogvSpBSSrkiILd/JlsuYtDGY6IeRh1DUZcfEDVjiwnxkEJhPFEqxp8eT KgoTP8atrlgviK0YfAyaV8MHlxan54gXBi/FtNCai0vhCWq84O7moybyR1MFEZxwY/Wf CUeg== 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:dkim-signature:arc-authentication-results; bh=CT19KnDB4fU9CUndJqWoaCpbVAsKk66zJJO19UDQchY=; b=lvjfHv+1cRMf8QkhTjLUTGebf4xcLv4y0BblGTeeZr25wIHwpwBnVCKzgv8qJtPXbI I3/XcXMTg1kK+wC/3Gwk28k0WF4Uim6C4JRy/LurQNd9wV8SjF/Ggde23c/lS2vcXUa7 Qrrho+QAKgpIOkgAmaWNU5cmn0imNHXalhuzB8eAqi4Im5vi5NcP4QzUmUlgEVUFGRUb P4d/8YtkLnFzll5yE6atJnWmVFbl2MswR3VF7E9OlyAPSSefj8AZJGE9bRBsvZ+t7zp4 M2K1eimBDo72fZhhUWftTp5FKcnCZtZgn3UrdyOQmrSrTMrl+m+3nA6s8E+7Enaac4S7 UQDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MwUlFa3j; 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 bg11-v6si3300399plb.171.2018.04.12.05.27.20; Thu, 12 Apr 2018 05:27:57 -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=@amarulasolutions.com header.s=google header.b=MwUlFa3j; 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 S1752944AbeDLMX7 (ORCPT + 99 others); Thu, 12 Apr 2018 08:23:59 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:42110 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752923AbeDLMX4 (ORCPT ); Thu, 12 Apr 2018 08:23:56 -0400 Received: by mail-wr0-f196.google.com with SMTP id s18so4927948wrg.9 for ; Thu, 12 Apr 2018 05:23:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CT19KnDB4fU9CUndJqWoaCpbVAsKk66zJJO19UDQchY=; b=MwUlFa3j+r40TwIuRmk8u05ZonNT/stJ4X6FbZQozqQrqQ4+RXfFyCEr1VfoPUDM/X vFFLKnnqXQtwvoQgToCrzkXlqsAzp0q1grqfisfDPOlODb3c7WOVzTT3Yp0BBceHOrk1 iVxWhUYQ+RhJnnmyhz6w2eEaEr3PFvYLGQpyY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CT19KnDB4fU9CUndJqWoaCpbVAsKk66zJJO19UDQchY=; b=K2WKrXHQ9WlxsdoJURui9hcU27SSVnsFhuySkseIboFpkSjb50yJTlVKIx+yWtcHWb yxt6eDHNfZJq9+7+dI4IDVMpRBMDxOO1TcbUVBUAbQun/SknHF5FMHvDu6GW3iMcFKYE zzXlr7C0U6ezWbt5BrkwTb8vUWPsd03yxowlK3epO+dM+u/8h0BRUYamzAX31TduwtrQ Lf1J9YQSNLICP8ng7uZaXDqemxG+lsjzRl7g6+uIU+BUrIfoRxhUgYIt72lf7oBdDRCY CJxWIHdW9SlO9ytAzLR9KKnGbIXhP8E7jiRBPTBmGLjBJCQgqb7i57r6/VsXu5R9zZ8k sT9Q== X-Gm-Message-State: ALQs6tBn82WkeeCmUzC3GRXWkx0gwNtkgUoticbjAKKtLx9hXgY9Nt83 NwWZ/zbpQMMxzF6FdwVIdq1SN/cj X-Received: by 10.223.138.148 with SMTP id y20mr625119wry.44.1523535835380; Thu, 12 Apr 2018 05:23:55 -0700 (PDT) Received: from localhost.localdomain ([213.209.242.222]) by smtp.gmail.com with ESMTPSA id 39sm6548870wry.89.2018.04.12.05.23.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Apr 2018 05:23:54 -0700 (PDT) From: Andrea Parri To: linux-kernel@vger.kernel.org Cc: Alan Stern , Will Deacon , Peter Zijlstra , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , "Paul E . McKenney" , Akira Yokosawa , Paolo Bonzini , Andrea Parri Subject: [PATCH 2/2] tools/memory-model: Fix coding style in 'linux-kernel.def' Date: Thu, 12 Apr 2018 14:22:50 +0200 Message-Id: <1523535770-10781-3-git-send-email-andrea.parri@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523535770-10781-1-git-send-email-andrea.parri@amarulasolutions.com> References: <1523535770-10781-1-git-send-email-andrea.parri@amarulasolutions.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes white spaces around semicolons. Signed-off-by: Andrea Parri --- tools/memory-model/linux-kernel.def | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tools/memory-model/linux-kernel.def b/tools/memory-model/linux-kernel.def index acf86f6f360a7..6bd3bc431b3da 100644 --- a/tools/memory-model/linux-kernel.def +++ b/tools/memory-model/linux-kernel.def @@ -17,12 +17,12 @@ rcu_dereference(X) __load{once}(X) smp_store_mb(X,V) { __store{once}(X,V); __fence{mb}; } // Fences -smp_mb() { __fence{mb} ; } -smp_rmb() { __fence{rmb} ; } -smp_wmb() { __fence{wmb} ; } -smp_mb__before_atomic() { __fence{before-atomic} ; } -smp_mb__after_atomic() { __fence{after-atomic} ; } -smp_mb__after_spinlock() { __fence{after-spinlock} ; } +smp_mb() { __fence{mb}; } +smp_rmb() { __fence{rmb}; } +smp_wmb() { __fence{wmb}; } +smp_mb__before_atomic() { __fence{before-atomic}; } +smp_mb__after_atomic() { __fence{after-atomic}; } +smp_mb__after_spinlock() { __fence{after-spinlock}; } // Exchange xchg(X,V) __xchg{mb}(X,V) @@ -35,26 +35,26 @@ cmpxchg_acquire(X,V,W) __cmpxchg{acquire}(X,V,W) cmpxchg_release(X,V,W) __cmpxchg{release}(X,V,W) // Spinlocks -spin_lock(X) { __lock(X) ; } -spin_unlock(X) { __unlock(X) ; } +spin_lock(X) { __lock(X); } +spin_unlock(X) { __unlock(X); } spin_trylock(X) __trylock(X) // RCU rcu_read_lock() { __fence{rcu-lock}; } -rcu_read_unlock() { __fence{rcu-unlock};} +rcu_read_unlock() { __fence{rcu-unlock}; } synchronize_rcu() { __fence{sync-rcu}; } synchronize_rcu_expedited() { __fence{sync-rcu}; } // Atomic atomic_read(X) READ_ONCE(*X) -atomic_set(X,V) { WRITE_ONCE(*X,V) ; } +atomic_set(X,V) { WRITE_ONCE(*X,V); } atomic_read_acquire(X) smp_load_acquire(X) atomic_set_release(X,V) { smp_store_release(X,V); } -atomic_add(V,X) { __atomic_op(X,+,V) ; } -atomic_sub(V,X) { __atomic_op(X,-,V) ; } -atomic_inc(X) { __atomic_op(X,+,1) ; } -atomic_dec(X) { __atomic_op(X,-,1) ; } +atomic_add(V,X) { __atomic_op(X,+,V); } +atomic_sub(V,X) { __atomic_op(X,-,V); } +atomic_inc(X) { __atomic_op(X,+,1); } +atomic_dec(X) { __atomic_op(X,-,1); } atomic_add_return(V,X) __atomic_op_return{mb}(X,+,V) atomic_add_return_relaxed(V,X) __atomic_op_return{once}(X,+,V) -- 2.7.4