diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-03-28 09:58:07 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-09 15:05:47 -0700 |
commit | 415f0a02adaea754dc85cde7b50707f7fbc4cf3f (patch) | |
tree | 9ee25bdf6018d8154f2cdf488b03e6e086caf366 /drivers/hv/hv.c | |
parent | 0034102808e0dbbf3a2394b82b1bb40b5778de9e (diff) | |
download | blackbird-op-linux-415f0a02adaea754dc85cde7b50707f7fbc4cf3f.tar.gz blackbird-op-linux-415f0a02adaea754dc85cde7b50707f7fbc4cf3f.zip |
hv: fix return type of hv_post_message()
This function returns negative error codes, but because the type is u16
they get truncated into positive numbers. It doesn't look like the
callers care, but we should fix it anyway as a cleanup.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/hv.c')
-rw-r--r-- | drivers/hv/hv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index 15956bd48b48..86f8885aeb45 100644 --- a/drivers/hv/hv.c +++ b/drivers/hv/hv.c @@ -252,7 +252,7 @@ void hv_cleanup(void) * * This involves a hypercall. */ -u16 hv_post_message(union hv_connection_id connection_id, +int hv_post_message(union hv_connection_id connection_id, enum hv_message_type message_type, void *payload, size_t payload_size) { |