diff options
Diffstat (limited to 'arch/s390/lib/uaccess_mvcos.c')
-rw-r--r-- | arch/s390/lib/uaccess_mvcos.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/lib/uaccess_mvcos.c b/arch/s390/lib/uaccess_mvcos.c index 6d8772339d76..3f15aaf54855 100644 --- a/arch/s390/lib/uaccess_mvcos.c +++ b/arch/s390/lib/uaccess_mvcos.c | |||
@@ -162,6 +162,7 @@ static size_t clear_user_mvcos(size_t size, void __user *to) | |||
162 | return size; | 162 | return size; |
163 | } | 163 | } |
164 | 164 | ||
165 | #ifdef CONFIG_S390_SWITCH_AMODE | ||
165 | static size_t strnlen_user_mvcos(size_t count, const char __user *src) | 166 | static size_t strnlen_user_mvcos(size_t count, const char __user *src) |
166 | { | 167 | { |
167 | char buf[256]; | 168 | char buf[256]; |
@@ -199,6 +200,7 @@ static size_t strncpy_from_user_mvcos(size_t count, const char __user *src, | |||
199 | } while ((len_str == len) && (done < count)); | 200 | } while ((len_str == len) && (done < count)); |
200 | return done; | 201 | return done; |
201 | } | 202 | } |
203 | #endif /* CONFIG_S390_SWITCH_AMODE */ | ||
202 | 204 | ||
203 | struct uaccess_ops uaccess_mvcos = { | 205 | struct uaccess_ops uaccess_mvcos = { |
204 | .copy_from_user = copy_from_user_mvcos_check, | 206 | .copy_from_user = copy_from_user_mvcos_check, |