Re: [patch -next 2/2] drivers, samsung-laptop: fix usage of isalnum
From: Corentin Chary
Date: Wed Mar 14 2012 - 03:12:34 EST
On Wed, Mar 14, 2012 at 6:59 AM, David Rientjes <rientjes@xxxxxxxxxx> wrote:
> linux/ctype.h is needed for isalnum() to avoid a build error:
>
> drivers/platform/x86/samsung-laptop.c: In function âsamsung_sabi_diagâ:
> drivers/platform/x86/samsung-laptop.c:1306: error: implicit declaration of function âisalnumâ
>
> Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx>
> ---
> Âdrivers/platform/x86/samsung-laptop.c | Â Â1 +
> Â1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/platform/x86/samsung-laptop.c b/drivers/platform/x86/samsung-laptop.c
> --- a/drivers/platform/x86/samsung-laptop.c
> +++ b/drivers/platform/x86/samsung-laptop.c
> @@ -25,6 +25,7 @@
> Â#include <linux/acpi.h>
> Â#include <linux/seq_file.h>
> Â#include <linux/debugfs.h>
> +#include <linux/ctype.h>
>
> Â/*
> Â* This driver is needed because a number of Samsung laptops do not hook
Acked-by: Corentin Chary <corentincj@xxxxxxxxxx>
--
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/