diff options
author | zbb <zbb@FreeBSD.org> | 2016-02-18 15:44:45 +0000 |
---|---|---|
committer | zbb <zbb@FreeBSD.org> | 2016-02-18 15:44:45 +0000 |
commit | 9fb865d0991f5a39f227a3449c5b5b5ff6228af3 (patch) | |
tree | dc215d0a1bcc9820d3755f78c07a0c3be51354ac | |
parent | 2da7acfc0589db04743d85314ef3725d94355257 (diff) | |
download | FreeBSD-src-9fb865d0991f5a39f227a3449c5b5b5ff6228af3.zip FreeBSD-src-9fb865d0991f5a39f227a3449c5b5b5ff6228af3.tar.gz |
Fix build for i386 and arm64 after r295755
- Take bus_space_tag_t type into consideration when returning
default, zero value.
- Include missing rman.h required by ofw_pci.h
-rw-r--r-- | sys/dev/ofw/ofw_subr.c | 1 | ||||
-rw-r--r-- | sys/kern/subr_bus.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ofw/ofw_subr.c b/sys/dev/ofw/ofw_subr.c index be31ccb..e9b66c2 100644 --- a/sys/dev/ofw/ofw_subr.c +++ b/sys/dev/ofw/ofw_subr.c @@ -34,6 +34,7 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/bus.h> #include <sys/libkern.h> +#include <sys/rman.h> #include <machine/bus.h> diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 3e4568b..22cddea 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -4107,7 +4107,7 @@ bus_generic_get_bus_tag(device_t dev, device_t child) /* Propagate up the bus hierarchy until someone handles it. */ if (dev->parent != NULL) return (BUS_GET_BUS_TAG(dev->parent, child)); - return (NULL); + return ((bus_space_tag_t)0); } /** @@ -4604,7 +4604,7 @@ bus_get_bus_tag(device_t dev) parent = device_get_parent(dev); if (parent == NULL) - return (NULL); + return ((bus_space_tag_t)0); return (BUS_GET_BUS_TAG(parent, dev)); } |