mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3 RFC] Coccinelle: completion API checking
@ 2015-01-02  9:59 Nicholas Mc Guire
  2015-01-02  9:59 ` [PATCH 1/3 RFC] Coccinelle: drop unecessary duplicated init_compltion calls Nicholas Mc Guire
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Nicholas Mc Guire @ 2015-01-02  9:59 UTC (permalink / raw)
  To: Julia Lawall
  Cc: Gilles Muller, Nicolas Palix, Michal Marek, Andreas Platschek,
	cocci, linux-kernel


This little set of semantic patches is for partially checking the
completion API. It seems to be working correctly and has not yet
produced any false-positive.

The cases being detected are:

1/3 - duplicate init_completions.
2/3 - incorrect static initialization of completion on stack.
3/3 - re-initialization of completion with init_completion() rather
      than reinit_completion().

semantic patch                  findings   files  confirmed
duplicate_init_completion.cocci    2         2        2
false_declare_completion.cocci     6         5        3 
false_init_compltion.cocci         9         6        5 

Note: false_declare_completion.cocci runs extremely slow on my system
      roughly a factor 10 slower than the other two - not clear why.

All findings have been submitted based on these scripts. Some have 
not yet been confirmed.

Note sure if it makes sense putting this type of API misuse cleanup
into mainline given the relatively small number of findings.

patch is against linux-next 3.19.0-rc1 (-next-20141226)


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

end of thread, other threads:[~2015-01-02 11:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-02  9:59 [PATCH 0/3 RFC] Coccinelle: completion API checking Nicholas Mc Guire
2015-01-02  9:59 ` [PATCH 1/3 RFC] Coccinelle: drop unecessary duplicated init_compltion calls Nicholas Mc Guire
2015-01-02  9:59 ` [PATCH 2/3 RFC] Coccinelle: check for incorrect DECLARE_COMPLETION use Nicholas Mc Guire
2015-01-02  9:59 ` [PATCH 3/3 RFC] Coccinelle: incorrect use of multiple init_completion Nicholas Mc Guire
2015-01-02 11:46 ` [PATCH 0/3 RFC] Coccinelle: completion API checking Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®