Re: [RESEND PATCH] trivial: treewide: remove extra semicolon addedby module_init/exit

From: Joe Perches
Date: Wed Jun 06 2012 - 10:47:39 EST


On Wed, 2012-06-06 at 17:02 +0300, Felipe Balbi wrote:
> The definition of module_init() and module_exit()
> already added the final semicolon creating a situation
> where most of our drivers end up with two semicolons
> at the end of every module_init()/module_exit() call.
>
> To fix that, we add missing semicolons to the places
> which didn't have them and remove the semicolons from
> the definition of module_init/module_exit.
>
> Patch generated with the following sed script:
>
> $ sed -i 's/^module_\(init\|exit\)\s*\((\w\+)\)$/module_\1\2;/g' \
> $(git ls-files)

I don't think that script works completely.
It doesn't find the module_init in fs/autofs4/init.c


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/