[PATCH] staging: spectra needs <linux/slab.h>

From: Geert Uytterhoeven
Date: Tue Aug 10 2010 - 15:20:01 EST


On one of my m68k test builds I get:

drivers/staging/spectra/ffsport.c: In function ʽioctl_read_page_dataʼ:
drivers/staging/spectra/ffsport.c:196: error: implicit declaration of function ʽkmallocʼ
drivers/staging/spectra/ffsport.c:196: warning: assignment makes pointer from integer without a cast
drivers/staging/spectra/ffsport.c:212: error: implicit declaration of function ʽkfreeʼ
drivers/staging/spectra/ffsport.c: In function ʽioctl_write_page_dataʼ:
drivers/staging/spectra/ffsport.c:229: warning: assignment makes pointer from integer without a cast
drivers/staging/spectra/ffsport.c: In function ʽSBD_setup_deviceʼ:
drivers/staging/spectra/ffsport.c:633: warning: assignment makes pointer from integer without a cast

Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
---
drivers/staging/spectra/ffsport.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/staging/spectra/ffsport.c b/drivers/staging/spectra/ffsport.c
index d0c5c97..a8ff80c 100644
--- a/drivers/staging/spectra/ffsport.c
+++ b/drivers/staging/spectra/ffsport.c
@@ -27,6 +27,7 @@
#include <linux/kthread.h>
#include <linux/log2.h>
#include <linux/init.h>
+#include <linux/slab.h>

/**** Helper functions used for Div, Remainder operation on u64 ****/

--
1.7.0.4

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/