Skip to contentSkip to conversation

isdn/sc: Fix incorrect module_param_array types

PATCH Applied Geert Uytterhoeven 2 participants 2 messages Apr 24, 2013 – Apr 25, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 isdn/sc: Fix incorrect module_param_array types

drivers/isdn/sc/init.c: In function ‘__check_irq’:
drivers/isdn/sc/init.c:36: warning: return from incompatible pointer type drivers/isdn/sc/init.c: In function ‘__check_ram’:
drivers/isdn/sc/init.c:37: warning: return from incompatible pointer type

---
 drivers/isdn/sc/init.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/isdn/sc/init.c +2 -2
index 6b580b2..ca997bd 100644
@@ -33,8 +33,8 @@ static unsigned long ram[] = {0, 0, 0, 0};
 static bool do_reset = 0;
 
 module_param_array(io, int, NULL, 0);
-module_param_array(irq, int, NULL, 0);
-module_param_array(ram, int, NULL, 0);
+module_param_array(irq, byte, NULL, 0);
+module_param_array(ram, long, NULL, 0);
 module_param(do_reset, bool, 0);
 
 static int identify_board(unsigned long, unsigned int);
Signature · 1 line
1.7.0.4
maintainer Applied
#1 lore raw

From: Geert Uytterhoeven <[email protected]>
Date: Wed, 24 Apr 2013 14:46:37 +0200

Quoted 6 lines

drivers/isdn/sc/init.c: In function ‘__check_irq’:
drivers/isdn/sc/init.c:36: warning: return from incompatible pointer type drivers/isdn/sc/init.c: In function ‘__check_ram’:
drivers/isdn/sc/init.c:37: warning: return from incompatible pointer type

Applied.