Coccinelle archive on lore.kernel.org
 help / color / Atom feed
* [Cocci] [PATCH] scripts: coccinelle: Fix description of badty.cocci
@ 2019-03-26 21:22 Michael Stefaniuc
  2019-03-26 21:31 ` Julia Lawall
  2019-03-28 13:23 ` Masahiro Yamada
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Stefaniuc @ 2019-03-26 21:22 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: Michal Marek, cocci, linux-kernel

Summary was copy and pasted from array_size.cocci.

Signed-off-by: Michael Stefaniuc <mstefani@mykolab.com>
---
 scripts/coccinelle/misc/badty.cocci | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/coccinelle/misc/badty.cocci b/scripts/coccinelle/misc/badty.cocci
index 481cf301ccfc..08470362199c 100644
--- a/scripts/coccinelle/misc/badty.cocci
+++ b/scripts/coccinelle/misc/badty.cocci
@@ -1,4 +1,4 @@
-/// Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element
+/// Correct the size argument to alloc functions
 ///
 //# This makes an effort to find cases where the argument to sizeof is wrong
 //# in memory allocation functions by checking the type of the allocated memory
-- 
2.20.1

_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Cocci] [PATCH] scripts: coccinelle: Fix description of badty.cocci
  2019-03-26 21:22 [Cocci] [PATCH] scripts: coccinelle: Fix description of badty.cocci Michael Stefaniuc
@ 2019-03-26 21:31 ` Julia Lawall
  2019-03-28 13:23 ` Masahiro Yamada
  1 sibling, 0 replies; 3+ messages in thread
From: Julia Lawall @ 2019-03-26 21:31 UTC (permalink / raw)
  To: Michael Stefaniuc; +Cc: Michal Marek, cocci, linux-kernel



On Tue, 26 Mar 2019, Michael Stefaniuc wrote:

> Summary was copy and pasted from array_size.cocci.
>
> Signed-off-by: Michael Stefaniuc <mstefani@mykolab.com>
> ---
>  scripts/coccinelle/misc/badty.cocci | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/coccinelle/misc/badty.cocci b/scripts/coccinelle/misc/badty.cocci
> index 481cf301ccfc..08470362199c 100644
> --- a/scripts/coccinelle/misc/badty.cocci
> +++ b/scripts/coccinelle/misc/badty.cocci
> @@ -1,4 +1,4 @@
> -/// Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element
> +/// Correct the size argument to alloc functions

Oops!  Thanks.

Acked-by: Julia Lawall <julia.lawall@lip6.fr>



>  ///
>  //# This makes an effort to find cases where the argument to sizeof is wrong
>  //# in memory allocation functions by checking the type of the allocated memory
> --
> 2.20.1
>
>
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Cocci] [PATCH] scripts: coccinelle: Fix description of badty.cocci
  2019-03-26 21:22 [Cocci] [PATCH] scripts: coccinelle: Fix description of badty.cocci Michael Stefaniuc
  2019-03-26 21:31 ` Julia Lawall
@ 2019-03-28 13:23 ` Masahiro Yamada
  1 sibling, 0 replies; 3+ messages in thread
From: Masahiro Yamada @ 2019-03-28 13:23 UTC (permalink / raw)
  To: Michael Stefaniuc; +Cc: Michal Marek, cocci, Linux Kernel Mailing List

On Wed, Mar 27, 2019 at 6:24 AM Michael Stefaniuc <mstefani@mykolab.com> wrote:
>
> Summary was copy and pasted from array_size.cocci.
>
> Signed-off-by: Michael Stefaniuc <mstefani@mykolab.com>


Applied to linux-kbuild/fixes. Thanks.


> ---
>  scripts/coccinelle/misc/badty.cocci | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/coccinelle/misc/badty.cocci b/scripts/coccinelle/misc/badty.cocci
> index 481cf301ccfc..08470362199c 100644
> --- a/scripts/coccinelle/misc/badty.cocci
> +++ b/scripts/coccinelle/misc/badty.cocci
> @@ -1,4 +1,4 @@
> -/// Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element
> +/// Correct the size argument to alloc functions
>  ///
>  //# This makes an effort to find cases where the argument to sizeof is wrong
>  //# in memory allocation functions by checking the type of the allocated memory
> --
> 2.20.1
>


-- 
Best Regards
Masahiro Yamada
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-26 21:22 [Cocci] [PATCH] scripts: coccinelle: Fix description of badty.cocci Michael Stefaniuc
2019-03-26 21:31 ` Julia Lawall
2019-03-28 13:23 ` Masahiro Yamada

Coccinelle archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/cocci/0 cocci/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 cocci cocci/ https://lore.kernel.org/cocci \
		cocci@systeme.lip6.fr cocci@archiver.kernel.org
	public-inbox-index cocci


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/fr.lip6.systeme.cocci


AGPL code for this site: git clone https://public-inbox.org/ public-inbox