Skip to contentSkip to conversation

sony-laptop: fix sparse non-ANSI function warning

PATCH Applied Randy Dunlap 2 participants 2 messages Jan 9, 2011 – Jan 10, 2011

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

PATCH 1/1 sony-laptop: fix sparse non-ANSI function warning

From: Randy Dunlap <[email protected]>

Fix sparse warning for non-ANSI function declaration:

drivers/platform/x86/sony-laptop.c:1134:35: warning: non-ANSI function declaration of function 'sony_nc_rfkill_update'

Cc Matthew Garrett <[email protected]>
Cc Mattia Dongili <[email protected]>
---
 drivers/platform/x86/sony-laptop.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/sony-laptop.c +1 -1
@@ -1131,7 +1131,7 @@ static int sony_nc_setup_rfkill(struct a
 	return err;
 }
 
-static void sony_nc_rfkill_update()
+static void sony_nc_rfkill_update(void)
 {
 	enum sony_nc_rfkill i;
 	int result;