Subject: foo_init()s in main() [was: CVS commit: src/sys]
To: None <martin@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-kern
Date: 11/22/2005 11:29:35
[ moved from source-changes to tech-kern ]

Martin Husemann wrote:

> Module Name:	src
> Committed By:	martin
> Date:		Fri Nov 18 21:55:14 UTC 2005
> 
> Modified Files:
> 
> 	src/sys/conf: files
> 	src/sys/kern: init_main.c
> 
> Log Message:
> 
> Only call ieee80211_init() in kernels that include some wlan stuff.

It really seems like we should do something to automate this, say based
on the FreeBSD sysinit stuff or linksets or something.  The number of
#ifdefs and includes of needs-flags files and calls to foo_init() in
main() is getting unwieldy.

Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD Support and Service:         http://www.wasabisystems.com/