From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXw9E-00004x-RO for qemu-devel@nongnu.org; Tue, 17 Mar 2015 14:23:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXw9D-0001xl-SJ for qemu-devel@nongnu.org; Tue, 17 Mar 2015 14:23:24 -0400 Message-ID: <55087114.1010008@redhat.com> Date: Tue, 17 Mar 2015 14:23:16 -0400 From: John Snow MIME-Version: 1.0 References: <1425528911-10300-1-git-send-email-jsnow@redhat.com> <1425528911-10300-4-git-send-email-jsnow@redhat.com> <550868A1.9090508@redhat.com> <55086CC8.1020102@redhat.com> <5508700F.3070104@redhat.com> In-Reply-To: <5508700F.3070104@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 03/11] block: add transactional callbacks feature List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , Max Reitz , qemu-block@nongnu.org Cc: kwolf@redhat.com, famz@redhat.com, qemu-devel@nongnu.org, armbru@redhat.com, vsementsov@parallels.com, stefanha@redhat.com On 03/17/2015 02:18 PM, Eric Blake wrote: > On 03/17/2015 12:04 PM, John Snow wrote: > >>>> +typedef void (CallbackFn)(void *opaque, int ret); >>>> + >>>> +/* Temporary. Removed in the next patch. */ >>> >>> Actually, no. :-) >>> >>> (remove in patch 7) >>> >>> Why are you making them non-static in the first place? I see both >>> functions mentioned in patch 3 and patch 7 only (except for context in >>> patch 6). >>> >> >> Won't compile otherwise, because they have no users as of this patch. I >> am trying to keep the size of these patches down and in a sane order. > > Another solution is to mark it static, but also add > __attribute__((unused)) to shut the compiler up, so that you don't cause > build failures, but also don't cause reviewers to wonder who is using > it. Then when it finally gets used, a patch to remove the attribute is > easier to see than a patch adding static. > Good trick, thanks.