From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: Jingoo Han <jg1.han@samsung.com>
Cc: "'Bryan Wu'" <cooloney@gmail.com>,
linux-leds@vger.kernel.org,
"'Richard Purdie'" <rpurdie@rpsys.net>,
"'Márton Németh'" <nm127@freemail.hu>,
"'Ondrej Zary'" <linux@rainbow-software.org>
Subject: Re: [PATCH 2/2] leds: clevo-mail: remove unnecessary __initdata marker
Date: Fri, 28 Feb 2014 11:29:43 +0100 [thread overview]
Message-ID: <20140228102943.GO6865@pengutronix.de> (raw)
In-Reply-To: <001101cf3456$593bd940$0bb38bc0$%han@samsung.com>
Hi,
On Fri, Feb 28, 2014 at 04:26:08PM +0900, Jingoo Han wrote:
> Remove unnecessary __initdata marker, because it is not right
> for a module parameter. It may make the kernel oops problem.
I wouldn't call it "unnecessary". Does the kernel oops if you access the
parameter's sysfs file with __initdata in place or doesn't it? If so
it's definitly not unnecessary but plain wrong.
Best regards
Uwe
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
> drivers/leds/leds-clevo-mail.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/leds/leds-clevo-mail.c b/drivers/leds/leds-clevo-mail.c
> index d93e245..19202f5 100644
> --- a/drivers/leds/leds-clevo-mail.c
> +++ b/drivers/leds/leds-clevo-mail.c
> @@ -19,7 +19,7 @@ MODULE_AUTHOR("Márton Németh <nm127@freemail.hu>");
> MODULE_DESCRIPTION("Clevo mail LED driver");
> MODULE_LICENSE("GPL");
>
> -static bool __initdata nodetect;
> +static bool nodetect;
> module_param_named(nodetect, nodetect, bool, 0);
> MODULE_PARM_DESC(nodetect, "Skip DMI hardware detection");
>
> --
> 1.7.10.4
>
>
>
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
next prev parent reply other threads:[~2014-02-28 10:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-28 7:25 [PATCH 1/2] leds: leds-ss4200: remove unnecessary __initdata marker Jingoo Han
2014-02-28 7:26 ` [PATCH 2/2] leds: clevo-mail: " Jingoo Han
2014-02-28 10:29 ` Uwe Kleine-König [this message]
2014-02-28 20:24 ` Bryan Wu
2014-02-28 22:33 ` [PATCH 1/2] leds: leds-ss4200: " Bryan Wu
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=20140228102943.GO6865@pengutronix.de \
--to=u.kleine-koenig@pengutronix.de \
--cc=cooloney@gmail.com \
--cc=jg1.han@samsung.com \
--cc=linux-leds@vger.kernel.org \
--cc=linux@rainbow-software.org \
--cc=nm127@freemail.hu \
--cc=rpurdie@rpsys.net \
/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).