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: 100740 Delivered-To: patch@linaro.org Received: by 10.182.202.35 with SMTP id kf3csp249021obc; Wed, 31 May 2017 04:21:24 -0700 (PDT) X-Received: by 10.84.213.143 with SMTP id g15mr88853725pli.53.1496229684199; Wed, 31 May 2017 04:21:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496229684; cv=none; d=google.com; s=arc-20160816; b=VFmfqTYqjV0PisuBRFYZ8Lfocccr/dkrbmWoUBVNlOJh5iz9BgTJ5DrvI4nwImpB7x aqlpTGrQdkqrxDMJaM9N/jUZd9WDW1i/uLoKgPB60HDbk+VOs61MGzHPJj4uSCL3w7hs EOGpBPA7fDbqXotvw5jK4KuFFL1v39eFbsEP8pxdcOPulspXhmRsQ5T9HOLw7se/gTVq gd6+fAGA0TKUkzjuekRaA0NHcoU4SnqafhP21InKHAvJidSXmxvMGv/F/q6JM8TWrev4 5AaF7po4H6/UcyOy8haD8WXE1D1lluhgS+g+jGvSOFw2z4d1b0wTu+xykyHdszCiskSi 6xOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=wQwzt+uYFjzyPPy+YJoIINv4iFjQWM16dheqrrAY3rc=; b=LHfm+5CR+Ex5bPowOeFcuRBj6cR1fbJwgbyOA6UoWna/59VNacTRemSPolNwjp93ME JTA3262mJjJc6ulp6AIDUp6jEJqI7VeI4JQe3yp/azXp4fz+BUY9g5njKhvexzHIeAdn yafDHs+dJRE5nTn+zuroavvfx95wjE28X173gVePPcoaf/YZIpPSlPsSckyJCvIkRwqp 1V82UkyT6J6NBFoNT3fE+Zue/GOON6VaN/7uQaMOpLFtWW1J+cFR25/zHWEynUTor5EY YtED2BXliMFPNW6wvVYqiLKtYIMtiM4FQszgQNT2T5nSyG0t4LAMhjpDaC9KcrUJctc7 BxDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r90si16787305pfk.245.2017.05.31.04.21.23; Wed, 31 May 2017 04:21:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751058AbdEaLVV (ORCPT + 25 others); Wed, 31 May 2017 07:21:21 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:34856 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750999AbdEaLVU (ORCPT ); Wed, 31 May 2017 07:21:20 -0400 Received: by mail-wm0-f45.google.com with SMTP id b84so114891323wmh.0 for ; Wed, 31 May 2017 04:21:19 -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=GKffPPN1lRsnBn3SqjGHLZysqleA5vk/SqFBiKVkeNyOkoGYVmQsnmpT/J08Jc5+eT OUEo6ju6G9YHmeHVGtBO8MWfxlsjqGbX/U1C13nwnJjh++GXecerRhyKCSyM658Mu/Cd Hm5/bdM5rHCh7dMnWaSmMzmYfiAJkFAq93kSMArqvfxZBJZaD3iBNFYM7jRRBJw0hJEt MdPjSA3nDTrnUHini3X1Z1CkUIYZqG5r/dQgsRe/UIaDICeKuYhSGmiyW8Y6NQ4f0Uxs I+DAhMT1lZ1q3bmhWj8/MERcTy3vyjHn/E9lzADCQx240uP1bnd/PLNH0gaF2h6jhjRo GBSg== X-Gm-Message-State: AODbwcC2+QkhqlYAhIQ1R7Az3r19LsWE4PRICHqY3XwJysv+v5GcAT7x Ddqc3c52fbsn3aRz 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 Cc: Jerome Forissier 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- include/linux/tee_drv.h | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 Reviewed-by: Jens Wiklander Acked-by: Arnd Bergmann 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;