From: Paolo Bonzini Subject: Re: [Qemu-devel] [PATCH v2 2/6] qdict: Add convenience helpers for wrapped puts Date: Wed, 5 Apr 2017 13:54:24 +0200 Message-ID: <1af948cb-4fbd-8ae4-8690-8a3f9e439987@redhat.com> References: <20170118161653.19296-1-eblake@redhat.com> <20170118161653.19296-3-eblake@redhat.com> <87lgu7flkc.fsf@dusky.pond.sub.org> <9e16eb02-dc8b-b25f-0aba-d4a9ff3b5a02@redhat.com> <274218e6-5539-9eef-56bc-c2de4d11a593@redhat.com> <20170405081835.GB30620@redhat.com> <20170405082443.GD30620@redhat.com> <20170405090151.GK30620@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170405090151.GK30620@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-block-bounces+gceqb-qemu-block=m.gmane.org@nongnu.org Sender: "Qemu-block" To: "Richard W.M. Jones" , Julia Lawall Cc: Ronnie Sahlberg , qemu-devel@nongnu.org, Alexander Graf , Gerd Hoffmann , Stefano Stabellini , "open list:Block layer core" , Michael Roth , Anthony Perard , Fam Zheng , Chrysostomos Nanakos , Stefan Weil , Peter Lieven , "Dr. David Alan Gilbert" , "open list:X86" , Stefan Hajnoczi , Richard Henderson , Kevin Wolf , Markus Armbruster , Max Reitz List-Id: xen-devel@lists.xenproject.org On 05/04/2017 11:01, Richard W.M. Jones wrote: > On Wed, Apr 05, 2017 at 10:38:37AM +0200, Julia Lawall wrote: >> OK, there is nothing special about g_assert_cmpint, but Coccinelle expects >> expressions or types in function argument lists, so it gives a parse error >> on finding an ==. > > I should have checked the coccinelle mailing list before asking you, > because I see that Eric already asked this question and you answered > it. For reference, that is here: > > https://systeme.lip6.fr/pipermail/cocci/2017-April/004107.html > > Thanks again, Eric, are you using the scripts/cocci-macro-file.h? commit 6ad978e9f40d3edfd9f4a86b4a60e3523eff08fe Author: Paolo Bonzini Date: Wed May 18 11:11:55 2016 +0200 coccinelle: add g_assert_cmp* to macro file This helps applying semantic patches to unit tests. Signed-off-by: Paolo Bonzini Thanks, Paolo