From: Jean Delvare <jdelvare@suse.de>
To: Wolfram Sang <wsa+renesas@sang-engineering.com>
Cc: linux-i2c@vger.kernel.org, Guenter Roeck <linux@roeck-us.net>,
linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH 1/2] i2c: stub: move module_init/exit annotations to the proper place
Date: Thu, 18 May 2017 09:58:42 +0200 [thread overview]
Message-ID: <20170518095842.7f3b612a@endymion> (raw)
In-Reply-To: <20170516112105.2793-1-wsa+renesas@sang-engineering.com>
Hi Wolfram,
On Tue, 16 May 2017 13:21:04 +0200, Wolfram Sang wrote:
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> ---
> drivers/i2c/i2c-stub.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/i2c/i2c-stub.c b/drivers/i2c/i2c-stub.c
> index 06af583d510150..0aa4d646f8fb26 100644
> --- a/drivers/i2c/i2c-stub.c
> +++ b/drivers/i2c/i2c-stub.c
> @@ -406,16 +406,15 @@ static int __init i2c_stub_init(void)
> i2c_stub_free();
> return ret;
> }
> +module_init(i2c_stub_init);
>
> static void __exit i2c_stub_exit(void)
> {
> i2c_del_adapter(&stub_adapter);
> i2c_stub_free();
> }
> +module_exit(i2c_stub_exit);
>
> MODULE_AUTHOR("Mark M. Hoffman <mhoffman@lightlink.com>");
> MODULE_DESCRIPTION("I2C stub driver");
> MODULE_LICENSE("GPL");
> -
> -module_init(i2c_stub_init);
> -module_exit(i2c_stub_exit);
I'm not sure on what you base your claim that this is the "proper
place". checkpatch doesn't complain about either, and if anything, the
original style (module_init/exit) at end of file seems a lot more
popular through the kernel tree.
--
Jean Delvare
SUSE L3 Support
next prev parent reply other threads:[~2017-05-18 7:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-16 11:21 [PATCH 1/2] i2c: stub: move module_init/exit annotations to the proper place Wolfram Sang
2017-05-16 11:21 ` [PATCH 2/2] i2c: stub: use pr_fmt Wolfram Sang
2017-05-18 8:39 ` Jean Delvare
2017-06-02 20:49 ` Wolfram Sang
2017-05-18 7:58 ` Jean Delvare [this message]
2017-05-18 8:14 ` [PATCH 1/2] i2c: stub: move module_init/exit annotations to the proper place Wolfram Sang
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=20170518095842.7f3b612a@endymion \
--to=jdelvare@suse.de \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=wsa+renesas@sang-engineering.com \
/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;
as well as URLs for NNTP newsgroup(s).