From mboxrd@z Thu Jan 1 00:00:00 1970 From: Will Deacon Subject: Re: [PATCH v3 06/19] asm/rwonce: Don't pull into 'asm-generic/rwonce.h' Date: Fri, 10 Jul 2020 18:15:09 +0100 Message-ID: <20200710171508.GA31366@willie-the-truck> References: <20200710165203.31284-1-will@kernel.org> <20200710165203.31284-7-will@kernel.org> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594401316; bh=L7/tSb+Pse5aLWVxH/CLIrVK11DXAitXfSjGWiPzMUw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ODn+wBX8HVqj1KZ2HGIGv/MORKu3ZZn1aHWKKfff8Ba+oqIUoNxRgomJHmFYKPNHS P1MuJ6OVVATCam7HY3GwWvnyCmD9TLL59R8ZtNw8xhnMxMpwg3QAynx9yvsiNN5Ud7 r7lMVIb3kVpC3xRWR0p0fhp6Z1rXKg0F4ZE4sIz8= Content-Disposition: inline In-Reply-To: Sender: linux-alpha-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Nick Desaulniers Cc: LKML , Joel Fernandes , Sami Tolvanen , Kees Cook , Marco Elver , "Paul E. McKenney" , Matt Turner , Ivan Kokshaysky , Richard Henderson , Peter Zijlstra , Alan Stern , "Michael S. Tsirkin" , Jason Wang , Arnd Bergmann , Boqun Feng , Catalin Marinas , Mark Rutland , Linux ARM , linux-alpha@vger.kernel.org, virtualization@lists.linux-fou On Fri, Jul 10, 2020 at 10:06:12AM -0700, Nick Desaulniers wrote: > On Fri, Jul 10, 2020 at 9:52 AM Will Deacon wrote: > > diff --git a/include/linux/nospec.h b/include/linux/nospec.h > > index 0c5ef54fd416..c1e79f72cd89 100644 > > --- a/include/linux/nospec.h > > +++ b/include/linux/nospec.h > > @@ -5,6 +5,8 @@ > > > > #ifndef _LINUX_NOSPEC_H > > #define _LINUX_NOSPEC_H > > + > > +#include > > The other hunks LGTM, but this one is a little more curious to me. Can > you walk me through this addition? Sure. Without it, the build breaks on riscv because it includes this header without first including , and this header relies on OPTIMIZER_HIDE_VAR() being to defined as it is used in static inline functions. Perhaps I should squash this hunk into "compiler.h: Split {READ,WRITE}_ONCE definitions out into rwonce.h" instead, as that is where I remove the include of from 'asm-generic/barrier.h'. I'll check the bisection on riscv... Will