From patchwork Tue May 22 12:30:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 10418589 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 BC95C6032A for ; Tue, 22 May 2018 12:30:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7D9D28B61 for ; Tue, 22 May 2018 12:30:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C3EB28B8F; Tue, 22 May 2018 12:30: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=-5.2 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED 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 65B7728B61 for ; Tue, 22 May 2018 12:30:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 968BD6E145; Tue, 22 May 2018 12:30:38 +0000 (UTC) X-Original-To: Intel-gfx@lists.freedesktop.org Delivered-To: Intel-gfx@lists.freedesktop.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 546116E11F for ; Tue, 22 May 2018 12:30:31 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id w194-v6so31257435wmf.2 for ; Tue, 22 May 2018 05:30:31 -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 :references; bh=nSLW7huLohr/bxHdqWNUSD1mzXT6hF0yIkq2oqgiuso=; b=K2iIBywFSm62QNiaWcBBs9IvFLx/y7qq6bRbDGB6L5TS6mfkIopLP4YUx/7hFDUNc4 FTpFGWKP3JMBUTFyRGYgjaLRQWsCB3SAd37NqDcACNIeiJocfWkLOgXvdDd1zTP9aT+c UXiBiTMGmpOIOGnAN+ygnAhZrYlWVGPFhxLeewan/0HTUs7nKrvsVIBYzSfww5XHdbp8 +Rsygr6Vnn/1zkR3zy4P8ekNNLoYVozVeIwYZ0+GXm9/wl0B5PtIcSadChDOldBa73FF P+VhQy0jt2GDC+2nqFB/n7JM5vja2tTapiWZhaDSwyde2NXZ84c8FvqNRxB59Alf254l zEhA== X-Gm-Message-State: ALKqPwduCnh/daqa3Q2WZ+qmgfgme1cCQcJkYekwRt1jyubb8wZ5nnaQ jL0a6+6UQBlbmI547y3qXFJbAaLG X-Google-Smtp-Source: AB8JxZoR5FtUJklHK/0vc2ZjIQN9UqOKzBwlSryz4oHTL5FSWDaJfz/oCvidzUzLPHjJ1yxpmezk/Q== X-Received: by 2002:a1c:4ad9:: with SMTP id n86-v6mr1239993wmi.0.1526992229864; Tue, 22 May 2018 05:30:29 -0700 (PDT) Received: from localhost.localdomain ([95.146.151.144]) by smtp.gmail.com with ESMTPSA id z63-v6sm22822227wrb.34.2018.05.22.05.30.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 05:30:29 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: Intel-gfx@lists.freedesktop.org Date: Tue, 22 May 2018 13:30:13 +0100 Message-Id: <20180522123020.31624-4-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180522123020.31624-1-tvrtko.ursulin@linux.intel.com> References: <20180522123020.31624-1-tvrtko.ursulin@linux.intel.com> Subject: [Intel-gfx] [RFC 03/10] drm/i915: Forward declare struct intel_context X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 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 From: Tvrtko Ursulin This is to avoid an error with structure declared in parameter list if the include ordering changes. Signed-off-by: Tvrtko Ursulin Reviewed-by: Chris Wilson --- drivers/gpu/drm/i915/i915_gem_context.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_gem_context.h b/drivers/gpu/drm/i915/i915_gem_context.h index 33933d43c61a..4d6994f311be 100644 --- a/drivers/gpu/drm/i915/i915_gem_context.h +++ b/drivers/gpu/drm/i915/i915_gem_context.h @@ -46,6 +46,8 @@ struct intel_ring; #define DEFAULT_CONTEXT_HANDLE 0 +struct intel_context; + struct intel_context_ops { void (*unpin)(struct intel_context *ce); void (*destroy)(struct intel_context *ce);