From patchwork Wed May 10 17:05:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 9720263 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 B7C1C6035D for ; Wed, 10 May 2017 17:05:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A59E12858D for ; Wed, 10 May 2017 17:05:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A69628606; Wed, 10 May 2017 17:05:40 +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=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6546D2858D for ; Wed, 10 May 2017 17:05:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A93296E3B1; Wed, 10 May 2017 17:05:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qt0-f172.google.com (mail-qt0-f172.google.com [209.85.216.172]) by gabe.freedesktop.org (Postfix) with ESMTPS id CC6F36E3AF for ; Wed, 10 May 2017 17:05:33 +0000 (UTC) Received: by mail-qt0-f172.google.com with SMTP id j29so1610067qtj.1 for ; Wed, 10 May 2017 10:05:33 -0700 (PDT) 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:in-reply-to; bh=89pP7wd1iqjJqqaUbjD+AaBI5xX8Abq6mvKKpLMxy34=; b=IQhlk6v4V3joOkcdsdjSVw7yaCGYsBM3Gt0+SRtfKS/PbInVNLGnKp3MiyHYd4EBwZ Ctje7Do4q7pxb9Iy0ZMRs1YqYY0FZk1cIwnyojVvkTcp/OzU2E00fqOK08uGutAbObG2 1MStY49wVNadJC6FCciLJAV34hME+hA3p/iIc0R74nEBRTHEydp5S070OfnM/eXM3kx4 fj9RnfxqT5p7GhUfvbGJWecEyT+7+uLVJ+J9vrN6cy6m821hlZ8zgWPrMAN7xn1TC0WU 58i83Aw/sC2hOSLbniaE6ExK9Bls/FwVEjTBSBAQPfGpeJAG5ARvzXRapYrMoTh9edMu uREQ== X-Gm-Message-State: AODbwcBsDxLfeHoSrJHNuggsaxPiJIbN8HuYoViSi63QXkT8F7fU/g4z 841zPLlir8K/ePtT X-Received: by 10.200.4.29 with SMTP id v29mr7252035qtg.82.1494435932891; Wed, 10 May 2017 10:05:32 -0700 (PDT) Received: from labbott-redhat-machine.redhat.com ([2601:602:9802:a8dc::7f81]) by smtp.gmail.com with ESMTPSA id x139sm2442978qkb.21.2017.05.10.10.05.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 May 2017 10:05:31 -0700 (PDT) From: Laura Abbott To: Daniel Vetter , Chris Wilson Subject: [PATCHv2] drm/prime: Forward declare struct device Date: Wed, 10 May 2017 10:05:25 -0700 Message-Id: <1494435925-9457-1-git-send-email-labbott@redhat.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <20170510144807.GJ7978@nuc-i3427.alporthouse.com> Cc: intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP We need a declaration of struct device to avoid warnings: In file included from include/drm/drm_file.h:38:0, from drivers/gpu/drm/drm_file.c:38: include/drm/drm_prime.h:71:14: warning: 'struct device' declared inside parameter list will not be visible outside of this definition or declaration struct device *attach_dev); ^~~~~~ Forward declare it. Signed-off-by: Laura Abbott Reviewed-by: Sumit Semwal --- v2: Switch to foward declaration instead of including a header. --- include/drm/drm_prime.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drm/drm_prime.h b/include/drm/drm_prime.h index 46fd1fb..59ccab4 100644 --- a/include/drm/drm_prime.h +++ b/include/drm/drm_prime.h @@ -50,6 +50,8 @@ struct drm_prime_file_private { struct rb_root handles; }; +struct device; + struct dma_buf_export_info; struct dma_buf;