domain_add(xxx) after domainfinalize...

From: John-Mark Gurney <jmg_at_funkthat.com>
Date: Fri, 1 Aug 2014 12:34:03 -0700
So, I have a laptop that devd loads the bluetooth module every time..

This means I get the following error on every boot:
WARNING: attempt to domain_add(bluetooth) after domainfinalize()
WARNING: attempt to domain_add(netgraph) after domainfinalize()

Is there any real benefit to this warning?  I just looked at the code,
and the domain gets added despite the warning...

Also, it looks like the pervious warning, we should just make that an
if/panic since it's clearly a programming bug, or kill the ifndef
INVARIANTS...

Index: uipc_domain.c
===================================================================
--- uipc_domain.c       (revision 266964)
+++ uipc_domain.c       (working copy)
_at__at_ -227,15 +227,6 _at__at_
                printf("WARNING: attempt to domain_add(%s) before "
                    "domaininit()\n", dp->dom_name);
 #endif
-#ifdef notyet
-       KASSERT(domain_init_status < 2,
-           ("attempt to domain_add(%s) after domainfinalize()",
-           dp->dom_name));
-#else
-       if (domain_init_status >= 2)
-               printf("WARNING: attempt to domain_add(%s) after "
-                   "domainfinalize()\n", dp->dom_name);
-#endif
        mtx_unlock(&dom_mtx);
 }
 

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."
Received on Fri Aug 01 2014 - 17:34:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:51 UTC