Re: [Cocci] [Xen-devel] [PATCH 2/9] Use gnutls_priority_set_direct() to deprecate gnutls_*_set()

2016-02-10 Thread Luis R. Rodriguez
On Wed, Feb 10, 2016 at 7:44 AM, Olaf Hering wrote: > On Wed, Feb 10, Luis R. Rodriguez wrote: > >> cherry picks for fixes or huge interest to keep it compatible with latest >> compilers qemu-xen-traditional seems to be more of a liability than a > > Hey, this is about gnutls, not

Re: [Cocci] [Xen-devel] [PATCH 2/9] Use gnutls_priority_set_direct() to deprecate gnutls_*_set()

2016-02-10 Thread Luis R. Rodriguez
On Wed, Feb 10, 2016 at 09:46:30AM +, Ian Campbell wrote: > On Tue, 2016-02-09 at 19:04 -0800, Luis R. Rodriguez wrote: > > On Tue, Feb 9, 2016 at 10:23 AM, Olaf Hering wrote: > > > On Tue, Feb 09, Luis R. Rodriguez wrote: > > > > > > > Thanks so it seems the other option is

Re: [Cocci] coccinelle: add style check for assignment in if

2016-02-10 Thread Joe Perches
On Tue, 2016-02-09 at 13:55 +0100, SF Markus Elfring wrote: > > > Would you like to consider also the reuse of SmPL variables > > > like "org" and "report"? > > > > I think that there is no point for these things, because checkpatch > > already gives warnings about this issue. > > Can the check

[Cocci] [PATCH] Coccinelle: Add api/setup_timer.cocci

2016-02-10 Thread Vaishali Thakkar
Use the timer API function setup_timer instead of structure field assignments to initialize a timer. Signed-off-by: Vaishali Thakkar --- scripts/coccinelle/api/setup_timer.cocci | 199 +++ 1 file changed, 199 insertions(+) create mode

Re: [Cocci] coccinelle: add style check for assignment in if

2016-02-10 Thread SF Markus Elfring
>> Can the check result display be more convenient from the semantic >> patch script interface in comparison to the other tool? > > -ENOPARSE. More detail please. Kris Borer suggested a SmPL script which can generate (only) patches so far by the usual application of the Coccinelle software. I