From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 16 May 2018 08:07:22 +0200 From: Christoph Hellwig To: Bart Van Assche Cc: Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Catalin Marinas , Will Deacon , Tony Luck , Fenghua Yu , Geert Uytterhoeven , "James E.J. Bottomley" , Helge Deller , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Martin Schwidefsky , Heiko Carstens , "David S . Miller" , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Chris Zankel , Max Filippov , Arnd Bergmann Subject: Re: [PATCH v9 1/2] arch/*: Add CONFIG_ARCH_HAVE_CMPXCHG64 Message-ID: <20180516060722.GA24855@lst.de> References: <20180515225124.20428-1-bart.vanassche@wdc.com> <20180515225124.20428-5-bart.vanassche@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20180515225124.20428-5-bart.vanassche@wdc.com> List-ID: > +config ARCH_HAVE_CMPXCHG64 > + bool 64-bit architectures must support this as long is 64-bits wide. So this should have a default y if 64BIT which also means you only need to explicitly select in on 32-bit architectures that support 64-bit cmpxchg.