Skip to contentSkip to conversation

eeepc-wmi: fix function return type to kill warning

PATCH In review Randy Dunlap 2 participants 2 messages Dec 15, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eeepc-wmi: fix function return type to kill warning

From: Randy Dunlap <[email protected]>

Fix return type warning:

drivers/platform/x86/eeepc-wmi.c:322: warning: initialization from incompatible pointer type

---
 drivers/platform/x86/eeepc-wmi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/eeepc-wmi.c +1 -1
@@ -298,7 +298,7 @@ static void eeepc_wmi_notify(u32 value, 
 	kfree(obj);
 }
 
-static int store_cpufv(struct device *dev, struct device_attribute *attr,
+static ssize_t store_cpufv(struct device *dev, struct device_attribute *attr,
 		       const char *buf, size_t count)
 {
 	int value;

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d

maintainer
#1 lore raw
Quoted 15 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix return type warning:

drivers/platform/x86/eeepc-wmi.c:322: warning: initialization from incompatible pointer type

---
 drivers/platform/x86/eeepc-wmi.c |    2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)

drivers/platform/x86/eeepc-wmi.c static void eeepc_wmi_notify(u32 value, · line 304

Quoted 8 lines
drivers/platform/x86/eeepc-wmi.c +1 -1
@@ -298,7 +298,7 @@ static void eeepc_wmi_notify(u32 value,
        kfree(obj);
  }
 
-static int store_cpufv(struct device *dev, struct device_attribute *attr,
+static ssize_t store_cpufv(struct device *dev, struct device_attribute *attr,
                       const char *buf, size_t count)
  {
        int value;

Sorry, too late, :)

http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=commitdiff;h=da7fddf92985c2525260dfd6f70006e022f4457c

Still, Thanks

Signature · 2 lines
Corentin Chary
http://xf.iksaif.net