[PATCH 240/641] Staging: hv: fix sparse function warnings
Greg Kroah-Hartman
gregkh at suse.de
Tue Sep 15 19:07:51 UTC 2009
This fixes up all of the sparse warnings about functions not being
properly declared. Meaning, void functions need to say they are a void
function, otherwise the compiler assumes it is an integer here.
Cc: Hank Janssen <hjanssen at microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
---
drivers/staging/hv/Connection.c | 3 +--
drivers/staging/hv/Hv.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/hv/Connection.c b/drivers/staging/hv/Connection.c
index d017c27..a2888cb 100644
--- a/drivers/staging/hv/Connection.c
+++ b/drivers/staging/hv/Connection.c
@@ -45,8 +45,7 @@ Description:
--*/
static int
-VmbusConnect(
- )
+VmbusConnect(void)
{
int ret=0;
VMBUS_CHANNEL_MSGINFO *msgInfo=NULL;
diff --git a/drivers/staging/hv/Hv.c b/drivers/staging/hv/Hv.c
index c19c527..ef328d0 100644
--- a/drivers/staging/hv/Hv.c
+++ b/drivers/staging/hv/Hv.c
@@ -445,8 +445,7 @@ Description:
--*/
static HV_STATUS
-HvSignalEvent(
- )
+HvSignalEvent(void)
{
HV_STATUS status;
--
1.6.4.2
More information about the devel
mailing list