Subject: Bug in mac68k5380.c
To: None <port-mac68k@NetBSD.ORG>
From: Arnaud Blanchard <jblancha@pratique.fr>
List: port-mac68k
Date: 12/19/1996 22:47:16
Hi,

I supped my source tree yesterday, and when I tried to compile my
own kernel, it stops on mac68k5380.c, with these errors :

mac68k5380.c
ncr5380.c: In function `ncr_match':
In file included from mac68k5380.c:644:
ncr5380.c:226: declaration for parameter `auxp' but no such parameter
ncr5380.c:227: argument `aux' doesn't match prototype
ncr5380.c:205: prototype declaration
ncr5380.c:227: number of arguments doesn't match prototype
ncr5380.c:205: prototype declaration
ncr5380.c:228: `pdp' undeclared (first use this function)
ncr5380.c:228: (Each undeclared identifier is reported only once
ncr5380.c:228: for each function it appears in.)
ncr5380.c:228: `match' undeclared (first use this function)

so I made a little patch :
--- ncr5380.c.bak	Thu Dec 19 19:53:31 1996
+++ ncr5380.c	Thu Dec 19 19:59:22 1996
@@ -220,12 +220,12 @@
 };

 int
-ncr_match(parent, cf, aux)
+ncr_match(parent, cf, auxp)
 	struct device *parent;
 	struct cfdata *cf;
 	void *auxp;
 {
-	return (machine_match(pdp, match, auxp, &CFNAME(DRNAME)));
+	return (machine_match(parent, cf, auxp, &CFNAME(DRNAME)));
 }

 void

Am I doing some sort of mistake ?
Anyway, It's working very well for  me .


/jblancha@pratique.fr