summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@xenotime.net>2012-06-20 21:30:30 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-06-21 10:41:56 -0300
commitb6a509df59c6abd0a2177e3be29642207711145d (patch)
treec7d8ebfc336adeab9c460a97ded235c50886efbb /drivers
parentce7d16a1752accbff1ff7c813594aad0b7168563 (diff)
downloadlinux-stable-b6a509df59c6abd0a2177e3be29642207711145d.tar.gz
linux-stable-b6a509df59c6abd0a2177e3be29642207711145d.tar.bz2
linux-stable-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')
-rw-r--r--drivers/media/video/pms.c1
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>