Re: [Qemu-devel] [PATCH] add macro file for coccinelle

2015-09-07 Thread Peter Maydell
On 7 September 2015 at 10:56, Paolo Bonzini wrote: > > > On 07/09/2015 11:22, Peter Maydell wrote: >> On 7 September 2015 at 08:51, Paolo Bonzini wrote: >>> Coccinelle chokes on some idioms from compiler.h and queue.h. >>> Extract those in a macro file, to be used with "--macro-file >>> scripts/c

Re: [Qemu-devel] [PATCH] add macro file for coccinelle

2015-09-07 Thread Paolo Bonzini
On 07/09/2015 11:22, Peter Maydell wrote: > On 7 September 2015 at 08:51, Paolo Bonzini wrote: >> Coccinelle chokes on some idioms from compiler.h and queue.h. >> Extract those in a macro file, to be used with "--macro-file >> scripts/cocci-macro-file.h". > > Can we put the "how to use this" in

Re: [Qemu-devel] [PATCH] add macro file for coccinelle

2015-09-07 Thread Peter Maydell
On 7 September 2015 at 08:51, Paolo Bonzini wrote: > Coccinelle chokes on some idioms from compiler.h and queue.h. > Extract those in a macro file, to be used with "--macro-file > scripts/cocci-macro-file.h". Can we put the "how to use this" instructions in the file itself as well as in the commi

[Qemu-devel] [PATCH] add macro file for coccinelle

2015-09-07 Thread Paolo Bonzini
Coccinelle chokes on some idioms from compiler.h and queue.h. Extract those in a macro file, to be used with "--macro-file scripts/cocci-macro-file.h". Signed-off-by: Paolo Bonzini --- scripts/cocci-macro-file.h | 110 + 1 file changed, 110 insertions(