# This is a BitKeeper generated diff -Nru style patch. # # ChangeSet # 2005/03/30 22:53:30-05:00 len.brown@intel.com # [ACPI] fix debug-mode build warning in acpi/hotkey.c # # Signed-off-by: Andrew Morton # Signed-off-by: Len Brown # # drivers/acpi/hotkey.c # 2005/03/30 08:16:09-05:00 len.brown@intel.com +2 -1 # 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 # diff -Nru a/drivers/acpi/hotkey.c b/drivers/acpi/hotkey.c --- a/drivers/acpi/hotkey.c 2005-07-09 17:41:43 -04:00 +++ b/drivers/acpi/hotkey.c 2005-07-09 17:41:43 -04:00 @@ -329,9 +329,10 @@ 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);