Skip to contentSkip to conversation

acpi: create_polling_proc() fix

PATCH Applied [email protected] 2 participants 2 messages Mar 30, 2005 – Mar 31, 2005 1 message not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 acpi: create_polling_proc() fix

drivers/acpi/hotkey.c: In function `create_polling_proc':
drivers/acpi/hotkey.c:334: warning: ISO C90 forbids mixed declarations and code

---

 25-akpm/drivers/acpi/hotkey.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)
drivers/acpi/hotkey.c renamed from drivers/acpi/hotkey.c~acpi-create_polling_proc-fix +2 -1
diff -puN drivers/acpi/hotkey.c~acpi-create_polling_proc-fix 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);

_

-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today!
http://www.demarc.com/Info/Sentarus/hamr30

A message that is not in the archive (sent off-list or not yet received): 200503302116.j2ULGeuq027736-bipKiLWnuIsyyg0EjBt7GtHuzzzSOjJt@public.gmane.org

Applied
#2 lore raw

Applied.

thanks,
-Len

Quoted 29 lines · On Wed, 2005-03-30 at 16:16, [email protected] wrote:

drivers/acpi/hotkey.c: In function `create_polling_proc':
drivers/acpi/hotkey.c:334: warning: ISO C90 forbids mixed declarations and code

---

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

diff -puN drivers/acpi/hotkey.c~acpi-create_polling_proc-fix drivers/acpi/hotkey.c
--- 25/drivers/acpi/hotkey.c~acpi-create_polling_proc-fix Wed

Mar 30 13:16:09 2005

+++ 25-akpm/drivers/acpi/hotkey.c Wed Mar 30 13:16:09 2005

drivers/acpi/hotkey.c renamed from drivers/acpi/hotkey.c~acpi-create_polling_proc-fix +2 -1
@@ -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);
Quoted 3 lines

_

-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today!
http://www.demarc.com/Info/Sentarus/hamr30