From 41c97cc022f289d413b6e4518352aed507f5473c Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Wed, 28 Feb 2018 14:16:06 -0800 Subject: linux-user: drop unused target_msync function target_msync is not used, remove its declaration and implementation. Cc: Riku Voipio Cc: Laurent Vivier Signed-off-by: Max Filippov Reviewed-by: Laurent Vivier Message-Id: <20180228221609.11265-9-jcmvbkbc@gmail.com> Signed-off-by: Laurent Vivier --- linux-user/mmap.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'linux-user/mmap.c') diff --git a/linux-user/mmap.c b/linux-user/mmap.c index 84b15c9a16..9168a2051c 100644 --- a/linux-user/mmap.c +++ b/linux-user/mmap.c @@ -754,20 +754,3 @@ abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size, mmap_unlock(); return new_addr; } - -int target_msync(abi_ulong start, abi_ulong len, int flags) -{ - abi_ulong end; - - if (start & ~TARGET_PAGE_MASK) - return -EINVAL; - len = TARGET_PAGE_ALIGN(len); - end = start + len; - if (end < start) - return -EINVAL; - if (end == start) - return 0; - - start &= qemu_host_page_mask; - return msync(g2h(start), end - start, flags); -} -- cgit 1.4.1