From patchwork Mon Mar 6 18:32:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 9607283 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 D019B602B4 for ; Mon, 6 Mar 2017 18:33:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D483427D4A for ; Mon, 6 Mar 2017 18:33:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C932A27F4B; Mon, 6 Mar 2017 18:33:03 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, 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 82ABC27D4A for ; Mon, 6 Mar 2017 18:33:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754022AbdCFScq (ORCPT ); Mon, 6 Mar 2017 13:32:46 -0500 Received: from merlin.infradead.org ([205.233.59.134]:44666 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753177AbdCFScd (ORCPT ); Mon, 6 Mar 2017 13:32:33 -0500 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:From:Cc:Subject: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=oUMif23R7zHkbwapgMeJggH3a4Rp//6Ynd3j/dX8/yk=; b=HQfe7KGyweqfi/XkDqScE7v/p3 /XIpR4uHmZjJ2yn1ZCS6lEb5XH3wUpBA2EVHo28fLbh/C5Mp2pho2M5pNuStELRfS7Pl490qeNJ5X djfBOMc76WkQPB8CF5FROqhTxlDJs+XX1nzo9YZVu9/6vJrJxPAQeqYmSpRpzhaLD0tSriVq3jK/0 D/mmBT4xDFqSCUptz0qSo4eKVBFqeB2mDn8Whc3ZUKqbm2d+PkjmLoSUzmdJczfZyh8CQ3JZzupZO uT0MRfZzI/MqZdXISitGl5/u7kTUKIhYxM4QZ9OWpdMMLNB/dL+3iTg0FChutJyEOEGtktA42J0Bc vuLP0+aQ==; Received: from static-50-53-43-78.bvtn.or.frontiernet.net ([50.53.43.78] helo=[192.168.1.19]) by merlin.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux)) id 1ckxQo-00087u-Ek; Mon, 06 Mar 2017 18:32:26 +0000 To: linux-media Subject: [PATCH -next] media/platform/mtk-jpeg: add slab.h to fix build errors Cc: LKML , Ming Hsiu Tsai , Rick Chang , Bin Liu , Mauro Carvalho Chehab From: Randy Dunlap Message-ID: Date: Mon, 6 Mar 2017 10:32:22 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 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 Include to fix these build errors: ../drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c: In function 'mtk_jpeg_open': ../drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c:1017:2: error: implicit declaration of function 'kzalloc' [-Werror=implicit-function-declaration] ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); ../drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c:1017:6: warning: assignment makes pointer from integer without a cast [enabled by default] ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); ../drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c:1047:2: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration] kfree(ctx); Signed-off-by: Randy Dunlap Cc: Ming Hsiu Tsai Cc: Rick Chang Cc: Bin Liu Cc: Mauro Carvalho Chehab --- drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c | 1 + 1 file changed, 1 insertion(+) --- linux-next-20170306.orig/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c +++ linux-next-20170306/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include