Skip to content

Commit

Permalink
linux-user: drop unused target_msync function
Browse files Browse the repository at this point in the history
target_msync is not used, remove its declaration and implementation.

Cc: Riku Voipio <riku.voipio@iki.fi>
Cc: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20180228221609.11265-9-jcmvbkbc@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
  • Loading branch information
jcmvbkbc authored and vivier committed Mar 9, 2018
1 parent 78cf339 commit 41c97cc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
17 changes: 0 additions & 17 deletions linux-user/mmap.c
Expand Up @@ -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);
}
1 change: 0 additions & 1 deletion linux-user/qemu.h
Expand Up @@ -425,7 +425,6 @@ int target_munmap(abi_ulong start, abi_ulong len);
abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size,
abi_ulong new_size, unsigned long flags,
abi_ulong new_addr);
int target_msync(abi_ulong start, abi_ulong len, int flags);
extern unsigned long last_brk;
extern abi_ulong mmap_next_start;
abi_ulong mmap_find_vma(abi_ulong, abi_ulong);
Expand Down

0 comments on commit 41c97cc

Please sign in to comment.