lkml.org 
[lkml]   [2010]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRE: [PATCH] eeepc-wmi: include slab.h
> From: Tejun Heo [mailto:tj@kernel.org]
> Sent: Monday, April 05, 2010 10:41 AM
> To: lkml
> Cc: Wang, Yong Y
> Subject: [PATCH] eeepc-wmi: include slab.h
>
> eeepc-wmi uses kfree() but doesn't include slab.h. Include it.
>
> Signed-off-by: Tejun Heo <tj@kernel.org>
> Cc: Yong Wang <yong.y.wang@intel.com>
> ---
> Hello,
>
> I've committed this patch to percpu#slabh branch which breaks implicit
> slab interface availability. I'm gonna push the branch to Linus
> soonish.
>
> Thanks.
>
> drivers/platform/x86/eeepc-wmi.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/platform/x86/eeepc-wmi.c
> b/drivers/platform/x86/eeepc-wmi.c
> index 2466b7b..9f88226 100644
> --- a/drivers/platform/x86/eeepc-wmi.c
> +++ b/drivers/platform/x86/eeepc-wmi.c
> @@ -27,6 +27,7 @@
> #include <linux/module.h>
> #include <linux/init.h>
> #include <linux/types.h>
> +#include <linux/slab.h>
> #include <linux/input.h>
> #include <linux/input/sparse-keymap.h>
> #include <acpi/acpi_bus.h>

<linux/module.h> includes <linux/percpu.h> which in turn includes <linux/slab.h>.
Doesn't it?

Thanks
-Yong



\
 
 \ /
  Last update: 2010-04-05 14:33    [from the cache]
©2003-2011 Jasper Spaans