Skip to contentSkip to conversation

pms: fix build error in pms_probe()

PATCH New Fengguang Wu 1 participant 1 message Jun 10, 2012 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pms: fix build error in pms_probe()

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]

---
 drivers/media/video/pms.c |    1 +
 1 file changed, 1 insertion(+)
drivers/media/video/pms.c +1 -0
index af2d908..77f9c92 100644
@@ -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>
Signature · 1 line
1.7.10