Skip to contentSkip to conversation

staging: bcm: fix sparse warning in module_param

PATCH New Rahul Bedarkar 1 participant 1 message Oct 1, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: bcm: fix sparse warning in module_param

This patch fixes sparse warning in module_param
warning: pointer targets in return differ in signedness [-Wpointer-sign]

---
 drivers/staging/bcm/InterfaceInit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/bcm/InterfaceInit.c +1 -1
index bb61d34..9eaffd8 100644
@@ -15,7 +15,7 @@ static struct usb_device_id InterfaceUsbtable[] = {
 MODULE_DEVICE_TABLE(usb, InterfaceUsbtable);
 
 static int debug = -1;
-module_param(debug, uint, 0600);
+module_param(debug, int, 0600);
 MODULE_PARM_DESC(debug, "Debug level (0=none,...,16=all)");
 
 static const u32 default_msg =
Signature · 1 line
1.8.3.2