From: Andrew Morton Date: Thu, 31 Mar 2005 03:53:30 +0000 (-0500) Subject: [ACPI] fix debug-mode build warning in acpi/hotkey.c X-Git-Tag: v2.6.13-rc3~10^2^2~14 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8de7a63b69a263b7549599be882d7aa15397f8b3;p=linux-2.6 [ACPI] fix debug-mode build warning in acpi/hotkey.c drivers/acpi/hotkey.c: In function `create_polling_proc': drivers/acpi/hotkey.c:334: warning: ISO C90 forbids mixed declarations and code Signed-off-by: Andrew Morton Signed-off-by: Len Brown --- diff --git a/drivers/acpi/hotkey.c b/drivers/acpi/hotkey.c index 0aef9fc449..babdf762ea 100644 --- a/drivers/acpi/hotkey.c +++ b/drivers/acpi/hotkey.c @@ -329,9 +329,10 @@ static int auto_hotkey_remove(struct acpi_device *device, int type) static int create_polling_proc(union acpi_hotkey *device) { struct proc_dir_entry *proc; + mode_t mode; ACPI_FUNCTION_TRACE("create_polling_proc"); - mode_t mode = S_IFREG | S_IRUGO | S_IWUGO; + mode = S_IFREG | S_IRUGO | S_IWUGO; proc = create_proc_entry(device->poll_hotkey.action_method, mode, hotkey_proc_dir);