diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2012-06-20 21:30:30 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-21 10:41:56 -0300 |
commit | b6a509df59c6abd0a2177e3be29642207711145d (patch) | |
tree | c7d8ebfc336adeab9c460a97ded235c50886efbb /drivers/media | |
parent | ce7d16a1752accbff1ff7c813594aad0b7168563 (diff) | |
download | linux-3.10-b6a509df59c6abd0a2177e3be29642207711145d.tar.gz linux-3.10-b6a509df59c6abd0a2177e3be29642207711145d.tar.bz2 linux-3.10-b6a509df59c6abd0a2177e3be29642207711145d.zip |
[media] media: pms.c needs linux/slab.h
drivers/media/video/pms.c uses kzalloc() and kfree() so it should
include <linux/slab.h> to fix build errors and a warning.
drivers/media/video/pms.c:1047:2: error: implicit declaration of function 'kzalloc'
drivers/media/video/pms.c:1047:6: warning: assignment makes pointer from integer without a cast
drivers/media/video/pms.c:1116:2: error: implicit declaration of function 'kfree'
Found in mmotm but applies to mainline.
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/pms.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/pms.c b/drivers/media/video/pms.c index 77f9c92186f..b4c679b3fb0 100644 --- a/drivers/media/video/pms.c +++ b/drivers/media/video/pms.c @@ -30,6 +30,7 @@ #include <linux/ioport.h> #include <linux/init.h> #include <linux/mutex.h> +#include <linux/slab.h> #include <linux/uaccess.h> #include <linux/isa.h> #include <asm/io.h> |