From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752443AbbCZSy2 (ORCPT ); Thu, 26 Mar 2015 14:54:28 -0400 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:39142 "EHLO e06smtp11.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751997AbbCZSy1 (ORCPT ); Thu, 26 Mar 2015 14:54:27 -0400 Message-ID: <551455DC.4080604@de.ibm.com> Date: Thu, 26 Mar 2015 19:54:20 +0100 From: Christian Borntraeger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Linus Torvalds CC: Peter Zijlstra , Will Deacon , Stephen Rothwell , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "linux-next@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Davidlohr Bueso , Paul McKenney Subject: Re: linux-next: build warnings after merge of the access_once tree References: <20150326193112.2c87eb39@canb.auug.org.au> <20150326103442.GV21418@twins.programming.kicks-ass.net> <20150326132750.GA2805@arm.com> <20150326142220.GY21418@twins.programming.kicks-ass.net> <551440C5.8040104@de.ibm.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15032618-0041-0000-0000-000003DDE7AE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 26.03.2015 um 18:52 schrieb Linus Torvalds: > On Thu, Mar 26, 2015 at 10:24 AM, Christian Borntraeger > wrote: >> >> Oh I just added that check back then because some guy named >> Linus suggested something like that ;-) > > Yes, my bad. > > In my defense, that was when we were talking about ACCESS_ONCE() > causing bugs with gcc due to the blind use of "volatile" that it turns > out gcc doesn't necessarily like. > > With the memcpy fallback (and the simpler "scalar pointer copy by > hand"), I think READ_ONCE() (and WRITE_ONCE()) are safe. > > Linus > FWIW, I dropped the warning fixp patch from my linux-next branch so everything should be back to normal and we can merge Peters patch for 4.0 or 4.1. Christian