linux-watchdog.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] [WATCHDOG] fix compiler warning on ali_pci_tbl
@ 2010-12-07 16:27 Namhyung Kim
  2010-12-07 16:27 ` [PATCH 2/2] [WATCHDOG] fix compiler warning on alim7101_pci_tbl Namhyung Kim
  2010-12-10 13:23 ` [PATCH 1/2] [WATCHDOG] fix compiler warning on ali_pci_tbl Wim Van Sebroeck
  0 siblings, 2 replies; 4+ messages in thread
From: Namhyung Kim @ 2010-12-07 16:27 UTC (permalink / raw)
  To: Wim Van Sebroeck; +Cc: linux-watchdog, linux-kernel

Annotate ali_pci_tbl as '__used' to fix following warning:

  CC      drivers/watchdog/alim1535_wdt.o
drivers/watchdog/alim1535_wdt.c:304: warning: ‘ali_pci_tbl’ defined but not used

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
 drivers/watchdog/alim1535_wdt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/watchdog/alim1535_wdt.c b/drivers/watchdog/alim1535_wdt.c
index 1e9caea..fa4d360 100644
--- a/drivers/watchdog/alim1535_wdt.c
+++ b/drivers/watchdog/alim1535_wdt.c
@@ -301,7 +301,7 @@ static int ali_notify_sys(struct notifier_block *this,
  *	want to register another driver on the same PCI id.
  */
 
-static struct pci_device_id ali_pci_tbl[] = {
+static struct pci_device_id ali_pci_tbl[] __used = {
 	{ PCI_VENDOR_ID_AL, 0x1533, PCI_ANY_ID, PCI_ANY_ID,},
 	{ PCI_VENDOR_ID_AL, 0x1535, PCI_ANY_ID, PCI_ANY_ID,},
 	{ 0, },
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] [WATCHDOG] fix compiler warning on alim7101_pci_tbl
  2010-12-07 16:27 [PATCH 1/2] [WATCHDOG] fix compiler warning on ali_pci_tbl Namhyung Kim
@ 2010-12-07 16:27 ` Namhyung Kim
  2010-12-10 13:23   ` Wim Van Sebroeck
  2010-12-10 13:23 ` [PATCH 1/2] [WATCHDOG] fix compiler warning on ali_pci_tbl Wim Van Sebroeck
  1 sibling, 1 reply; 4+ messages in thread
From: Namhyung Kim @ 2010-12-07 16:27 UTC (permalink / raw)
  To: Wim Van Sebroeck; +Cc: linux-watchdog, linux-kernel

Annotate alim7101_pci_tbl as '__used' to fix following warning:

  CC      drivers/watchdog/alim7101_wdt.o
drivers/watchdog/alim7101_wdt.c:433: warning: ‘alim7101_pci_tbl’ defined but not used

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
 drivers/watchdog/alim7101_wdt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/watchdog/alim7101_wdt.c b/drivers/watchdog/alim7101_wdt.c
index d8d4da9..4b7a2b4 100644
--- a/drivers/watchdog/alim7101_wdt.c
+++ b/drivers/watchdog/alim7101_wdt.c
@@ -430,7 +430,7 @@ err_out:
 module_init(alim7101_wdt_init);
 module_exit(alim7101_wdt_unload);
 
-static struct pci_device_id alim7101_pci_tbl[] __devinitdata = {
+static struct pci_device_id alim7101_pci_tbl[] __devinitdata __used = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M1533) },
 	{ PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M7101) },
 	{ }
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] [WATCHDOG] fix compiler warning on ali_pci_tbl
  2010-12-07 16:27 [PATCH 1/2] [WATCHDOG] fix compiler warning on ali_pci_tbl Namhyung Kim
  2010-12-07 16:27 ` [PATCH 2/2] [WATCHDOG] fix compiler warning on alim7101_pci_tbl Namhyung Kim
@ 2010-12-10 13:23 ` Wim Van Sebroeck
  1 sibling, 0 replies; 4+ messages in thread
From: Wim Van Sebroeck @ 2010-12-10 13:23 UTC (permalink / raw)
  To: Namhyung Kim; +Cc: linux-watchdog, linux-kernel

Hi Kim,

> Annotate ali_pci_tbl as '__used' to fix following warning:
> 
>   CC      drivers/watchdog/alim1535_wdt.o
> drivers/watchdog/alim1535_wdt.c:304: warning: ‘ali_pci_tbl’ defined but not used
> 
> Signed-off-by: Namhyung Kim <namhyung@gmail.com>

Will be added to linux-2.6-watchdog-next.

Kind regards,
Wim.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] [WATCHDOG] fix compiler warning on alim7101_pci_tbl
  2010-12-07 16:27 ` [PATCH 2/2] [WATCHDOG] fix compiler warning on alim7101_pci_tbl Namhyung Kim
@ 2010-12-10 13:23   ` Wim Van Sebroeck
  0 siblings, 0 replies; 4+ messages in thread
From: Wim Van Sebroeck @ 2010-12-10 13:23 UTC (permalink / raw)
  To: Namhyung Kim; +Cc: linux-watchdog, linux-kernel

Hi Kim,

> Annotate alim7101_pci_tbl as '__used' to fix following warning:
> 
>   CC      drivers/watchdog/alim7101_wdt.o
> drivers/watchdog/alim7101_wdt.c:433: warning: ‘alim7101_pci_tbl’ defined but not used
> 
> Signed-off-by: Namhyung Kim <namhyung@gmail.com>

Will be added to linux-2.6-watchdog-next.

Kind regards,
Wim.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-12-10 13:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-07 16:27 [PATCH 1/2] [WATCHDOG] fix compiler warning on ali_pci_tbl Namhyung Kim
2010-12-07 16:27 ` [PATCH 2/2] [WATCHDOG] fix compiler warning on alim7101_pci_tbl Namhyung Kim
2010-12-10 13:23   ` Wim Van Sebroeck
2010-12-10 13:23 ` [PATCH 1/2] [WATCHDOG] fix compiler warning on ali_pci_tbl Wim Van Sebroeck

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).