Skip to content

Commit

Permalink
s390/compat: fix compile error for !COMPAT
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Apr 23, 2013
1 parent a2aec0d commit 0f58104
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/s390/include/asm/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 0f58104

Please sign in to comment.