diff options
| -rw-r--r-- | drivers/hv/channel.c | 2 | ||||
| -rw-r--r-- | drivers/hv/connection.c | 3 | ||||
| -rw-r--r-- | drivers/hv/hyperv_vmbus.h | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index 727c5f1d6acf..70a34daa04c1 100644 --- a/drivers/hv/channel.c +++ b/drivers/hv/channel.c | |||
| @@ -55,7 +55,7 @@ static void vmbus_setevent(struct vmbus_channel *channel) | |||
| 55 | [channel->monitor_grp].pending); | 55 | [channel->monitor_grp].pending); |
| 56 | 56 | ||
| 57 | } else { | 57 | } else { |
| 58 | vmbus_set_event(channel->offermsg.child_relid); | 58 | vmbus_set_event(channel); |
| 59 | } | 59 | } |
| 60 | } | 60 | } |
| 61 | 61 | ||
diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c index 3f8ce7be4c18..0d8b13290e93 100644 --- a/drivers/hv/connection.c +++ b/drivers/hv/connection.c | |||
| @@ -395,8 +395,9 @@ int vmbus_post_msg(void *buffer, size_t buflen) | |||
| 395 | /* | 395 | /* |
| 396 | * vmbus_set_event - Send an event notification to the parent | 396 | * vmbus_set_event - Send an event notification to the parent |
| 397 | */ | 397 | */ |
| 398 | int vmbus_set_event(u32 child_relid) | 398 | int vmbus_set_event(struct vmbus_channel *channel) |
| 399 | { | 399 | { |
| 400 | u32 child_relid = channel->offermsg.child_relid; | ||
| 400 | /* Each u32 represents 32 channels */ | 401 | /* Each u32 represents 32 channels */ |
| 401 | sync_set_bit(child_relid & 31, | 402 | sync_set_bit(child_relid & 31, |
| 402 | (unsigned long *)vmbus_connection.send_int_page + | 403 | (unsigned long *)vmbus_connection.send_int_page + |
diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h index 61d2c4f6fc17..cd48ac331708 100644 --- a/drivers/hv/hyperv_vmbus.h +++ b/drivers/hv/hyperv_vmbus.h | |||
| @@ -660,7 +660,7 @@ int vmbus_connect(void); | |||
| 660 | 660 | ||
| 661 | int vmbus_post_msg(void *buffer, size_t buflen); | 661 | int vmbus_post_msg(void *buffer, size_t buflen); |
| 662 | 662 | ||
| 663 | int vmbus_set_event(u32 child_relid); | 663 | int vmbus_set_event(struct vmbus_channel *channel); |
| 664 | 664 | ||
| 665 | void vmbus_on_event(unsigned long data); | 665 | void vmbus_on_event(unsigned long data); |
| 666 | 666 | ||
