linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] v4l: vsp1: Add missing #include <linux/slab.h>
@ 2016-01-11 18:25 Geert Uytterhoeven
  2016-01-11 18:27 ` Laurent Pinchart
  2016-01-11 18:43 ` Geert Uytterhoeven
  0 siblings, 2 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2016-01-11 18:25 UTC (permalink / raw)
  To: linux-sh

If CONFIG_SPI=n:

drivers/media/platform/vsp1/vsp1_dl.c: In function 'vsp1_dl_create':
drivers/media/platform/vsp1/vsp1_dl.c:271:2: error: implicit declaration of function 'kzalloc' [-Werror=implicit-function-declaration]
  dl = kzalloc(sizeof(*dl), GFP_KERNEL);
  ^
drivers/media/platform/vsp1/vsp1_dl.c:271:5: warning: assignment makes pointer from integer without a cast
  dl = kzalloc(sizeof(*dl), GFP_KERNEL);
     ^
drivers/media/platform/vsp1/vsp1_dl.c:283:3: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration]
   kfree(dl);
   ^

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Against renesas-drivers-2016-01-05-v4.4-rc8

 drivers/media/platform/vsp1/vsp1_dl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/platform/vsp1/vsp1_dl.c b/drivers/media/platform/vsp1/vsp1_dl.c
index a4dcccf0778bb479..7dc27ac6bd02a38b 100644
--- a/drivers/media/platform/vsp1/vsp1_dl.c
+++ b/drivers/media/platform/vsp1/vsp1_dl.c
@@ -14,6 +14,7 @@
 #include <linux/device.h>
 #include <linux/dma-mapping.h>
 #include <linux/gfp.h>
+#include <linux/slab.h>
 
 #include "vsp1.h"
 #include "vsp1_dl.h"
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-11 18:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-11 18:25 [PATCH 2/2] v4l: vsp1: Add missing #include <linux/slab.h> Geert Uytterhoeven
2016-01-11 18:27 ` Laurent Pinchart
2016-01-11 18:43 ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).