Coccinelle: Add locks/call_kern.cocci
authorNicolas Palix <npalix@diku.dk>
Tue, 24 Aug 2010 15:38:58 +0000 (17:38 +0200)
committerMichal Marek <mmarek@suse.cz>
Tue, 31 Aug 2010 09:37:53 +0000 (11:37 +0200)
commite105007c1271243568d58c8a4285b19c8eea48d1
treebbc640aea054a967e7d9674d408aa738ad6feecb
parent7703692ef8d6356c32fbe9665d8cbe5b040eec09
Coccinelle: Add locks/call_kern.cocci

Find functions that refer to GFP_KERNEL but are called with locks held.
The proposed change of converting the GFP_KERNEL is not necessarily the
correct one.  It may be desired to unlock the lock, or to not call the
function under the lock in the first place.

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/coccinelle/locks/call_kern.cocci [new file with mode: 0644]