Skip to content

Commit 0f58104

Browse files
heicarstMartin Schwidefsky
authored andcommitted
s390/compat: fix compile error for !COMPAT
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 <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
1 parent a2aec0d commit 0f58104

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/s390/include/asm/compat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,6 @@ static inline int is_compat_task(void)
248248
return is_32bit_task();
249249
}
250250

251-
#endif
252-
253251
static inline void __user *arch_compat_alloc_user_space(long len)
254252
{
255253
unsigned long stack;
@@ -260,6 +258,8 @@ static inline void __user *arch_compat_alloc_user_space(long len)
260258
return (void __user *) (stack - len);
261259
}
262260

261+
#endif
262+
263263
struct compat_ipc64_perm {
264264
compat_key_t key;
265265
__compat_uid32_t uid;

0 commit comments

Comments
 (0)