summaryrefslogtreecommitdiffstats
path: root/sys/dev/xen
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2009-06-13 21:55:08 +0000
committerkmacy <kmacy@FreeBSD.org>2009-06-13 21:55:08 +0000
commit911d9e9abc54d62dd3c2d6df06c6809cedf68113 (patch)
tree4351264887fe29c9880db45e1ca56387b888162e /sys/dev/xen
parent884d344808b868ba1813aabf798a590a5a99683a (diff)
downloadFreeBSD-src-911d9e9abc54d62dd3c2d6df06c6809cedf68113.zip
FreeBSD-src-911d9e9abc54d62dd3c2d6df06c6809cedf68113.tar.gz
update backend_changed to reflect .m prototype
Diffstat (limited to 'sys/dev/xen')
-rw-r--r--sys/dev/xen/blkfront/blkfront.c4
-rw-r--r--sys/dev/xen/netfront/netfront.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/xen/blkfront/blkfront.c b/sys/dev/xen/blkfront/blkfront.c
index 01493a6..f73c812 100644
--- a/sys/dev/xen/blkfront/blkfront.c
+++ b/sys/dev/xen/blkfront/blkfront.c
@@ -500,7 +500,7 @@ setup_blkring(device_t dev, struct blkfront_info *info)
/**
* Callback received when the backend's state changes.
*/
-static void
+static int
blkfront_backend_changed(device_t dev, XenbusState backend_state)
{
struct blkfront_info *info = device_get_softc(dev);
@@ -542,6 +542,8 @@ blkfront_backend_changed(device_t dev, XenbusState backend_state)
bdput(bd);
#endif
}
+
+ return (0);
}
/*
diff --git a/sys/dev/xen/netfront/netfront.c b/sys/dev/xen/netfront/netfront.c
index 57e9334..571ecd0 100644
--- a/sys/dev/xen/netfront/netfront.c
+++ b/sys/dev/xen/netfront/netfront.c
@@ -618,7 +618,7 @@ netfront_send_fake_arp(device_t dev, struct netfront_info *info)
/**
* Callback received when the backend's state changes.
*/
-static void
+static int
netfront_backend_changed(device_t dev, XenbusState newstate)
{
struct netfront_info *sc = device_get_softc(dev);
@@ -646,6 +646,7 @@ netfront_backend_changed(device_t dev, XenbusState newstate)
xenbus_set_state(dev, XenbusStateClosed);
break;
}
+ return (0);
}
static void
OpenPOWER on IntegriCloud