public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] V4L: Events: Include slab.h explicitly
@ 2010-04-27 15:08 Sergio Aguirre
  2010-04-27 15:08 ` Aguirre, Sergio
  2010-04-28 14:27 ` Sakari Ailus
  0 siblings, 2 replies; 7+ messages in thread
From: Sergio Aguirre @ 2010-04-27 15:08 UTC (permalink / raw)
  To: Sakari Ailus; +Cc: linux-media, Sergio Aguirre

After commit ID:

  commit de380b55f92986c1a84198149cb71b7228d15fbd
  Author: Tejun Heo <tj@kernel.org>
  Date:   Wed Mar 24 17:06:43 2010 +0900

      percpu: don't implicitly include slab.h from percpu.h

slab.h include was not longer implicitly included with sched.h.

So, now we have to include slab.h explicitly.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
---
 drivers/media/video/v4l2-event.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/media/video/v4l2-event.c b/drivers/media/video/v4l2-event.c
index aea4332..7f31cd2 100644
--- a/drivers/media/video/v4l2-event.c
+++ b/drivers/media/video/v4l2-event.c
@@ -26,6 +26,7 @@
 #include <media/v4l2-fh.h>
 #include <media/v4l2-event.h>
 
+#include <linux/slab.h>
 #include <linux/sched.h>
 
 int v4l2_event_init(struct v4l2_fh *fh)
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* RE: [PATCH] V4L: Events: Include slab.h explicitly
  2010-04-27 15:08 [PATCH] V4L: Events: Include slab.h explicitly Sergio Aguirre
@ 2010-04-27 15:08 ` Aguirre, Sergio
  2010-04-27 16:09   ` Mauro Carvalho Chehab
  2010-04-28 14:27 ` Sakari Ailus
  1 sibling, 1 reply; 7+ messages in thread
From: Aguirre, Sergio @ 2010-04-27 15:08 UTC (permalink / raw)
  To: Aguirre, Sergio, Sakari Ailus; +Cc: linux-media@vger.kernel.org

Sakari,

This patch is based on your event branch:

http://gitorious.org/omap3camera/mainline/commits/event

And is required on latest kernel to compile v4l2-event.c, to make use of kmalloc and other slab.h functions/defines.

Regards,
Sergio

> -----Original Message-----
> From: Aguirre, Sergio
> Sent: Tuesday, April 27, 2010 10:08 AM
> To: Sakari Ailus
> Cc: linux-media@vger.kernel.org; Aguirre, Sergio
> Subject: [PATCH] V4L: Events: Include slab.h explicitly
> 
> After commit ID:
> 
>   commit de380b55f92986c1a84198149cb71b7228d15fbd
>   Author: Tejun Heo <tj@kernel.org>
>   Date:   Wed Mar 24 17:06:43 2010 +0900
> 
>       percpu: don't implicitly include slab.h from percpu.h
> 
> slab.h include was not longer implicitly included with sched.h.
> 
> So, now we have to include slab.h explicitly.
> 
> Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
> ---
>  drivers/media/video/v4l2-event.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/media/video/v4l2-event.c b/drivers/media/video/v4l2-
> event.c
> index aea4332..7f31cd2 100644
> --- a/drivers/media/video/v4l2-event.c
> +++ b/drivers/media/video/v4l2-event.c
> @@ -26,6 +26,7 @@
>  #include <media/v4l2-fh.h>
>  #include <media/v4l2-event.h>
> 
> +#include <linux/slab.h>
>  #include <linux/sched.h>
> 
>  int v4l2_event_init(struct v4l2_fh *fh)
> --
> 1.6.3.3


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] V4L: Events: Include slab.h explicitly
  2010-04-27 15:08 ` Aguirre, Sergio
@ 2010-04-27 16:09   ` Mauro Carvalho Chehab
  2010-04-27 16:16     ` Sakari Ailus
  0 siblings, 1 reply; 7+ messages in thread
From: Mauro Carvalho Chehab @ 2010-04-27 16:09 UTC (permalink / raw)
  To: Aguirre, Sergio; +Cc: Sakari Ailus, linux-media@vger.kernel.org

