Date: Mon, 27 Sep 2010 06:02:12 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r213195 - stable/8/sys/kern Message-ID: <201009270602.o8R62CKm015124@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009270602.o8R62CKm015124>