Message ID | 20200324153643.15527-18-will@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Improve list integrity checking | expand |
On Tue, Mar 24, 2020 at 03:36:39PM +0000, Will Deacon wrote:
> Needed for cpu_relax().
Is this needed now, or for the next patch? And if for next patch, why
not just add it then?
thanks,
greg k-h
On Tue, Mar 24, 2020 at 05:28:20PM +0100, Greg KH wrote: > On Tue, Mar 24, 2020 at 03:36:39PM +0000, Will Deacon wrote: > > Needed for cpu_relax(). > > Is this needed now, or for the next patch? And if for next patch, why > not just add it then? If the next patch correctly included linux/list_bl.h like it was supposed to, then yes, it's needed there. I'll sort that out and fold this in for v2. Cheers, Will
diff --git a/include/linux/bit_spinlock.h b/include/linux/bit_spinlock.h index bbc4730a6505..505daa942527 100644 --- a/include/linux/bit_spinlock.h +++ b/include/linux/bit_spinlock.h @@ -6,6 +6,7 @@ #include <linux/preempt.h> #include <linux/atomic.h> #include <linux/bug.h> +#include <linux/processor.h> /* * bit-based spin_lock()
Needed for cpu_relax(). Signed-off-by: Will Deacon <will@kernel.org> --- include/linux/bit_spinlock.h | 1 + 1 file changed, 1 insertion(+)