From: Nicolas Ferre <nicolas.ferre@atmel.com>
To: Felipe Balbi <balbi@ti.com>
Cc: <trivial@kernel.org>,
Linux Kernel list <linux-kernel@vger.kernel.org>,
David Miller <davem@davemloft.net>
Subject: Re: [PATCH] trivial: treewide: remove extra semicolon added by module_init/exit
Date: Sun, 10 Jun 2012 14:39:54 +0200 [thread overview]
Message-ID: <4FD4959A.4060907@atmel.com> (raw)
In-Reply-To: <1338990069-6627-1-git-send-email-balbi@ti.com>
(Not putting everybody in copy, but still replying)
Felipe,
On 06/06/2012 03:41 PM, Felipe Balbi :
> 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)
>
> Signed-off-by: Felipe Balbi <balbi@ti.com>
> ---
>
> compile tested with allyesconfig, allnoconfig and allmodconfig on
> x86 only.
>
> Unfortunately I couldn't Cc everybody on get_maintainer.pl's output
> due to recipient limits on TI's mail server.
[..]
> drivers/net/ethernet/cadence/at91_ether.c | 4 ++--
[..]
> diff --git a/drivers/net/ethernet/cadence/at91_ether.c b/drivers/net/ethernet/cadence/at91_ether.c
> index 7788419..b107e7f 100644
> --- a/drivers/net/ethernet/cadence/at91_ether.c
> +++ b/drivers/net/ethernet/cadence/at91_ether.c
> @@ -1290,8 +1290,8 @@ static void __exit at91ether_exit(void)
> platform_driver_unregister(&at91ether_driver);
> }
>
> -module_init(at91ether_init)
> -module_exit(at91ether_exit)
> +module_init(at91ether_init);
> +module_exit(at91ether_exit);
>
> MODULE_LICENSE("GPL");
> MODULE_DESCRIPTION("AT91RM9200 EMAC Ethernet driver");
For this Atmel network driver, you can add my:
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Best regards,
--
Nicolas Ferre
next parent reply other threads:[~2012-06-10 12:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1338990069-6627-1-git-send-email-balbi@ti.com>
2012-06-10 12:39 ` Nicolas Ferre [this message]
[not found] ` <20120606083119.0d0a0029@nehalam.linuxnetplumber.net>
[not found] ` <87zk8bhfds.fsf@rustcorp.com.au>
[not found] ` <20120611142028.380c5a61@nehalam.linuxnetplumber.net>
2012-06-12 0:26 ` [PATCH] trivial: treewide: remove extra semicolon added by module_init/exit Rusty Russell
2012-06-12 9:43 ` Felipe Balbi
2012-06-12 9:47 ` Felipe Balbi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FD4959A.4060907@atmel.com \
--to=nicolas.ferre@atmel.com \
--cc=balbi@ti.com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox