From patchwork Fri Jun 8 21:19:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 10455245 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1C7D060159 for ; Fri, 8 Jun 2018 21:19:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 047C4293A1 for ; Fri, 8 Jun 2018 21:19:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E9AB7293A0; Fri, 8 Jun 2018 21:19:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9BFA5293A0 for ; Fri, 8 Jun 2018 21:19:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752981AbeFHVTO (ORCPT ); Fri, 8 Jun 2018 17:19:14 -0400 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 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:Cc:To:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=OmTE6LD7CgpgKQ2dlX+R3I1A9UKoo90ACaaBibqVX5M=; b=uitscaXRxhrF79YoGFWcfLxDVn 98M6yH9/sDwcviwDkhpuENzbM89EDcVJNkLegdZphp8R6I8nT+ZUoCAqz9b3yUZXBSbu31VehYAuT CPG0HmrxvaCa/3OrWsCDwiequl+5mem5t8Tv3aSKCIWQzMVWNt3xzTFEfZtPhJd7ZUkISxJ0rD6LJ ClM1BCQ7aW/Tohrou5e3QDQ0OHtGTf8eVbclwG+5BEUeJhcEnZGwcc+NRSlmHQqu73A6L6ju8vhzd BPwcVV1UMnhBg8A6BqFIx87RwU3LVCHVlh1YZM6v7jd2Bwt1DHWoFRqGGRZAwyMYa6i9pozjyn9wG UtVfciXw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fROmq-0000jO-BT; Fri, 08 Jun 2018 21:19:08 +0000 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 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 Content-Language: en-US Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: 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