The following reply was made to PR kern/53389; it has been noted by GNATS.
From: Paul Goyette <paul%whooppee.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: kern-bug-people%netbsd.org@localhost
Subject: Re: kern/53389: ataraid doesn't work without _MODULE
Date: Fri, 22 Jun 2018 15:05:42 +0800 (+08)
Can you please try the following patch _instead of_ your suggestion?
This patch calls config_cfattach_attach() in the ataraid_modcmd() code
whether or not it is built as a module, and avoids duplication of the
call. This version also handles the MODULE_FINI situation which can
occur if a built-in module is explicitly disabled via modctl(8).