Skip to content

Commit

Permalink
linux/seqlock.h should #include asm/processor.h for cpu_relax()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
dhowells authored and torvalds committed Jun 11, 2011
1 parent 45694c2 commit 56a2105
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/seqlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

#include <linux/spinlock.h>
#include <linux/preempt.h>
#include <asm/processor.h>

typedef struct {
unsigned sequence;
Expand Down

0 comments on commit 56a2105

Please sign in to comment.