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: 9720259 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 246006035D for ; Wed, 10 May 2017 17:05:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11D882858D for ; Wed, 10 May 2017 17:05:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0532C28606; Wed, 10 May 2017 17:05:38 +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=ham 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 A2E442858D for ; Wed, 10 May 2017 17:05:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 520B76E3AD; Wed, 10 May 2017 17:05:35 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-qt0-f179.google.com (mail-qt0-f179.google.com [209.85.216.179]) by gabe.freedesktop.org (Postfix) with ESMTPS id C57306E3AD for ; Wed, 10 May 2017 17:05:33 +0000 (UTC) Received: by mail-qt0-f179.google.com with SMTP id t26so1651615qtg.0 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=MGtGtQMnff1OdyALxG9Ye4cW9V0PhBykD+z/lzt0lCBe3Yn2RadrQvbfmTU8AX65g1 Chruwz1AxVe+O2WAMZbq0GcyzDZwgRh073YvCCreSZjTr/oBd9r3M9Y4xYo070bDVT3T Lkq2QifRBJpjLX+jV2Vw4Gq5Lw9FRYfQ2tCUgnMlyyo53pHplaFtKGAAAnGxsoCeo+We aiHllDp8s8oDp0dPJ3j2zeI04sqKsgp+7+9CMx96h5rPdxrHGuyQlNNuQZAGw+ibgsRo j0aahF9dQ+j29k6c0ZbSvp7/7GimoOf17VnNNC92lb4j1ORZI+PCgQakwWaAGlLeo267 bzNQ== X-Gm-Message-State: AODbwcAmCaLYn5jZltdvJOEwa5yhsft+Ke1fWp9jcNNsyZM8iDBPg41/ 5qkdv2W5Jipt0czN 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 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, Laura Abbott , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [Intel-gfx] [PATCHv2] drm/prime: Forward declare struct device X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" 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;