Skip to content

Commit

Permalink
sparc: asm/atomic.h on 32bit should include asm/system.h for xchg
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Stephen Rothwell authored and David S. Miller committed Apr 15, 2009
1 parent 8e255ba commit c7cb152
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/sparc/include/asm/atomic_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

#ifdef __KERNEL__

#include <asm/system.h>

#define ATOMIC_INIT(i) { (i) }

extern int __atomic_add_return(int, atomic_t *);
Expand Down

0 comments on commit c7cb152

Please sign in to comment.