From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from merlin.infradead.org ([205.233.59.134]:40636 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752724AbeFHVTO (ORCPT ); Fri, 8 Jun 2018 17:19:14 -0400 To: linux-media Cc: LKML , Maxime Ripard , Mauro Carvalho Chehab , Stephen Rothwell From: Randy Dunlap Subject: [PATCH -next] media/platform/cadence: add to fix build error Message-ID: <2feda2a7-8008-f36d-67fa-a4aa38ea75ae@infradead.org> Date: Fri, 8 Jun 2018 14:19:06 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: From: Randy Dunlap Add #include to fix build errors. This driver uses kzalloc() and kfree() so it needs to #include the appropriate header file for those interfaces. Fixes these build errors: ../drivers/media/platform/cadence/cdns-csi2rx.c: In function 'csi2rx_probe': ../drivers/media/platform/cadence/cdns-csi2rx.c:421:2: error: implicit declaration of function 'kzalloc' [-Werror=implicit-function-declaration] csi2rx = kzalloc(sizeof(*csi2rx), GFP_KERNEL); ../drivers/media/platform/cadence/cdns-csi2rx.c:421:9: warning: assignment makes pointer from integer without a cast [enabled by default] csi2rx = kzalloc(sizeof(*csi2rx), GFP_KERNEL); ../drivers/media/platform/cadence/cdns-csi2rx.c:466:2: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration] kfree(csi2rx); Signed-off-by: Randy Dunlap Cc: Maxime Ripard --- drivers/media/platform/cadence/cdns-csi2rx.c | 1 + 1 file changed, 1 insertion(+) --- linux-next-20180608.orig/drivers/media/platform/cadence/cdns-csi2rx.c +++ linux-next-20180608/drivers/media/platform/cadence/cdns-csi2rx.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include