tree 48d2b9144d0e72611fc4d44f66ba7f0dce9eb451
parent d1dd0c23916bd781de27bc5ec1c295064e9ce9cc
author Andrew Morton <[EMAIL PROTECTED]> Thu, 31 Mar 2005 08:53:30 -0500
committer Len Brown <[EMAIL PROTECTED]> Tue, 12 Jul 2005 07:59:34 -0400

[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 <[EMAIL PROTECTED]>
Signed-off-by: Len Brown <[EMAIL PROTECTED]>

 drivers/acpi/hotkey.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/acpi/hotkey.c b/drivers/acpi/hotkey.c
--- a/drivers/acpi/hotkey.c
+++ b/drivers/acpi/hotkey.c
@@ -329,9 +329,10 @@ static int auto_hotkey_remove(struct acp
 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);
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to