From patchwork Wed May 31 11:21:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 9756687 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 A3B5760360 for ; Wed, 31 May 2017 11:31:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9FB15283D1 for ; Wed, 31 May 2017 11:31:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 948E128484; Wed, 31 May 2017 11:31:41 +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=0.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SUSPICIOUS_RECIPS autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3531D283D1 for ; Wed, 31 May 2017 11:31:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=DP+UAF5kfD5CHPtdoev+kduOVcTgX5SvgnhQj4wYk6s=; b=gDp 1ZaRpDYd4JZo1Izw/ynqsIAbTU0IqY+2+u5bRF9ZSCopK6TRMIr/iSB8dn5HE4XyhQlufrINKtaMK XMWnum4UqscK81g+1/G2a00fcp16EHHGGO/i9D+mCuspqc9J/onZXOd0Yicbg5c8bU/0JI/r0LowZ 36fb5TYmgk8eBkxDQtWaQ612VS1JMOINLtDhEDqU+wQMn/dcbksZw2ERrnX842SkLGUPYliw/CSYI UXO4Xz7dMMmrp3g9D3orSWqMQVcP81j7aQmq1C3UAAWtmLKl/3a6no9IB4rKmyg4u/ikFiokeDF9u /vqUF/Sc7fOzG+dRFWeLWfYlCy2GYew==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dG1qk-0004Yo-Ot; Wed, 31 May 2017 11:31:38 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dG1qj-0004P4-4P for linux-arm-kernel@bombadil.infradead.org; Wed, 31 May 2017 11:31:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: 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=wQwzt+uYFjzyPPy+YJoIINv4iFjQWM16dheqrrAY3rc=; b=ctLyQao1f36NIF2NG921h3EYj gMtDlCX/yhKvFubiYaDqEVQ4R0ndBUIgJLlRoKX8N4KG8xtFBl3NtJ65KI2huzTOK/GZTiv5PvpOL npyEYeVlHPsXtGSXQK81zDGJVGrQbLm9cglyg79+BjavIFvhmFwcBtyLXRQOQ7Hys/S0qXQ4pSwAT XSh4tXFztZS1rdJ69hlOWV/wz94CprQZ+rMHB5/fC8pj3CA/ttBvLXJ2nWOR1+qxtmX/b5zm6CeeZ U+JQxnmpizgdiNtH0Epf9NMwV9XTdlZ3tvy4hGrtV8O9RhNN8bZ+Ih6njTeS+iW9xscG5DxS9cdfG oweGSbpsA==; Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dG1h6-0004Nm-S0 for linux-arm-kernel@lists.infradead.org; Wed, 31 May 2017 11:21:42 +0000 Received: by mail-wm0-x235.google.com with SMTP id e127so15052981wmg.1 for ; Wed, 31 May 2017 04:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=wQwzt+uYFjzyPPy+YJoIINv4iFjQWM16dheqrrAY3rc=; b=fvv2V3FsMrzBMNcRY9+TtqIddGhpC8MLBDV1jJ8MzDJasUQiSkuHJVBqbF+wOQssuK SB58ifOQYGfU1xrkkrs1YjSGMCO4465Td/6JfRa3P/M8SvJl5oPXzxcwSxU1MV04M0nN ovAhLY0cvYxsvVoMGG3vcvT/zmzWF9eUb8en8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=wQwzt+uYFjzyPPy+YJoIINv4iFjQWM16dheqrrAY3rc=; b=CKHXuTLzLTZJgnq+YiuQ8b2SIOgig/IBLpV7lS/LlaFLNkn3HHoM2qaJasWe1hw7bF XxAttRtcaMrw/dyG3uZUtCa9qJ/i4Dfsfq5XwJG5lzMi9PVEYJJ1MhxI085Q3rsrWpiY ysN8KUe/tf8/8jMfvGUcxRR6K2WJwM+P3Alr991ZhxgqIpGp51Hqx8EGtz8TL2QguG1f MZ66joIXjCqIkdxR8Ztqsjnhx6CgIbzkpInMDV55EsO53zMZ7hnsEoODPbxzthIP3Opd B0qVljRoz17BJfTm9M/jnlFVTtZdLt11C9fKABXtfncFnU/m+fylwhH2lPcxdyIF61dS fjvg== X-Gm-Message-State: AODbwcCy96dA8P6apEJw2xR8vDLEP6EpVi4j5aUGHKiOSq8oBvAtzVYS 0HeKJwfgSSIVL0n+ X-Received: by 10.28.199.10 with SMTP id x10mr4862877wmf.83.1496229678883; Wed, 31 May 2017 04:21:18 -0700 (PDT) Received: from jfw540.home (ANice-653-1-58-179.w90-57.abo.wanadoo.fr. [90.57.211.179]) by smtp.gmail.com with ESMTPSA id m17sm17096856wmi.6.2017.05.31.04.21.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 May 2017 04:21:18 -0700 (PDT) From: Jerome Forissier To: Jens Wiklander , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, tee-dev@lists.linaro.org Subject: [PATCH] tee: add forward declaration for struct device Date: Wed, 31 May 2017 13:21:05 +0200 Message-Id: <6344683a299d05692ed64ddb963343ea9547add4.1496229347.git.jerome.forissier@linaro.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170531_122140_951888_D53B15BD X-CRM114-Status: UNSURE ( 9.78 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jerome Forissier MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP tee_drv.h references struct device, but does not include device.h nor platform_device.h. Therefore, if tee_drv.h is included by some file that does not pull device.h nor platform_device.h beforehand, we have a compile warning. Fix this by adding a forward declaration. Signed-off-by: Jerome Forissier Reviewed-by: Jens Wiklander Acked-by: Arnd Bergmann --- include/linux/tee_drv.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/tee_drv.h b/include/linux/tee_drv.h index 8614713..07bd226 100644 --- a/include/linux/tee_drv.h +++ b/include/linux/tee_drv.h @@ -29,6 +29,7 @@ #define TEE_SHM_DMA_BUF BIT(1) /* Memory with dma-buf handle */ #define TEE_SHM_EXT_DMA_BUF BIT(2) /* Memory with dma-buf handle */ +struct device; struct tee_device; struct tee_shm; struct tee_shm_pool;