update backend_changed to reflect .m prototype
This commit is contained in:
parent
960da93430
commit
cfed37836e
sys/dev/xen
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user