The patch titled Subject: coccinelle: semantic patch for simple_open() has been removed from the -mm tree. Its filename was coccinelle-semantic-patch-for-simple_open.patch This patch was dropped because it was nacked The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ From: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Subject: coccinelle: semantic patch for simple_open() Find instances of an open-coded simple_open() and replace them with calls to simple_open(). This seems to eat the definition of simple_open() as well. Is there a way to say only remove both the function and the reference to the function so that libfs survives? Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> Cc: Julia Lawall <Julia.Lawall@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- scripts/coccinelle/api/simple_open.cocci | 34 +++++++++++++++++++++ 1 file changed, 34 insertions(+) diff -puN /dev/null scripts/coccinelle/api/simple_open.cocci --- /dev/null +++ a/scripts/coccinelle/api/simple_open.cocci @@ -0,0 +1,34 @@ +// This removes an open coded simple_open() function +// and replaces file operations references to the function +// with simple_open() instead. +// + +virtual patch +virtual context + +@ open @ +identifier open_f; +identifier i, f; +@@ +-int open_f(struct inode *i, struct file *f) +-{ +( +-if (i->i_private) +-f->private_data = i->i_private; +| +-f->private_data = i->i_private; +) +-return 0; +-} + +@ has_open depends on open @ +identifier fops; +identifier open.open_f; +@@ +struct file_operations fops = { +... +-.open = open_f, ++.open = simple_open, +... +}; + _ Patches currently in -mm which might be from sboyd@xxxxxxxxxxxxxx are origin.patch linux-next.patch libfs-add-simple_open.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html