linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG #568][PATCH-2.6.0-test3] compile failure in drivers/isdn/hisax/diva.c
@ 2003-08-15 16:06 Krishnakumar. R
  0 siblings, 0 replies; only message in thread
From: Krishnakumar. R @ 2003-08-15 16:06 UTC (permalink / raw)
  To: trivial; +Cc: linux-kernel

Hi,

The following patch is against 2.6.0-test3.
The patch enables the compilation of the diva.c.
This is a probable solution to [BUG #568] -  compile failure in drivers/isdn/hisax/diva.c

Regards
KK

Compilation errors.
=====================================================
drivers/isdn/hisax/diva.c: In function `setup_diva':
drivers/isdn/hisax/diva.c:754: `cs' undeclared (first use in this function)
drivers/isdn/hisax/diva.c:754: (Each undeclared identifier is reported only once
drivers/isdn/hisax/diva.c:754: for each function it appears in.)
drivers/isdn/hisax/diva.c:761: parse error before "else"
drivers/isdn/hisax/diva.c: At top level:
drivers/isdn/hisax/diva.c:776: parse error before "if"
drivers/isdn/hisax/diva.c:795: parse error before string constant
drivers/isdn/hisax/diva.c:795: warning: type defaults to `int' in declaration of `printk'
drivers/isdn/hisax/diva.c:795: warning: function declaration isn't a prototype
drivers/isdn/hisax/diva.c:795: warning: data definition has no type or storage class
drivers/isdn/hisax/diva.c:602: warning: `diva_pci_probe' defined but not used
drivers/isdn/hisax/diva.c:629: warning: `diva_ipac_pci_probe' defined but not used
drivers/isdn/hisax/diva.c:656: warning: `diva_ipacx_pci_probe' defined but not used
drivers/isdn/hisax/diva.c:677: warning: `dev_diva' defined but not used
drivers/isdn/hisax/diva.c:678: warning: `dev_diva_u' defined but not used
drivers/isdn/hisax/diva.c:679: warning: `dev_diva201' defined but not used

=======================================================

diffstat output:

 diva.c |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

================================================================

The following is the patch which fixes the compilation error.


--- linux-2.6.0-test3/drivers/isdn/hisax/diva.orig.c	2003-08-09 10:11:36.000000000 +0530
+++ linux-2.6.0-test3/drivers/isdn/hisax/diva.c	2003-08-15 21:24:44.000000000 +0530
@@ -751,24 +751,24 @@
 					card->para[1] = pnp_port_start(pd, 0);
 					card->para[0] = pnp_irq(pd, 0);
 					if (pdev->function == ISAPNP_FUNCTION(0xA1)) {
-						if (diva_ipac_isa_probe(cs->card, cs))
+						if (diva_ipac_isa_probe(card->cs, card))
 							return 0;
 						return 1;
 					} else {
-						if (diva_isac_isa_probe(cs->card, cs))
+						if (diva_isac_isa_probe(card->cs, card))
 							return 0;
 						return 1;
-					} else {
-						printk(KERN_ERR "Diva PnP: PnP error card found, no device\n");
-						return(0);
-					}
+					} 
+				}else {
+					printk(KERN_ERR "Diva PnP: PnP error card found, no device\n");
+					return(0);
 				}
-				pdev++;
-				pnp_c=NULL;
-			} 
-			if (!pdev->card_vendor) {
-				printk(KERN_INFO "Diva PnP: no ISAPnP card found\n");
 			}
+			pdev++;
+			pnp_c=NULL;
+		}
+		if (!pdev->card_vendor) {
+			printk(KERN_INFO "Diva PnP: no ISAPnP card found\n");
 		}
 	}
 #endif





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-15 16:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-15 16:06 [BUG #568][PATCH-2.6.0-test3] compile failure in drivers/isdn/hisax/diva.c Krishnakumar. R

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