Re: [PATCH] eeepc-wmi: fix function return type to kill warning

From: Corentin Chary
Date: Wed Dec 15 2010 - 02:03:15 EST


On Wed, Dec 15, 2010 at 1:26 AM, Randy Dunlap <randy.dunlap@xxxxxxxxxx> wrote:
> From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
>
> Fix return type warning:
>
> drivers/platform/x86/eeepc-wmi.c:322: warning: initialization from incompatible pointer type
>
> Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
> ---
> Âdrivers/platform/x86/eeepc-wmi.c | Â Â2 +-
> Â1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- lnx-2637-rc4.orig/drivers/platform/x86/eeepc-wmi.c
> +++ lnx-2637-rc4/drivers/platform/x86/eeepc-wmi.c
> @@ -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
--
Corentin Chary
http://xf.iksaif.net
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/