From 057b63e2ad1bc0bfa4828d980231e41e6f8c515d Mon Sep 17 00:00:00 2001 From: Len Brown Date: Sat, 7 Aug 2004 17:28:20 -0400 Subject: [PATCH] [ACPI] acpi_system_write_wakeup_device() has the wrong return type and is missing the __user attribution from its buffer argument. This patch shuts up the resulting warnings on x86-64. From: William Lee Irwin III Signed-off-by: Andrew Morton --- drivers/acpi/sleep/proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/sleep/proc.c b/drivers/acpi/sleep/proc.c index a5743dcac7f34..e8434a3551b47 100644 --- a/drivers/acpi/sleep/proc.c +++ b/drivers/acpi/sleep/proc.c @@ -384,10 +384,10 @@ acpi_system_wakeup_device_seq_show(struct seq_file *seq, void *offset) return 0; } -static int +static ssize_t acpi_system_write_wakeup_device ( struct file *file, - const char *buffer, + const char __user *buffer, size_t count, loff_t *ppos) { -- 2.53.0