From: Steven Rostedt Subject: Re: v3.14.73-rt77 build: 6 failures 10 warnings (v3.14.73-rt77) Date: Fri, 15 Jul 2016 14:34:10 -0400 Message-ID: <20160715143410.7da7d02c@gandalf.local.home> References: <6896332.PzHULJX9vz@wuerfel> <20160715120837.GC11606@linutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Sebastian Andrzej Siewior , linaro-kernel@lists.linaro.org, Build bot for Mark Brown , kernel-build-reports@lists.linaro.org, linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org To: Arnd Bergmann Return-path: In-Reply-To: <20160715120837.GC11606@linutronix.de> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-rt-users.vger.kernel.org On Fri, 15 Jul 2016 14:08:37 +0200 Sebastian Andrzej Siewior wrote: > + Steven > > * Arnd Bergmann | 2016-07-15 09:42:40 [+0200]: > > >On Friday, July 15, 2016 5:55:39 AM CEST Build bot for Mark Brown wrote: > >> > >> arm64-allnoconfig > >> /home/broonie/build/linux-stable-rt/include/asm-generic/preempt.h:10:9: error: implicit declaration of function 'READ_ONCE' [-Werror=implicit-function-declaration] > >> > >> arm64-allmodconfig > >> /home/broonie/build/linux-stable-rt/include/asm-generic/preempt.h:10:9: error: implicit declaration of function 'READ_ONCE' [-Werror=implicit-function-declaration] > >> > >> arm-multi_v7_defconfig > >> /home/broonie/build/linux-stable-rt/include/asm-generic/preempt.h:10:9: error: implicit declaration of function 'READ_ONCE' [-Werror=implicit-function-declaration] > >> > >> arm-allmodconfig > >> /home/broonie/build/linux-stable-rt/include/asm-generic/preempt.h:10:9: error: implicit declaration of function 'READ_ONCE' [-Werror=implicit-function-declaration] > >> > >> arm-allnoconfig > >> /home/broonie/build/linux-stable-rt/include/asm-generic/preempt.h:10:9: error: implicit declaration of function 'READ_ONCE' [-Werror=implicit-function-declaration] > >> > >> arm64-defconfig > >> /home/broonie/build/linux-stable-rt/include/asm-generic/preempt.h:10:9: error: implicit declaration of function 'READ_ONCE' [-Werror=implicit-function-declaration] > > > >These all started failing yesterday with v3.14.72-rt76, before it was > > > > v3.14.72-rt75 build: 0 failures 113 warnings (v3.14.72-rt75) > > > > Arnd > Arnd, Does this fix the issue? -- Steve diff --git a/include/asm-generic/preempt.h b/include/asm-generic/preempt.h index 65759d8b0b46..25c09df2c046 100644 --- a/include/asm-generic/preempt.h +++ b/include/asm-generic/preempt.h @@ -7,7 +7,7 @@ static __always_inline int preempt_count(void) { - return READ_ONCE(current_thread_info()->preempt_count); + return ACCESS_ONCE(current_thread_info()->preempt_count); } static __always_inline volatile int *preempt_count_ptr(void)