From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:60205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvQIX-0003y0-FZ for qemu-devel@nongnu.org; Thu, 09 Feb 2012 04:28:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvQIQ-0000YQ-34 for qemu-devel@nongnu.org; Thu, 09 Feb 2012 04:28:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48857) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvQIP-0000YE-Ok for qemu-devel@nongnu.org; Thu, 09 Feb 2012 04:28:06 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q199S5Ne017108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 9 Feb 2012 04:28:05 -0500 Message-ID: <4F3391A3.1090805@redhat.com> Date: Thu, 09 Feb 2012 11:28:03 +0200 From: Avi Kivity MIME-Version: 1.0 References: <1328714879-18906-1-git-send-email-avi@redhat.com> <1328714879-18906-10-git-send-email-avi@redhat.com> <4F337C8C.1070104@redhat.com> In-Reply-To: <4F337C8C.1070104@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 09/10] memory: use a MemoryListener for core memory map updates too List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org On 02/09/2012 09:58 AM, Paolo Bonzini wrote: > On 02/08/2012 04:27 PM, Avi Kivity wrote: >> +static void core_log_stop(MemoryListener *listener, >> + MemoryRegionSection *section) >> +{ >> +} >> + >> +static void core_log_sync(MemoryListener *listener, >> + MemoryRegionSection *section) >> +{ >> +} >> + > > Why not wrapping the calls inside an "if" so that these dummy > functions need not be there? Can be done in a follow-up, though. I dislike that style. We could have memory.c provide default versions for users to put into their listener structures. -- error compiling committee.c: too many arguments to function