Aguirre, Sergio wrote:
> Sakari,
> 
> This patch is based on your event branch:
> 
> http://gitorious.org/omap3camera/mainline/commits/event
> 
> And is required on latest kernel to compile v4l2-event.c, to make use of kmalloc and other slab.h functions/defines.


True.

Sakari,

Please, add this patch on your series before any Makefile entries that would try to compile
the events interface (or just fold it to the patch that added v4l2-event.c).

Cheers,
Mauro.

> Regards,
> Sergio
> 
>> -----Original Message-----
>> From: Aguirre, Sergio
>> Sent: Tuesday, April 27, 2010 10:08 AM
>> To: Sakari Ailus
>> Cc: linux-media@vger.kernel.org; Aguirre, Sergio
>> Subject: [PATCH] V4L: Events: Include slab.h explicitly
>>
>> After commit ID:
>>
>>   commit de380b55f92986c1a84198149cb71b7228d15fbd
>>   Author: Tejun Heo <tj@kernel.org>
>>   Date:   Wed Mar 24 17:06:43 2010 +0900
>>
>>       percpu: don't implicitly include slab.h from percpu.h
>>
>> slab.h include was not longer implicitly included with sched.h.
>>
>> So, now we have to include slab.h explicitly.
>>
>> Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
>> ---
>>  drivers/media/video/v4l2-event.c |    1 +
>>  1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/drivers/media/video/v4l2-event.c b/drivers/media/video/v4l2-
>> event.c
>> index aea4332..7f31cd2 100644
>> --- a/drivers/media/video/v4l2-event.c
>> +++ b/drivers/media/video/v4l2-event.c
>> @@ -26,6 +26,7 @@
>>  #include <media/v4l2-fh.h>
>>  #include <media/v4l2-event.h>
>>
>> +#include <linux/slab.h>
>>  #include <linux/sched.h>
>>
>>  int v4l2_event_init(struct v4l2_fh *fh)
>> --
>> 1.6.3.3
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 

Cheers,
Mauro

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] V4L: Events: Include slab.h explicitly
  2010-04-27 16:09   ` Mauro Carvalho Chehab
@ 2010-04-27 16:16     ` Sakari Ailus
  2010-04-27 16:30       ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 7+ messages in thread
From: Sakari Ailus @ 2010-04-27 16:16 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: Aguirre, Sergio, linux-media@vger.kernel.org

Mauro Carvalho Chehab wrote:
> Aguirre, Sergio wrote:
>> Sakari,
>>
>> This patch is based on your event branch:
>>
>> http://gitorious.org/omap3camera/mainline/commits/event
>>
>> And is required on latest kernel to compile v4l2-event.c, to make use of kmalloc and other slab.h functions/defines.
> 
> 
> True.
> 
> Sakari,
> 
> Please, add this patch on your series before any Makefile entries that would try to compile
> the events interface (or just fold it to the patch that added v4l2-event.c).

Unfortunately the Makefile changes are in the same patch than the
missing linux/slab.h.

-- 
Sakari Ailus
sakari.ailus@maxwell.research.nokia.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] V4L: Events: Include slab.h explicitly
  2010-04-27 16:16     ` Sakari Ailus
@ 2010-04-27 16:30       ` Mauro Carvalho Chehab
  2010-04-27 20:23         ` Sakari Ailus
  0 siblings, 1 reply; 7+ messages in thread
From: Mauro Carvalho Chehab @ 2010-04-27 16:30 UTC (permalink / raw)
  To: Sakari Ailus; +Cc: Aguirre, Sergio, linux-media@vger.kernel.org

Sakari Ailus wrote:
> Mauro Carvalho Chehab wrote:
>> Aguirre, Sergio wrote:
>>> Sakari,
>>>
>>> This patch is based on your event branch:
>>>
>>> http://gitorious.org/omap3camera/mainline/commits/event
>>>
>>> And is required on latest kernel to compile v4l2-event.c, to make use of kmalloc and other slab.h functions/defines.
>>
>> True.
>>
>> Sakari,
>>
>> Please, add this patch on your series before any Makefile entries that would try to compile
>> the events interface (or just fold it to the patch that added v4l2-event.c).
> 
> Unfortunately the Makefile changes are in the same patch than the
> missing linux/slab.h.
> 
So, you'll need to fold his patch, or breaking the Makefile changes into another, otherwise, you'll
break git bisect.

-- 

Cheers,
Mauro

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] V4L: Events: Include slab.h explicitly
  2010-04-27 16:30       ` Mauro Carvalho Chehab
