From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=42146 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFWAZ-0005K5-0P for qemu-devel@nongnu.org; Fri, 21 May 2010 13:38:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFWAX-0007DL-KN for qemu-devel@nongnu.org; Fri, 21 May 2010 13:37:58 -0400 Received: from are.twiddle.net ([75.149.56.221]:33790) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFWAX-0007DE-D6 for qemu-devel@nongnu.org; Fri, 21 May 2010 13:37:57 -0400 From: Richard Henderson Date: Fri, 21 May 2010 10:37:50 -0700 Message-Id: <1274463472-17353-1-git-send-email-rth@twiddle.net> In-Reply-To: References: Subject: [Qemu-devel] [PATCH 0/2] Tidy qemu_malloc List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: corentin.chary@gmail.com, paul@codesourcery.com, aurelien@aurel32.net, stefanha@linux.vnet.ibm.com I was reminded of this by the discussion on the list recently of using calloc for qemu_mallocz. I'd vaguely remembered that I already had a patch that did this. The second patch is a cleanup enabled by Paul's patch: 2e9a5713f0567fffaa3518f495b8d16a2b74f84a which removed PAGE_RESERVED. r~ Richard Henderson (2): Use calloc in qemu_mallocz. linux-user: Use qemu-malloc.c. Makefile.target | 3 ++- linux-user/mmap.c | 52 ---------------------------------------------------- qemu-malloc.c | 8 ++++---- 3 files changed, 6 insertions(+), 57 deletions(-)