Subject: kernel build error: if_le_isa: incompat. pointer type
To: None <current-users@NetBSD.ORG>
From: Rick Byers <>
List: current-users
Date: 04/09/1998 13:57:57
After yesterday's (and today's) sup, my kernel won't build.  I see le0 is
commented out of GENERIC, so this probably won't affect most people (it
builds fine without my network interface - but I need it).  I get:

cc1: warnings being treated as errors
../../../../dev/isa/if_le_isa.c:119: warning: initialization from incompatible pointer type
*** Error code 1

I'm not sure how far back this goes (havn't supped in a couple months).  

if_le_isa.c has the following at lines 115-120:
int le_isa_probe __P((struct device *, void *, void *));
void le_isa_attach __P((struct device *, struct device *, void *));

struct cfattach le_isa_ca = {
	sizeof(struct le_softc), le_isa_probe, le_isa_attach

In sys/device.h, cfattach is defined as:

typedef int (*cfmatch_t) __P((struct device *, void *, void *));
typedef void (*cfscan_t) __P((struct device *, void *));
typedef int (*cfmatch_t) __P((struct device *, struct cfdata *, void *));

struct cfattach {
	size_t	  ca_devsize;		/* size of dev data (for malloc) */
	cfmatch_t ca_match;		/* returns a match level */
	void	(*ca_attach) __P((struct device *, struct device *, void *));
	/* XXX should have detach */

Something needs to be changed here (related to BROKEN_INDIRECT_CONFIG?),
but I'm not sure exactly what.  I could guess, but I'd probably just break
something else - so please let me know what needs to be fixed...


Rick Byers                                      Internet Access Worldwide                                		     System Admin
University of Waterloo, Computer Science                    (905)714-1400