[PATCH] Staging: hv: Trivial patch to fix compile warning.

Javier Martinez Canillas martinez.javier at gmail.com
Sat Feb 19 21:43:54 UTC 2011


cn_add_callback() defines is second argument as a char * but a
const char * was supplied instead. So the compiler generates a  
compile warning.

This trivial patch solves the issue by removing the const type qualifier.

Signed-off-by: Javier Martinez Canillas <martinez.javier at gmail.com>
---
 drivers/staging/hv/hv_kvp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/hv/hv_kvp.c b/drivers/staging/hv/hv_kvp.c
index bc1c20e..82edea2 100644
--- a/drivers/staging/hv/hv_kvp.c
+++ b/drivers/staging/hv/hv_kvp.c
@@ -66,7 +66,7 @@ static void kvp_register(void);
 static DECLARE_DELAYED_WORK(kvp_work, kvp_work_func);
 
 static struct cb_id kvp_id = { CN_KVP_IDX, CN_KVP_VAL };
-static const char kvp_name[] = "kvp_kernel_module";
+static char kvp_name[] = "kvp_kernel_module";
 static int timeout_fired;
 static u8 *recv_buffer;
 /*
-- 
1.7.0.4




More information about the devel mailing list