From: Anatolij Gustschin Date: Wed, 15 Sep 2010 21:31:09 +0000 (-0300) Subject: V4L/DVB: v4l: fsl-viu.c: add slab.h include to fix compile breakage X-Git-Tag: upstream/snapshot3+hdmi~12606^2~357 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e69e34e9d964b66013dc09a112e6b46def0af1ef;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git V4L/DVB: v4l: fsl-viu.c: add slab.h include to fix compile breakage mpc512x kernel configurations without SPI support do not build: drivers/media/video/fsl-viu.c: In function 'viu_open': drivers/media/video/fsl-viu.c:1248: error: implicit declaration of function 'kzalloc' drivers/media/video/fsl-viu.c:1248: warning: assignment makes pointer from integer without a cast drivers/media/video/fsl-viu.c: In function 'viu_release': drivers/media/video/fsl-viu.c:1335: error: implicit declaration of function 'kfree' If CONFIG_SPI is enabled, the slab.h will be included in linux/spi/spi.h which is included by media/v4l2-common.h and the fsl_viu.c driver builds. Let's incluce linux/slab.h directly to fix the build breakage. Signed-off-by: Anatolij Gustschin Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/fsl-viu.c b/drivers/media/video/fsl-viu.c index 43d208f..0b318be 100644 --- a/drivers/media/video/fsl-viu.c +++ b/drivers/media/video/fsl-viu.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include