Skip to contentSkip to conversation

2.6.28-mmotm1230 drivers/input/input.c warning msg

PATCH [email protected] 2 participants 2 messages Jan 2, 2009 Input drivers

lore
Share & tools
lore
#0 lore raw

patch input-allow-certain-ev_abs-events-to-bypass-all-filtering.patch caused a new warning to be added to the compile:

CC drivers/input/input.o
drivers/input/input.c:1661: warning: function declaration isn’t a prototype

Fix up the declaration so the compiler knows what the prototype is.

drivers/input/input.c renamed from drivers/input/input.c.dist +1 -1
@@ -1657,7 +1657,7 @@ static const struct file_operations inpu
 	.open = input_open_file,
 };
 
-static void __init input_init_abs_bypass()
+static void __init input_init_abs_bypass(void)
 {
 	const unsigned int *p;
 	for (p = input_abs_bypass_init_data; *p; p++)
Acked-by
#1 lore raw
Quoted 9 lines · [email protected] wrote:

patch input-allow-certain-ev_abs-events-to-bypass-all-filtering.patch caused a new warning to be added to the compile:

CC drivers/input/input.o
drivers/input/input.c:1661: warning: function declaration isn’t a prototype

Fix up the declaration so the compiler knows what the prototype is.

This is the third patch like this that's been posted, so I'll ack this one. ;)

Quoted 12 lines
drivers/input/input.c renamed from drivers/input/input.c.dist +1 -1
@@ -1657,7 +1657,7 @@ static const struct file_operations inpu
 	.open = input_open_file,
 };
 
-static void __init input_init_abs_bypass()
+static void __init input_init_abs_bypass(void)
 {
 	const unsigned int *p;
 	for (p = input_abs_bypass_init_data; *p; p++)
Signature · 1 line
~Randy