acpi: create_polling_proc() fix
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
@@ -329,9 +329,10 @@ static int auto_hotkey_remove(struct acpstatic 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
Len Brown
AppliedApplied.
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 codeSigned-off-by Andrew Morton <[email protected]>---
25-akpm/drivers/acpi/hotkey.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-)diff -puN
drivers/acpi/hotkey.c~acpi-create_polling_proc-fixdrivers/acpi/hotkey.c
--- 25/drivers/acpi/hotkey.c~acpi-create_polling_proc-fix WedMar 30 13:16:09 2005+++
25-akpm/drivers/acpi/hotkey.cWed Mar 30 13:16:09 2005drivers/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 acpstatic 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