2018-01-13 20:27:22

by Himanshu Jha

[permalink] [raw]
Subject: [PATCH v2] Coccinelle: kzalloc-simple: Rename kzalloc-simple to zalloc-simple

Rename kzalloc-simple to zalloc-simple since now the rule is not
specific to kzalloc function only, but also to many other zero memory
allocating functions specified in the rule.

Suggested-by: SF Markus Elfring <[email protected]>
Signed-off-by: Himanshu Jha <[email protected]>
---
v2:
-generated the patch using -M flag for renaming.
-Since Markus earlier worked on renaming this patch adding his name too
.../coccinelle/api/alloc/{kzalloc-simple.cocci => zalloc-simple.cocci} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename scripts/coccinelle/api/alloc/{kzalloc-simple.cocci => zalloc-simple.cocci} (100%)

diff --git a/scripts/coccinelle/api/alloc/kzalloc-simple.cocci b/scripts/coccinelle/api/alloc/zalloc-simple.cocci
similarity index 100%
rename from scripts/coccinelle/api/alloc/kzalloc-simple.cocci
rename to scripts/coccinelle/api/alloc/zalloc-simple.cocci
--
2.7.4


2018-01-14 09:00:18

by Julia Lawall

[permalink] [raw]
Subject: Re: [PATCH v2] Coccinelle: kzalloc-simple: Rename kzalloc-simple to zalloc-simple



On Sun, 14 Jan 2018, Himanshu Jha wrote:

> Rename kzalloc-simple to zalloc-simple since now the rule is not
> specific to kzalloc function only, but also to many other zero memory
> allocating functions specified in the rule.
>
> Suggested-by: SF Markus Elfring <[email protected]>
> Signed-off-by: Himanshu Jha <[email protected]>

Acked-by: Julia Lawall <[email protected]>

Thanks.

> ---
> v2:
> -generated the patch using -M flag for renaming.
> -Since Markus earlier worked on renaming this patch adding his name too
> .../coccinelle/api/alloc/{kzalloc-simple.cocci => zalloc-simple.cocci} | 0
> 1 file changed, 0 insertions(+), 0 deletions(-)
> rename scripts/coccinelle/api/alloc/{kzalloc-simple.cocci => zalloc-simple.cocci} (100%)
>
> diff --git a/scripts/coccinelle/api/alloc/kzalloc-simple.cocci b/scripts/coccinelle/api/alloc/zalloc-simple.cocci
> similarity index 100%
> rename from scripts/coccinelle/api/alloc/kzalloc-simple.cocci
> rename to scripts/coccinelle/api/alloc/zalloc-simple.cocci
> --
> 2.7.4
>
>

2018-01-16 14:36:35

by Masahiro Yamada

[permalink] [raw]
Subject: Re: [PATCH v2] Coccinelle: kzalloc-simple: Rename kzalloc-simple to zalloc-simple

2018-01-14 5:26 GMT+09:00 Himanshu Jha <[email protected]>:
> Rename kzalloc-simple to zalloc-simple since now the rule is not
> specific to kzalloc function only, but also to many other zero memory
> allocating functions specified in the rule.
>
> Suggested-by: SF Markus Elfring <[email protected]>
> Signed-off-by: Himanshu Jha <[email protected]>
> ---
> v2:
> -generated the patch using -M flag for renaming.
> -Since Markus earlier worked on renaming this patch adding his name too
> .../coccinelle/api/alloc/{kzalloc-simple.cocci => zalloc-simple.cocci} | 0
> 1 file changed, 0 insertions(+), 0 deletions(-)
> rename scripts/coccinelle/api/alloc/{kzalloc-simple.cocci => zalloc-simple.cocci} (100%)
>

Applied to linux-kbuild/misc. Thanks!




--
Best Regards
Masahiro Yamada

2018-01-17 11:09:17

by SF Markus Elfring

[permalink] [raw]
Subject: Re: [v2] Coccinelle: kzalloc-simple: Rename kzalloc-simple to zalloc-simple

> Applied to linux-kbuild/misc.

How would you like to get a related document updated?
https://bottest.wiki.kernel.org/coccicheck#types_of_tests

Regards,
Markus

2018-01-17 14:11:46

by Himanshu Jha

[permalink] [raw]
Subject: Re: [v2] Coccinelle: kzalloc-simple: Rename kzalloc-simple to zalloc-simple

On Wed, Jan 17, 2018 at 12:08:46PM +0100, SF Markus Elfring wrote:
> > Applied to linux-kbuild/misc.
>
> How would you like to get a related document updated?
> https://bottest.wiki.kernel.org/coccicheck#types_of_tests

Fixed.

--
Thanks
Himanshu Jha

2018-01-17 14:46:01

by SF Markus Elfring

[permalink] [raw]
Subject: Re: [v2] Coccinelle: kzalloc-simple: Rename kzalloc-simple to zalloc-simple

>> https://bottest.wiki.kernel.org/coccicheck#types_of_tests
>
> Fixed.

How do you think about to mention a date in this document
since when the changed file name may be used?

Regards,
Markus