coccinelle: api: remove kobj_to_dev.cocci script

Using kobj_to_dev() instead of container_of() is not universally
accepted among maintainers as an improvement. The warning leads to
repeated patch submissions that won't be accepted. Remove the script.

Cc: Christoph Hellwig <>
Cc: Jens Axboe <>
Cc: Denis Efremov <>
Cc: Julia Lawall <>
Signed-off-by: Keith Busch <>
Signed-off-by: Julia Lawall <>
Acked-by: Jens Axboe <>
Acked-by: Denis Efremov <>
1 file changed