* [PATCH] fujitsu-laptop: fix compiler warning on pnp_ids
@ 2010-12-07 15:04 Namhyung Kim
2010-12-07 22:19 ` Jonathan Woithe
0 siblings, 1 reply; 2+ messages in thread
From: Namhyung Kim @ 2010-12-07 15:04 UTC (permalink / raw)
To: Jonathan Woithe, Matthew Garrett; +Cc: platform-driver-x86, linux-kernel
Annotate pnp_ids as '__used' to fix following warning:
CC drivers/platform/x86/fujitsu-laptop.o
drivers/platform/x86/fujitsu-laptop.c:1243: warning: ‘pnp_ids’ defined but not used
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
drivers/platform/x86/fujitsu-laptop.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/platform/x86/fujitsu-laptop.c b/drivers/platform/x86/fujitsu-laptop.c
index f44cd26..ad88b2e 100644
--- a/drivers/platform/x86/fujitsu-laptop.c
+++ b/drivers/platform/x86/fujitsu-laptop.c
@@ -1240,7 +1240,7 @@ MODULE_ALIAS("dmi:*:svnFUJITSUSIEMENS:*:pvr:rvnFUJITSU:rnFJNB1D3:*:cvrS6410:*");
MODULE_ALIAS("dmi:*:svnFUJITSUSIEMENS:*:pvr:rvnFUJITSU:rnFJNB1E6:*:cvrS6420:*");
MODULE_ALIAS("dmi:*:svnFUJITSU:*:pvr:rvnFUJITSU:rnFJNB19C:*:cvrS7020:*");
-static struct pnp_device_id pnp_ids[] = {
+static struct pnp_device_id pnp_ids[] __used = {
{.id = "FUJ02bf"},
{.id = "FUJ02B1"},
{.id = "FUJ02E3"},
--
1.7.0.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] fujitsu-laptop: fix compiler warning on pnp_ids
2010-12-07 15:04 [PATCH] fujitsu-laptop: fix compiler warning on pnp_ids Namhyung Kim
@ 2010-12-07 22:19 ` Jonathan Woithe
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Woithe @ 2010-12-07 22:19 UTC (permalink / raw)
To: Namhyung Kim
Cc: Jonathan Woithe, Matthew Garrett, platform-driver-x86, linux-kernel
Looks fine to me.
Acked-by: Jonathan Woithe <jwoithe@physics.adelaide.edu.au>
> Annotate pnp_ids as '__used' to fix following warning:
>
> CC drivers/platform/x86/fujitsu-laptop.o
> drivers/platform/x86/fujitsu-laptop.c:1243: warning: âpnp_idsâ defined but not used
>
> Signed-off-by: Namhyung Kim <namhyung@gmail.com>
> ---
> drivers/platform/x86/fujitsu-laptop.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/platform/x86/fujitsu-laptop.c b/drivers/platform/x86/fujitsu-laptop.c
> index f44cd26..ad88b2e 100644
> --- a/drivers/platform/x86/fujitsu-laptop.c
> +++ b/drivers/platform/x86/fujitsu-laptop.c
> @@ -1240,7 +1240,7 @@ MODULE_ALIAS("dmi:*:svnFUJITSUSIEMENS:*:pvr:rvnFUJITSU:rnFJNB1D3:*:cvrS6410:*");
> MODULE_ALIAS("dmi:*:svnFUJITSUSIEMENS:*:pvr:rvnFUJITSU:rnFJNB1E6:*:cvrS6420:*");
> MODULE_ALIAS("dmi:*:svnFUJITSU:*:pvr:rvnFUJITSU:rnFJNB19C:*:cvrS7020:*");
>
> -static struct pnp_device_id pnp_ids[] = {
> +static struct pnp_device_id pnp_ids[] __used = {
> {.id = "FUJ02bf"},
> {.id = "FUJ02B1"},
> {.id = "FUJ02E3"},
> --
> 1.7.0.4
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-07 22:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-07 15:04 [PATCH] fujitsu-laptop: fix compiler warning on pnp_ids Namhyung Kim
2010-12-07 22:19 ` Jonathan Woithe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®