OSDN Git Service

s390/compat: fix compile error for !COMPAT
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Sat, 20 Apr 2013 12:25:42 +0000 (14:25 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 23 Apr 2013 08:18:10 +0000 (10:18 +0200)
Fix this one for !COMPAT:

compat.h: In function ‘arch_compat_alloc_user_space’:
compat.h:292:2: error: implicit declaration of function ‘is_compat_task’

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/compat.h

index d967ac8..1f1a449 100644 (file)
@@ -248,8 +248,6 @@ static inline int is_compat_task(void)
        return is_32bit_task();
 }
 
-#endif
-
 static inline void __user *arch_compat_alloc_user_space(long len)
 {
        unsigned long stack;
@@ -260,6 +258,8 @@ static inline void __user *arch_compat_alloc_user_space(long len)
        return (void __user *) (stack - len);
 }
 
+#endif
+
 struct compat_ipc64_perm {
        compat_key_t key;
        __compat_uid32_t uid;