eeepc-wmi: fix compiler warning
PATCH 1/1 eeepc-wmi: fix compiler warning
This fixes the following:
CC [M] drivers/platform/x86/eeepc-wmi.odrivers/platform/x86/eeepc-wmi.c:322: warning: initialization from incompatible pointer type
---
drivers/platform/x86/eeepc-wmi.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/platform/x86/eeepc-wmi.c +2 -2
@@ -298,8 +298,8 @@ static void eeepc_wmi_notify(u32 value, void *context)kfree (obj); } -static int store_cpufv (struct device *dev,struct device_attribute *attr, -const char *buf,size_t count) +static ssize_t store_cpufv (struct device *dev,struct device_attribute *attr, +const char *buf,size_t count) {int value;struct acpi_buffer input = { (acpi_size )sizeof (value), &value };
Quoted 18 lines · Dmitry Torokhov
This fixes the following:
CC [M] drivers/platform/x86/eeepc-wmi.o
drivers/platform/x86/eeepc-wmi.c:322: warning: initialization from incompatible pointer typeSigned-off-by Dmitry Torokhov <[email protected]>---
drivers/platform/x86/eeepc-wmi.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)drivers/platform/x86/eeepc-wmi.c +0
-0@@ -298,8 +298,8 @@ static void eeepc_wmi_notify(u32 value, void *context) kfree(obj);
drivers/platform/x86/eeepc-wmi.c static void eeepc_wmi_notify(u32 value, void *context)
Quoted 10 lines
drivers/platform/x86/eeepc-wmi.c +2
-3} -static int store_cpufv (struct device *dev,struct device_attribute *attr, - const char *buf, size_t count) +static ssize_t store_cpufv (struct device *dev,struct device_attribute *attr, + const char *buf, size_t count) { int value; struct acpi_buffer input = { (acpi_size)sizeof(value), &value }; --
Opps. Sorry, I missed that warning. ssize_t is obviously correct return value.
Corentin Chary
maintainerQuoted 33 lines · Chris Bagwell
Quoted 18 lines · Dmitry Torokhov
This fixes the following:
CC [M] drivers/platform/x86/eeepc-wmi.o
drivers/platform/x86/eeepc-wmi.c:322: warning: initialization from incompatible pointer typeSigned-off-by Dmitry Torokhov <[email protected]>---
drivers/platform/x86/eeepc-wmi.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)drivers/platform/x86/eeepc-wmi.c +0
-0@@ -298,8 +298,8 @@ static void eeepc_wmi_notify(u32 value, void *context) kfree(obj);drivers/platform/x86/eeepc-wmi.c static void eeepc_wmi_notify(u32 value, void *context)
Quoted 10 lines
drivers/platform/x86/eeepc-wmi.c +2
-3} -static int store_cpufv (struct device *dev,struct device_attribute *attr, - const char *buf, size_t count) +static ssize_t store_cpufv (struct device *dev,struct device_attribute *attr, + const char *buf, size_t count) { int value; struct acpi_buffer input = { (acpi_size)sizeof(value), &value }; --Opps. Sorry, I missed that warning. ssize_t is obviously correct return value.
Quoted 6 lines
Reviewed-by Chris Bagwell <[email protected]>--
To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Just queued the same patch on my repo, I should have read the list first.
Matthew can you queue this one for next batch ?
Thanks,
Signature · 2 lines
Corentin Chary http://xf.iksaif.net
Matthew Garrett
AppliedApplied, thanks.
Signature · 1 line
Matthew Garrett | [email protected]