diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2012-06-21 02:30:30 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-21 15:41:56 +0200 |
commit | b6a509df59c6abd0a2177e3be29642207711145d (patch) | |
tree | c7d8ebfc336adeab9c460a97ded235c50886efbb | |
parent | [media] smiapp-core: fix compilation build error (diff) | |
download | linux-b6a509df59c6abd0a2177e3be29642207711145d.tar.xz linux-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>
-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 77f9c92186f4..b4c679b3fb0f 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> |