mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Fix warning in hisax/config.c
@ 2004-06-09 23:32 Stian Jordet
  2004-06-09 23:37 ` Stian Jordet
  0 siblings, 1 reply; 2+ messages in thread
From: Stian Jordet @ 2004-06-09 23:32 UTC (permalink / raw)
  To: linux-kernel; +Cc: kkeil

Hi,

is this patch correct? It silences the warning, and everything seems to
work fine for me.

Best regards,
Stian

--- linux-2.6.6/drivers/isdn/hisax/config.c.old	2004-06-06
01:43:01.000000000 +0200
+++ linux-2.6.6/drivers/isdn/hisax/config.c	2004-06-06
01:43:24.000000000 +0200
@@ -1886,6 +1886,8 @@
 
 #include <linux/pci.h>
 
+#ifdef MODULE
+
 static struct pci_device_id hisax_pci_tbl[] __initdata = {
 #ifdef CONFIG_HISAX_FRITZPCI
 	{PCI_VENDOR_ID_AVM,      PCI_DEVICE_ID_AVM_A1,           PCI_ANY_ID,
PCI_ANY_ID},
@@ -1953,6 +1955,8 @@
 
 MODULE_DEVICE_TABLE(pci, hisax_pci_tbl);
 
+#endif
+
 module_init(HiSax_init);
 module_exit(HiSax_exit);
 



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

* Re: Fix warning in hisax/config.c
  2004-06-09 23:32 Fix warning in hisax/config.c Stian Jordet
@ 2004-06-09 23:37 ` Stian Jordet
  0 siblings, 0 replies; 2+ messages in thread
From: Stian Jordet @ 2004-06-09 23:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: kkeil

[-- Attachment #1: Type: text/plain, Size: 206 bytes --]

tor, 10.06.2004 kl. 01.32 +0200, skrev Stian Jordet:
> Hi,
> 
> is this patch correct? It silences the warning, and everything seems to
> work fine for me.

Uhh, more like this. Sorry.

Best regards,
Stian

[-- Attachment #2: isdn-patch.txt --]
[-- Type: text/plain, Size: 537 bytes --]

--- linux-2.6.6/drivers/isdn/hisax/config.c.old	2004-06-06 01:43:01.000000000 +0200
+++ linux-2.6.6/drivers/isdn/hisax/config.c	2004-06-06 01:43:24.000000000 +0200
@@ -1886,6 +1886,8 @@
 
 #include <linux/pci.h>
 
+#ifdef MODULE
+
 static struct pci_device_id hisax_pci_tbl[] __initdata = {
 #ifdef CONFIG_HISAX_FRITZPCI
 	{PCI_VENDOR_ID_AVM,      PCI_DEVICE_ID_AVM_A1,           PCI_ANY_ID, PCI_ANY_ID},
@@ -1953,6 +1955,8 @@
 
 MODULE_DEVICE_TABLE(pci, hisax_pci_tbl);
 
+#endif
+
 module_init(HiSax_init);
 module_exit(HiSax_exit);
 

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

end of thread, other threads:[~2004-06-09 23:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-09 23:32 Fix warning in hisax/config.c Stian Jordet
2004-06-09 23:37 ` Stian Jordet

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®