Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1453190
| From | SF Markus Elfring <elfring@users.sourceforge.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [Cocci] [PATCH v3] Coccinelle: Script to replace allocate and memset with zalloc functions |
| Date | 2016-08-01 14:50 +0200 |
| Message-ID | <s1kPn-6nf-9@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <s1jJD-5J0-7@gated-at.bofh.it> <s1k2Z-5PD-9@gated-at.bofh.it> <s1kcG-68q-11@gated-at.bofh.it> <s1kw6-6gg-5@gated-at.bofh.it> <s1kFH-6jL-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
>>>> @vz_combined >>>> depends on patch && !context && !org && !report@ >>>> type T; >>>> T* pointer; >>>> +statement S; >>>> expression express; >>>> @@ >>>> pointer = >>>> - vmalloc >>>> + vzalloc >>>> (...); >>>> if (!d) >>>> S >>>> -memset(d, 0, sizeof( >>>> ( >>>> -T >>>> | >>>> -*(express) >>>> ) >>>> -)); > > Actually, this is a mess. pointer, d, and express are all supposed to be > the same thing, as they were in the original rule. > > Furthermore, this shows a reason why the original rule was better. There is a trade-off between several unique SmPL rules and other combined variants which could eventually work with two SmPL disjunctions. Regards, Markus
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v3] Coccinelle: Script to replace allocate and memset with zalloc functions Amitoj Kaur Chawla <amitoj1606@gmail.com> - 2016-08-01 09:10 +0200
Re: [Cocci] [PATCH v3] Coccinelle: Script to replace allocate and memset with zalloc functions SF Markus Elfring <elfring@users.sourceforge.net> - 2016-08-01 13:30 +0200
Re: [Cocci] [PATCH v3] Coccinelle: Script to replace allocate and memset with zalloc functions Julia Lawall <julia.lawall@lip6.fr> - 2016-08-01 13:40 +0200
Re: [Cocci] [PATCH v3] Coccinelle: Script to replace allocate and memset with zalloc functions SF Markus Elfring <elfring@users.sourceforge.net> - 2016-08-01 14:00 +0200
Re: [Cocci] [PATCH v3] Coccinelle: Script to replace allocate and memset with zalloc functions Julia Lawall <julia.lawall@lip6.fr> - 2016-08-01 14:10 +0200
Re: [Cocci] [PATCH v3] Coccinelle: Script to replace allocate and memset with zalloc functions SF Markus Elfring <elfring@users.sourceforge.net> - 2016-08-01 14:30 +0200
Re: [Cocci] [PATCH v3] Coccinelle: Script to replace allocate and memset with zalloc functions Julia Lawall <julia.lawall@lip6.fr> - 2016-08-01 14:40 +0200
Re: [Cocci] [PATCH v3] Coccinelle: Script to replace allocate and memset with zalloc functions SF Markus Elfring <elfring@users.sourceforge.net> - 2016-08-01 14:50 +0200
csiph-web