All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for linux-next] V4L/DVB: v4l2: v4l2-ctrls.c needs kzalloc/kfree prototype
@ 2010-08-07 15:47 Laurent Riffard
  2010-08-07 16:12 ` Hans Verkuil
  0 siblings, 1 reply; 2+ messages in thread
From: Laurent Riffard @ 2010-08-07 15:47 UTC (permalink / raw)
  To: linux-media; +Cc: Hans Verkuil

[-- Attachment #1: Type: TEXT/PLAIN, Size: 996 bytes --]

linux-next 20100807 failed to compile:

drivers/media/video/v4l2-ctrls.c: In function ‘v4l2_ctrl_handler_init’:
drivers/media/video/v4l2-ctrls.c:766: error: implicit declaration of function ‘kzalloc’
drivers/media/video/v4l2-ctrls.c:767: warning: assignment makes pointer from integer without a cast
drivers/media/video/v4l2-ctrls.c: In function ‘v4l2_ctrl_handler_free’:
drivers/media/video/v4l2-ctrls.c:786: error: implicit declaration of function ‘kfree’
...

---
  drivers/media/video/v4l2-ctrls.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/media/video/v4l2-ctrls.c b/drivers/media/video/v4l2-ctrls.c
index 84c1a53..951c8c6 100644
--- a/drivers/media/video/v4l2-ctrls.c
+++ b/drivers/media/video/v4l2-ctrls.c
@@ -19,6 +19,7 @@
   */

  #include <linux/ctype.h>
+#include <linux/slab.h>         /* for kzalloc/kfree */
  #include <media/v4l2-ioctl.h>
  #include <media/v4l2-device.h>
  #include <media/v4l2-ctrls.h>
-- 
1.7.2.1.26.gbb89e

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

* Re: [PATCH for linux-next] V4L/DVB: v4l2: v4l2-ctrls.c needs kzalloc/kfree prototype
  2010-08-07 15:47 [PATCH for linux-next] V4L/DVB: v4l2: v4l2-ctrls.c needs kzalloc/kfree prototype Laurent Riffard
@ 2010-08-07 16:12 ` Hans Verkuil
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Verkuil @ 2010-08-07 16:12 UTC (permalink / raw)
  To: Laurent Riffard; +Cc: linux-media

On Saturday 07 August 2010 17:47:57 Laurent Riffard wrote:
> linux-next 20100807 failed to compile:
> 
> drivers/media/video/v4l2-ctrls.c: In function ‘v4l2_ctrl_handler_init’:
> drivers/media/video/v4l2-ctrls.c:766: error: implicit declaration of function ‘kzalloc’
> drivers/media/video/v4l2-ctrls.c:767: warning: assignment makes pointer from integer without a cast
> drivers/media/video/v4l2-ctrls.c: In function ‘v4l2_ctrl_handler_free’:
> drivers/media/video/v4l2-ctrls.c:786: error: implicit declaration of function ‘kfree’

Thanks for the notification, but I discovered it myself already and posted a
pull request fixing this yesterday.

Regards,

	Hans

> ...
> 
> ---
>   drivers/media/video/v4l2-ctrls.c |    1 +
>   1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/media/video/v4l2-ctrls.c b/drivers/media/video/v4l2-ctrls.c
> index 84c1a53..951c8c6 100644
> --- a/drivers/media/video/v4l2-ctrls.c
> +++ b/drivers/media/video/v4l2-ctrls.c
> @@ -19,6 +19,7 @@
>    */
> 
>   #include <linux/ctype.h>
> +#include <linux/slab.h>         /* for kzalloc/kfree */
>   #include <media/v4l2-ioctl.h>
>   #include <media/v4l2-device.h>
>   #include <media/v4l2-ctrls.h>
> 

-- 
Hans Verkuil - video4linux developer - sponsored by TANDBERG, part of Cisco

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

end of thread, other threads:[~2010-08-07 16:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-07 15:47 [PATCH for linux-next] V4L/DVB: v4l2: v4l2-ctrls.c needs kzalloc/kfree prototype Laurent Riffard
2010-08-07 16:12 ` Hans Verkuil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.