Date: Fri, 24 Jan 1997 13:30:02 -0800 (PST) From: se@freebsd.org (Stefan Esser) To: freebsd-bugs Subject: Re: kern/2463: pci gets included without being asked for Message-ID: <199701242130.NAA20822@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/2463; it has been noted by GNATS. From: se@freebsd.org (Stefan Esser) To: andrew@ugh.net.au Cc: freebsd-gnats-submit@freebsd.org Subject: Re: kern/2463: pci gets included without being asked for Date: Fri, 24 Jan 1997 22:25:11 +0100 On Jan 12, andrew@ugh.net.au wrote: > >Synopsis: pci gets included without being asked for > >Description: > Despite not having pci mentioned in my kernel config file at all the > makefile produced by config still contains $S/pci/wd82371.c. Is this a > bug? The file seems to be something about pci ide controllers but I'm not > sure...I definitley dont have pci :-( Well, and then you definitely don't care, whether wd82371.c will be compiled, since it is pre-processed into an empty file, if you don't have pci0 configured ... (I.e. the whole body of wd82371.c is included in "#if NPCI > 0".) It is debatable, whether wd82371.c should be included into the Makefile, if "wd0" is defined, or whether it should depend on pci0, but would then contain an "#if NWD > 0" ... (And I would in fact prefer the latter method.) This is not a real problem: The /sys/conf/files format just does not allow to include a file only if there are TWO devices configured in the kernel configuration file. This is dealt with by checking for the second condition from within the source file. I will therefor close the PR.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701242130.NAA20822>