From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesper Nilsson Subject: Re: [PATCH] atomic_read: Use ACCESS_ONCE() instead of cast to volatile Date: Tue, 23 Sep 2014 17:40:16 +0200 Message-ID: <20140923154016.GT18910@axis.com> References: <1411482607-20948-1-git-send-email-bobby.prani@gmail.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <1411482607-20948-1-git-send-email-bobby.prani@gmail.com> Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: List-subscribe: List-owner: List-post: List-archive: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Pranith Kumar Cc: Richard Henderson , Ivan Kokshaysky , Matt Turner , Russell King , Catalin Marinas , Will Deacon , Haavard Skinnemoen , Hans-Christian Egtvedt , Mikael Starvik , Jesper Nilsson , David Howells , Tony Luck , Fenghua Yu , Hirokazu Takata , Geert Uytterhoeven , Ralf Baechle , "James E.J. Bottomley" , Helge Deller , "David S. Miller" , Thomas On Tue, Sep 23, 2014 at 04:29:50PM +0200, Pranith Kumar wrote: > Use the much reader friendly ACCESS_ONCE() instead of the cast to volatile. This > is purely a style change. > > Signed-off-by: Pranith Kumar > --- > arch/alpha/include/asm/atomic.h | 4 ++-- > arch/arm/include/asm/atomic.h | 2 +- > arch/arm64/include/asm/atomic.h | 4 ++-- > arch/avr32/include/asm/atomic.h | 2 +- > arch/cris/include/asm/atomic.h | 2 +- For the CRIS parts: Acked-by: Jesper Nilsson /^JN - Jesper Nilsson -- Jesper Nilsson -- jesper.nilsson@axis.com From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 23 Sep 2014 17:40:35 +0200 (CEST) Received: from bes.se.axis.com ([195.60.68.10]:57857 "EHLO bes.se.axis.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27009616AbaIWPk2xvDnm (ORCPT ); Tue, 23 Sep 2014 17:40:28 +0200 Received: from localhost (localhost [127.0.0.1]) by bes.se.axis.com (Postfix) with ESMTP id 1EB112E308; Tue, 23 Sep 2014 17:40:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at bes.se.axis.com Received: from bes.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bes.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id DIPnl3fNFDFP; Tue, 23 Sep 2014 17:40:18 +0200 (CEST) Received: from boulder.se.axis.com (boulder.se.axis.com [10.0.2.104]) by bes.se.axis.com (Postfix) with ESMTP id 7B2CA2E2E3; Tue, 23 Sep 2014 17:40:16 +0200 (CEST) Received: from boulder.se.axis.com (localhost [127.0.0.1]) by postfix.imss71 (Postfix) with ESMTP id 60CAACE7; Tue, 23 Sep 2014 17:40:16 +0200 (CEST) Received: from seth.se.axis.com (seth.se.axis.com [10.0.2.172]) by boulder.se.axis.com (Postfix) with ESMTP id 486105DA; Tue, 23 Sep 2014 17:40:16 +0200 (CEST) Received: from lnxjespern2.se.axis.com (lnxjespern2.se.axis.com [10.88.4.6]) by seth.se.axis.com (Postfix) with ESMTP id 3EE0B3E048; Tue, 23 Sep 2014 17:40:16 +0200 (CEST) Received: by lnxjespern2.se.axis.com (Postfix, from userid 363) id 3AF8DC069; Tue, 23 Sep 2014 17:40:16 +0200 (CEST) Date: Tue, 23 Sep 2014 17:40:16 +0200 From: Jesper Nilsson To: Pranith Kumar Cc: Richard Henderson , Ivan Kokshaysky , Matt Turner , Russell King , Catalin Marinas , Will Deacon , Haavard Skinnemoen , Hans-Christian Egtvedt , Mikael Starvik , Jesper Nilsson , David Howells , Tony Luck , Fenghua Yu , Hirokazu Takata , Geert Uytterhoeven , Ralf Baechle , "James E.J. Bottomley" , Helge Deller , "David S. Miller" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "maintainer:X86 ARCHITECTURE..." , Chris Zankel , Max Filippov , Arnd Bergmann , Peter Zijlstra , "Paul E. McKenney" , Chen Gang , Victor Kamensky , Bjorn Helgaas , "Maciej W. Rozycki" , Sam Ravnborg , "open list:ALPHA PORT" , open list , "moderated list:ARM PORT" , linux-cris-kernel , "open list:IA64 (Itanium) PL..." , "moderated list:M32R ARCHITECTURE" , "open list:M32R ARCHITECTURE" , "open list:M68K ARCHITECTURE" , "open list:MIPS" , "open list:PARISC ARCHITECTURE" , "open list:SUPERH" , "open list:SPARC + UltraSPAR..." , "open list:TENSILICA XTENSA..." , "open list:GENERIC INCLUDE/A..." Subject: Re: [PATCH] atomic_read: Use ACCESS_ONCE() instead of cast to volatile Message-ID: <20140923154016.GT18910@axis.com> References: <1411482607-20948-1-git-send-email-bobby.prani@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1411482607-20948-1-git-send-email-bobby.prani@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 42744 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: jesper.nilsson@axis.com Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips On Tue, Sep 23, 2014 at 04:29:50PM +0200, Pranith Kumar wrote: > Use the much reader friendly ACCESS_ONCE() instead of the cast to volatile. This > is purely a style change. > > Signed-off-by: Pranith Kumar > --- > arch/alpha/include/asm/atomic.h | 4 ++-- > arch/arm/include/asm/atomic.h | 2 +- > arch/arm64/include/asm/atomic.h | 4 ++-- > arch/avr32/include/asm/atomic.h | 2 +- > arch/cris/include/asm/atomic.h | 2 +- For the CRIS parts: Acked-by: Jesper Nilsson /^JN - Jesper Nilsson -- Jesper Nilsson -- jesper.nilsson@axis.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: jesper.nilsson@axis.com (Jesper Nilsson) Date: Tue, 23 Sep 2014 17:40:16 +0200 Subject: [PATCH] atomic_read: Use ACCESS_ONCE() instead of cast to volatile In-Reply-To: <1411482607-20948-1-git-send-email-bobby.prani@gmail.com> References: <1411482607-20948-1-git-send-email-bobby.prani@gmail.com> Message-ID: <20140923154016.GT18910@axis.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Sep 23, 2014 at 04:29:50PM +0200, Pranith Kumar wrote: > Use the much reader friendly ACCESS_ONCE() instead of the cast to volatile. This > is purely a style change. > > Signed-off-by: Pranith Kumar > --- > arch/alpha/include/asm/atomic.h | 4 ++-- > arch/arm/include/asm/atomic.h | 2 +- > arch/arm64/include/asm/atomic.h | 4 ++-- > arch/avr32/include/asm/atomic.h | 2 +- > arch/cris/include/asm/atomic.h | 2 +- For the CRIS parts: Acked-by: Jesper Nilsson /^JN - Jesper Nilsson -- Jesper Nilsson -- jesper.nilsson at axis.com