@ 2010-04-27 20:23         ` Sakari Ailus
  0 siblings, 0 replies; 7+ messages in thread
From: Sakari Ailus @ 2010-04-27 20:23 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: Aguirre, Sergio, linux-media@vger.kernel.org

Hi Mauro,

Mauro Carvalho Chehab wrote:
> Sakari Ailus wrote:
>> Mauro Carvalho Chehab wrote:
>>> Aguirre, Sergio wrote:
>>>> Sakari,
>>>>
>>>> This patch is based on your event branch:
>>>>
>>>> http://gitorious.org/omap3camera/mainline/commits/event
>>>>
>>>> And is required on latest kernel to compile v4l2-event.c, to make use of kmalloc and other slab.h functions/defines.
>>>
>>> True.
>>>
>>> Sakari,
>>>
>>> Please, add this patch on your series before any Makefile entries that would try to compile
>>> the events interface (or just fold it to the patch that added v4l2-event.c).
>>
>> Unfortunately the Makefile changes are in the same patch than the
>> missing linux/slab.h.
>>
> So, you'll need to fold his patch, or breaking the Makefile changes into another, otherwise, you'll
> break git bisect.

Did you receive my new pull request? It has this change included in the
fourth patch.

Regards,

-- 
Sakari Ailus
sakari.ailus@maxwell.research.nokia.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] V4L: Events: Include slab.h explicitly
  2010-04-27 15:08 [PATCH] V4L: Events: Include slab.h explicitly Sergio Aguirre
  2010-04-27 15:08 ` Aguirre, Sergio
@ 2010-04-28 14:27 ` Sakari Ailus
  1 sibling, 0 replies; 7+ messages in thread
From: Sakari Ailus @ 2010-04-28 14:27 UTC (permalink / raw)
  To: Sergio Aguirre; +Cc: linux-media

Sergio Aguirre wrote:
> After commit ID:
> 
>   commit de380b55f92986c1a84198149cb71b7228d15fbd
>   Author: Tejun Heo <tj@kernel.org>
>   Date:   Wed Mar 24 17:06:43 2010 +0900
> 
>       percpu: don't implicitly include slab.h from percpu.h
> 
> slab.h include was not longer implicitly included with sched.h.
> 
> So, now we have to include slab.h explicitly.
> 
> Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
> ---
>  drivers/media/video/v4l2-event.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/media/video/v4l2-event.c b/drivers/media/video/v4l2-event.c
> index aea4332..7f31cd2 100644
> --- a/drivers/media/video/v4l2-event.c
> +++ b/drivers/media/video/v4l2-event.c
> @@ -26,6 +26,7 @@
>  #include <media/v4l2-fh.h>
>  #include <media/v4l2-event.h>
>  
> +#include <linux/slab.h>
>  #include <linux/sched.h>
>  
>  int v4l2_event_init(struct v4l2_fh *fh)

Thanks for the patch, Sergio!

I was going to say that I'll send a new pull request but apparently
forgot to send this one in time. Anyway, this is now included in the
patchset, merged with another patch.

Regards,

-- 
Sakari Ailus
sakari.ailus@maxwell.research.nokia.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-04-28 14:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-27 15:08 [PATCH] V4L: Events: Include slab.h explicitly Sergio Aguirre
2010-04-27 15:08 ` Aguirre, Sergio
2010-04-27 16:09   ` Mauro Carvalho Chehab
2010-04-27 16:16     ` Sakari Ailus
2010-04-27 16:30       ` Mauro Carvalho Chehab
2010-04-27 20:23         ` Sakari Ailus
2010-04-28 14:27 ` Sakari Ailus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox