hv: fix return type of hv_post_message()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 28 Mar 2012 06:58:07 +0000 (09:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Apr 2012 22:05:47 +0000 (15:05 -0700)
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>
drivers/hv/hv.c
drivers/hv/hyperv_vmbus.h

index 15956bd48b48b327744a36338bb420e957731944..86f8885aeb4574fcb8a78c6b56446d5430124e3d 100644 (file)
@@ -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)
 {
index 699f0d8e59ed798a6a9bc03227d8eee9d3b70f89..b9426a6592ee558f9b4945346818de30a4c3816e 100644 (file)
@@ -495,7 +495,7 @@ extern int hv_init(void);
 
 extern void hv_cleanup(void);
 
-extern u16 hv_post_message(union hv_connection_id connection_id,
+extern int hv_post_message(union hv_connection_id connection_id,
                         enum hv_message_type message_type,
                         void *payload, size_t payload_size);
 
This page took 0.032097 seconds and 5 git commands to generate.