aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-08-02 14:02:46 -0700
committerRichard Henderson <richard.henderson@linaro.org>2023-08-06 16:46:13 -0700
commit62cbf0815005f0ba91b0c36fbcabd479c6e3a2f2 (patch)
tree084b96b358f52fb5630ed2b871ac4026b4c7883b /linux-user
parent0662a626a712dde5f8a91e1b078644332336e9fa (diff)
downloadqemu-62cbf0815005f0ba91b0c36fbcabd479c6e3a2f2.zip
qemu-62cbf0815005f0ba91b0c36fbcabd479c6e3a2f2.tar.gz
qemu-62cbf0815005f0ba91b0c36fbcabd479c6e3a2f2.tar.bz2
linux-user: Remove last_brk
This variable is unused. Reviewed-by: Helge Deller <deller@gmx.de> Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/mmap.c2
-rw-r--r--linux-user/user-mmap.h1
2 files changed, 0 insertions, 3 deletions
diff --git a/linux-user/mmap.c b/linux-user/mmap.c
index 90b3ef2..eb04fab 100644
--- a/linux-user/mmap.c
+++ b/linux-user/mmap.c
@@ -314,8 +314,6 @@ static bool mmap_frag(abi_ulong real_start, abi_ulong start, abi_ulong last,
#endif
abi_ulong mmap_next_start = TASK_UNMAPPED_BASE;
-unsigned long last_brk;
-
/*
* Subroutine of mmap_find_vma, used when we have pre-allocated
* a chunk of guest address space.
diff --git a/linux-user/user-mmap.h b/linux-user/user-mmap.h
index 3fc986f..7265c2c 100644
--- a/linux-user/user-mmap.h
+++ b/linux-user/user-mmap.h
@@ -26,7 +26,6 @@ abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size,
abi_ulong new_size, unsigned long flags,
abi_ulong new_addr);
abi_long target_madvise(abi_ulong start, abi_ulong len_in, int advice);
-extern unsigned long last_brk;
extern abi_ulong mmap_next_start;
abi_ulong mmap_find_vma(abi_ulong, abi_ulong, abi_ulong);
void mmap_fork_start(void);