From patchwork Wed Sep 15 21:31:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatolij Gustschin X-Patchwork-Id: 4334 Return-path: Envelope-to: mchehab@pedra Delivery-date: Wed, 15 Sep 2010 18:31:56 -0300 Received: from mchehab by pedra with local (Exim 4.72) (envelope-from ) id 1Ovza8-0006Dr-AB for mchehab@pedra; Wed, 15 Sep 2010 18:31:56 -0300 Received: from bombadil.infradead.org [18.85.46.34] by pedra with IMAP (fetchmail-6.3.17) for (single-drop); Wed, 15 Sep 2010 18:31:56 -0300 (BRT) Received: from vger.kernel.org ([209.132.180.67]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OvzZU-0000Nf-AY; Wed, 15 Sep 2010 21:31:16 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754581Ab0IOVbL (ORCPT + 1 other); Wed, 15 Sep 2010 17:31:11 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:55274 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754529Ab0IOVbK (ORCPT ); Wed, 15 Sep 2010 17:31:10 -0400 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id A19861C00543; Wed, 15 Sep 2010 23:31:08 +0200 (CEST) X-Auth-Info: mgPLRE8H43del51jAZzAllgKuZSd4hzZTmJIztyQ1tQ= Received: from localhost (p4FE3E0AF.dip.t-dialin.net [79.227.224.175]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA id 70B6A1C00256; Wed, 15 Sep 2010 23:31:08 +0200 (CEST) From: Anatolij Gustschin To: linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab , Anatolij Gustschin Subject: [PATCH] V4L/DVB: v4l: fsl-viu.c: add slab.h include to fix compile breakage Date: Wed, 15 Sep 2010 23:31:09 +0200 Message-Id: <1284586269-8623-1-git-send-email-agust@denx.de> X-Mailer: git-send-email 1.7.0.4 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Sender: 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 --- drivers/media/video/fsl-viu.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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