linux/seqlock.h should #include asm/processor.h for cpu_relax()
authorDavid Howells <dhowells@redhat.com>
Sat, 11 Jun 2011 11:29:58 +0000 (12:29 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 11 Jun 2011 20:17:28 +0000 (13:17 -0700)
It uses cpu_relax(), and so needs <asm/processor.h>

Without this patch, I see:

   CC      arch/mn10300/kernel/asm-offsets.s
  In file included from include/linux/time.h:8,
                   from include/linux/timex.h:56,
                   from include/linux/sched.h:57,
                   from arch/mn10300/kernel/asm-offsets.c:7:
  include/linux/seqlock.h: In function 'read_seqbegin':
  include/linux/seqlock.h:91: error: implicit declaration of function 'cpu_relax'

whilst building asb2364_defconfig on MN10300.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/seqlock.h

index e9811892844f1cacca117fae323abef084ab615f..c6db9fb33c448f28197ffb6d135689daf58625b6 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <linux/spinlock.h>
 #include <linux/preempt.h>
+#include <asm/processor.h>
 
 typedef struct {
        unsigned sequence;