Re: [PATCH v2] Coccinelle: kzalloc-simple: Add all zero allocating functions

2017-12-29 Thread Julia Lawall
On Sat, 30 Dec 2017, Masahiro Yamada wrote: > 2017-12-27 6:40 GMT+09:00 Himanshu Jha : > > There are many instances where memory is allocated using regular > > allocator > > functions immediately followed by setting the allocated memory > > to 0 value using memset. > > > > We already have zero m

Re: [PATCH v2] Coccinelle: kzalloc-simple: Add all zero allocating functions

2017-12-29 Thread Masahiro Yamada
2017-12-27 6:40 GMT+09:00 Himanshu Jha : > There are many instances where memory is allocated using regular > allocator > functions immediately followed by setting the allocated memory > to 0 value using memset. > > We already have zero memory allocator functions to set the memory to > 0 value inst

Re: [PATCH v2] Coccinelle: kzalloc-simple: Add all zero allocating functions

2017-12-26 Thread Julia Lawall
On Wed, 27 Dec 2017, Himanshu Jha wrote: > There are many instances where memory is allocated using regular > allocator > functions immediately followed by setting the allocated memory > to 0 value using memset. > > We already have zero memory allocator functions to set the memory to > 0 value i

[PATCH v2] Coccinelle: kzalloc-simple: Add all zero allocating functions

2017-12-26 Thread Himanshu Jha
There are many instances where memory is allocated using regular allocator functions immediately followed by setting the allocated memory to 0 value using memset. We already have zero memory allocator functions to set the memory to 0 value instead of manually setting it using memset. Therefore, u