Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ccf183e4 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky
Browse files

[S390] uaccess_mvcos: #ifdef config dependent code.



arch/s390/lib/uaccess_mvcos.c:166:
 warning: 'strnlen_user_mvcos' defined but not used
arch/s390/lib/uaccess_mvcos.c:186:
 warning: 'strncpy_from_user_mvcos' defined but not used

Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent fd781fa2
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -162,6 +162,7 @@ static size_t clear_user_mvcos(size_t size, void __user *to)
	return size;
	return size;
}
}


#ifdef CONFIG_S390_SWITCH_AMODE
static size_t strnlen_user_mvcos(size_t count, const char __user *src)
static size_t strnlen_user_mvcos(size_t count, const char __user *src)
{
{
	char buf[256];
	char buf[256];
@@ -199,6 +200,7 @@ static size_t strncpy_from_user_mvcos(size_t count, const char __user *src,
	} while ((len_str == len) && (done < count));
	} while ((len_str == len) && (done < count));
	return done;
	return done;
}
}
#endif /* CONFIG_S390_SWITCH_AMODE */


struct uaccess_ops uaccess_mvcos = {
struct uaccess_ops uaccess_mvcos = {
	.copy_from_user = copy_from_user_mvcos_check,
	.copy_from_user = copy_from_user_mvcos_check,