[PATCH] pms: fix build error in pms_probe()

DORMANTno replies

From: Fengguang Wu <hidden>
Date: 2012-06-10 00:00:22
Subsystem: media input infrastructure (v4l/dvb), the rest · Maintainers: Mauro Carvalho Chehab, Linus Torvalds

Mauro,

If possible, I'd prefer folding this patch into commit 8173090acb33
("v4l: fix compiler warnings"), which introduced the build error.
Thank you!

drivers/media/video/pms.c: In function ‘pms_probe’:
drivers/media/video/pms.c:1047:2: error: implicit declaration of function ‘kzalloc’ [-Werror=implicit-function-declaration]
drivers/media/video/pms.c:1116:2: error: implicit declaration of function ‘kfree’ [-Werror=implicit-function-declaration]

Signed-off-by: Fengguang Wu <redacted>
---
 drivers/media/video/pms.c |    1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/media/video/pms.c b/drivers/media/video/pms.c
index af2d908..77f9c92 100644
--- a/drivers/media/video/pms.c
+++ b/drivers/media/video/pms.c
@@ -26,6 +26,7 @@
 #include <linux/fs.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
+#include <linux/slab.h>
 #include <linux/ioport.h>
 #include <linux/init.h>
 #include <linux/mutex.h>
-- 
1.7.10
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help