Received: from eggs.gnu.org ([2001:4830:134:3::10]:45498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQYzt-0007kt-Ag for qemu-devel@nongnu.org; Mon, 30 Sep 2013 04:38:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VQYzn-0001Ho-4Z for qemu-devel@nongnu.org; Mon, 30 Sep 2013 04:38:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQYzm-0001HS-TC for qemu-devel@nongnu.org; Mon, 30 Sep 2013 04:38:23 -0400 From: Markus Armbruster References: <1380481005-32399-1-git-send-email-sw@weilnetz.de> Date: Mon, 30 Sep 2013 10:38:18 +0200 In-Reply-To: <1380481005-32399-1-git-send-email-sw@weilnetz.de> (Stefan Weil's message of "Sun, 29 Sep 2013 20:56:45 +0200") Message-ID: <87eh86k8lh.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] exec: Fix prototype of phys_mem_set_alloc and related functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: Alexander Graf , qemu-devel , Richard Henderson Stefan Weil writes: > phys_mem_alloc and its assigned values qemu_anon_ram_alloc and > legacy_s390_alloc must have identical argument lists. > > legacy_s390_alloc uses the size parameter to call mmap, so size_t is > good enough for all of them. > > This patch fixes compiler errors on i686 Linux hosts: > > CC alpha-softmmu/exec.o > exec.c:752:51: error: > initialization from incompatible pointer type [-Werror] > exec.c: In function 'qemu_ram_alloc_from_ptr': > exec.c:1139:32: error: > comparison of distinct pointer types lacks a cast [-Werror] > exec.c: In function 'qemu_ram_remap': > exec.c:1283:21: error: > comparison of distinct pointer types lacks a cast [-Werror] > > Signed-off-by: Stefan Weil Reviewed-by: Markus Armbruster