projects/linux·commit 42e47eeb

[S390] incorrect placement of include.

42e47eeb · Martin Schwidefsky <[email protected]> · 2006-10-04 20:02:12 +02:00

The include of linux/smp.h needs to be done before the #if that
checks for the compiler version. Seems like fallout from the
inline assembly cleanup patch vs. the directed yield patch.

Signed-off-by: Martin Schwidefsky <[email protected]>
Commit
42e47eeb8fb3f9d2abe653cc7f185816068a057d
Parents
8abfe01d

Changes

1 files changed · +2 −2

FileStatusAddDelContent
include/asm-s390/spinlock.hmodified+2−2View file

include/asm-s390/spinlock.h

View file
diff --git a/include/asm-s390/spinlock.h b/include/asm-s390/spinlock.h
index 6b78af1..3fd4382 100644
--- a/include/asm-s390/spinlock.h
+++ b/include/asm-s390/spinlock.h
@@ -11,10 +11,10 @@
#ifndef __ASM_SPINLOCK_H
#define __ASM_SPINLOCK_H
-#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 2)
-
#include <linux/smp.h>
+#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 2)
+
static inline int
_raw_compare_and_swap(volatile unsigned int *lock,
unsigned int old, unsigned int new)