From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hans-Christian Egtvedt Subject: Re: [PATCH] atomic_read: Use ACCESS_ONCE() instead of cast to volatile Date: Tue, 23 Sep 2014 21:43:27 +0200 Message-ID: <20140923194327.GA5940@samfundet.no> 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 , 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 Around Tue 23 Sep 2014 10:29:50 -0400 or thereabout, 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 +- For the AVR32 related part. Acked-by: Hans-Christian Egtvedt > arch/cris/include/asm/atomic.h | 2 +- > arch/frv/include/asm/atomic.h | 2 +- > arch/ia64/include/asm/atomic.h | 4 ++-- > arch/m32r/include/asm/atomic.h | 2 +- > arch/m68k/include/asm/atomic.h | 2 +- > arch/mips/include/asm/atomic.h | 4 ++-- > arch/parisc/include/asm/atomic.h | 4 ++-- > arch/sh/include/asm/atomic.h | 2 +- > arch/sparc/include/asm/atomic_32.h | 2 +- > arch/sparc/include/asm/atomic_64.h | 4 ++-- > arch/x86/include/asm/atomic.h | 2 +- > arch/x86/include/asm/atomic64_64.h | 2 +- > arch/xtensa/include/asm/atomic.h | 2 +- > include/asm-generic/atomic.h | 2 +- > 18 files changed, 24 insertions(+), 24 deletions(-) -- BR, HcE From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 23 Sep 2014 21:47:14 +0200 (CEST) Received: from cassarossa.samfundet.no ([193.35.52.29]:53905 "EHLO cassarossa.samfundet.no" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27009414AbaIWTrLvpZzQ (ORCPT ); Tue, 23 Sep 2014 21:47:11 +0200 Received: from egtvedt by cassarossa.samfundet.no with local (Exim 4.80) (envelope-from ) id 1XWVzj-0007wo-Um; Tue, 23 Sep 2014 21:43:27 +0200 Date: Tue, 23 Sep 2014 21:43:27 +0200 From: Hans-Christian Egtvedt To: Pranith Kumar Cc: Richard Henderson , Ivan Kokshaysky , Matt Turner , Russell King , Catalin Marinas , Will Deacon , Haavard Skinnemoen , 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" , "open list:CRIS PORT" , "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: <20140923194327.GA5940@samfundet.no> 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.21 (2010-09-15) 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: 42750 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: egtvedt@samfundet.no 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 Around Tue 23 Sep 2014 10:29:50 -0400 or thereabout, 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 +- For the AVR32 related part. Acked-by: Hans-Christian Egtvedt > arch/cris/include/asm/atomic.h | 2 +- > arch/frv/include/asm/atomic.h | 2 +- > arch/ia64/include/asm/atomic.h | 4 ++-- > arch/m32r/include/asm/atomic.h | 2 +- > arch/m68k/include/asm/atomic.h | 2 +- > arch/mips/include/asm/atomic.h | 4 ++-- > arch/parisc/include/asm/atomic.h | 4 ++-- > arch/sh/include/asm/atomic.h | 2 +- > arch/sparc/include/asm/atomic_32.h | 2 +- > arch/sparc/include/asm/atomic_64.h | 4 ++-- > arch/x86/include/asm/atomic.h | 2 +- > arch/x86/include/asm/atomic64_64.h | 2 +- > arch/xtensa/include/asm/atomic.h | 2 +- > include/asm-generic/atomic.h | 2 +- > 18 files changed, 24 insertions(+), 24 deletions(-) -- BR, HcE From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hans-Christian Egtvedt Subject: Re: [PATCH] atomic_read: Use ACCESS_ONCE() instead of cast to volatile Date: Tue, 23 Sep 2014 21:43:27 +0200 Message-ID: <20140923194327.GA5940@samfundet.no> References: <1411482607-20948-1-git-send-email-bobby.prani@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Richard Henderson , Ivan Kokshaysky , Matt Turner , Russell King , Catalin Marinas , Will Deacon , Haavard Skinnemoen , 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 Moln To: Pranith Kumar Return-path: In-Reply-To: <1411482607-20948-1-git-send-email-bobby.prani@gmail.com> Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips List-subscribe: List-owner: List-post: List-archive: Around Tue 23 Sep 2014 10:29:50 -0400 or thereabout, 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 +- For the AVR32 related part. Acked-by: Hans-Christian Egtvedt > arch/cris/include/asm/atomic.h | 2 +- > arch/frv/include/asm/atomic.h | 2 +- > arch/ia64/include/asm/atomic.h | 4 ++-- > arch/m32r/include/asm/atomic.h | 2 +- > arch/m68k/include/asm/atomic.h | 2 +- > arch/mips/include/asm/atomic.h | 4 ++-- > arch/parisc/include/asm/atomic.h | 4 ++-- > arch/sh/include/asm/atomic.h | 2 +- > arch/sparc/include/asm/atomic_32.h | 2 +- > arch/sparc/include/asm/atomic_64.h | 4 ++-- > arch/x86/include/asm/atomic.h | 2 +- > arch/x86/include/asm/atomic64_64.h | 2 +- > arch/xtensa/include/asm/atomic.h | 2 +- > include/asm-generic/atomic.h | 2 +- > 18 files changed, 24 insertions(+), 24 deletions(-) -- BR, HcE From mboxrd@z Thu Jan 1 00:00:00 1970 From: egtvedt@samfundet.no (Hans-Christian Egtvedt) Date: Tue, 23 Sep 2014 21:43:27 +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: <20140923194327.GA5940@samfundet.no> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Around Tue 23 Sep 2014 10:29:50 -0400 or thereabout, 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 +- For the AVR32 related part. Acked-by: Hans-Christian Egtvedt > arch/cris/include/asm/atomic.h | 2 +- > arch/frv/include/asm/atomic.h | 2 +- > arch/ia64/include/asm/atomic.h | 4 ++-- > arch/m32r/include/asm/atomic.h | 2 +- > arch/m68k/include/asm/atomic.h | 2 +- > arch/mips/include/asm/atomic.h | 4 ++-- > arch/parisc/include/asm/atomic.h | 4 ++-- > arch/sh/include/asm/atomic.h | 2 +- > arch/sparc/include/asm/atomic_32.h | 2 +- > arch/sparc/include/asm/atomic_64.h | 4 ++-- > arch/x86/include/asm/atomic.h | 2 +- > arch/x86/include/asm/atomic64_64.h | 2 +- > arch/xtensa/include/asm/atomic.h | 2 +- > include/asm-generic/atomic.h | 2 +- > 18 files changed, 24 insertions(+), 24 deletions(-) -- BR, HcE