Author: avg
Date: Mon Sep 27 06:02:12 2010
New Revision: 213195
URL: http://svn.freebsd.org/changeset/base/213195

Log:
  MFC r212544: bus_add_child: add specialized default implementation that
  calls panic

Modified:
  stable/8/sys/kern/bus_if.m
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/kern/bus_if.m
==============================================================================
--- stable/8/sys/kern/bus_if.m  Mon Sep 27 05:46:20 2010        (r213194)
+++ stable/8/sys/kern/bus_if.m  Mon Sep 27 06:02:12 2010        (r213195)
@@ -26,6 +26,8 @@
 # $FreeBSD$
 #
 
+#include <sys/types.h>
+#include <sys/systm.h>
 #include <sys/bus.h>
 
 /**
@@ -47,6 +49,14 @@ CODE {
        {
            return (0);
        }
+
+       static device_t
+       null_add_child(device_t bus, int order, const char *name,
+           int unit)
+       {
+
+               panic("bus_add_child is not implemented");
+       }
 };
 
 /**
@@ -194,7 +204,7 @@ METHOD device_t add_child {
        u_int _order;
        const char *_name;
        int _unit;
-};
+} DEFAULT null_add_child;
 
 /**
  * @brief Allocate a system resource
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to