From patchwork Sun May 19 14:20:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10949461 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CA7F21398 for ; Sun, 19 May 2019 14:20:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA8A2285B0 for ; Sun, 19 May 2019 14:20:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AEDFE285B8; Sun, 19 May 2019 14:20:59 +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 67AB6285B0 for ; Sun, 19 May 2019 14:20:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E080689132; Sun, 19 May 2019 14:20:54 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0127B89132 for ; Sun, 19 May 2019 14:20:51 +0000 (UTC) Received: by mail-lf1-x144.google.com with SMTP id l26so8388782lfh.13 for ; Sun, 19 May 2019 07:20:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Ad7Fwl6LjARc2prGK5xxcJbytviWSkpw/Dg0XX8mBEc=; b=Wf7zcykleTcnpv9WZzixoLBSTLASaCfS8Nm6C7Xwgs4mvMM78wkhC3tbD8TPWzmH8N mI64Vf23cxt1WOWwzJClsetpdbROpdUy87JZTgFVz4824VrgLweyqHLSWQuooLHP0QrX AmuiuIokmEyNwnJ6I4BiQc9WP2YMZs5gK0Wor2bpK9geVH1tUhajEmk9cvh/qd9f1fXU jVz3ArluxTcSynQ4DpbH1pem24I5NCGV2/8EC7Osz0jpPC4QYviTifCJ8CUsVWL4UZhG LYvR5Fy8CmRtUR8oWIgDXGeYUkqUakzjJLmShOqJdkAkUKc/BXhOKeuejwkAk+eGVtJQ lUOA== X-Gm-Message-State: APjAAAX2ckIobNPiT/bAjNiSjDa09MgBJ5e9Cr6lJSEDtMDVM26hKrY9 ocxZ1dkArBXC7zHEx47CEYnT8vFd X-Google-Smtp-Source: APXvYqzC2y/EIEF5vYDnf2VZINTN9mrZl8LBRKkoI5RbcX1WIOWAgKsYAqMcN73l6QgsjpaaRQmtLw== X-Received: by 2002:ac2:55a9:: with SMTP id y9mr5104814lfg.58.1558275650247; Sun, 19 May 2019 07:20:50 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id d5sm3231786lji.85.2019.05.19.07.20.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 May 2019 07:20:49 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org Subject: [PATCH v1 01/06] drm: make drm_auth.h self contained Date: Sun, 19 May 2019 16:20:31 +0200 Message-Id: <20190519142036.22861-2-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190519142036.22861-1-sam@ravnborg.org> References: <20190519142036.22861-1-sam@ravnborg.org> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ad7Fwl6LjARc2prGK5xxcJbytviWSkpw/Dg0XX8mBEc=; b=GQ3cfHHqw0Q1Zm9r4OLaJSaykYuEkY5vH4jkISJRfXGkENU0RNBQ9oHbEBSmhOpLPz ZdcRX6n7FjB/PlpBnyF7jSglTQBwkmKj+dbMEdPmDkkQHZIoJqPJHmq9CZY/E+9vLx72 aV1ByTKKz7B1YAU4/Olhvxp2Ofu/HbTFf/31CikOf/Gpahlr5EToIKJmJMly9TPi/2GY GxMsTXXjtNX1yR8IHZVIbAnRSgBJDNOxQ7HS7KSOXUGn/amkHsa6t2VNvaRW1ei/3NWv YQG+8gXbUZ5iI4yB2Oy6/xfLUjjfFnp/o0+UInT75Fo2i4wKDxPc3GaIRkNVUNbyu+Hk 2Xjg== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Ripard , Sam Ravnborg , David Airlie , Sean Paul Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Do not require users of drm_auth.h to include other files just to let it build. Signed-off-by: Sam Ravnborg Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter --- include/drm/drm_auth.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/drm/drm_auth.h b/include/drm/drm_auth.h index 871008118bab..f34b7b842976 100644 --- a/include/drm/drm_auth.h +++ b/include/drm/drm_auth.h @@ -28,6 +28,13 @@ #ifndef _DRM_AUTH_H_ #define _DRM_AUTH_H_ +#include +#include +#include + +struct drm_file; +struct drm_hw_lock; + /* * Legacy DRI1 locking data structure. Only here instead of in drm_legacy.h for * include ordering reasons. From patchwork Sun May 19 14:20:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10949459 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 238A21398 for ; Sun, 19 May 2019 14:20:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 109B9285B3 for ; Sun, 19 May 2019 14:20:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0373D28574; Sun, 19 May 2019 14:20:57 +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 8CF9A28574 for ; Sun, 19 May 2019 14:20:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 492A889147; Sun, 19 May 2019 14:20:54 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2DAA789132 for ; Sun, 19 May 2019 14:20:53 +0000 (UTC) Received: by mail-lj1-x243.google.com with SMTP id r76so10069882lja.12 for ; Sun, 19 May 2019 07:20:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=rnVjGQEds6rRFs/NzOy61uplfQJJShylFtfiFTGIeuo=; b=hLNiUjUMS/6lJfk4SFR7ceqQbQzIdyePcH3AOQxbXKOlW3BaKGX123MV+igHEa6wGT bZxqUlTpI7tIvDiLlSYA5+6156srNjC9zP8Sltwtx5uau4rrAzlMQVlU/DwDWOIY3fqu 8wrIFIwEwsaNP0GFtv28iu0Ayql16fqX1NXJRih0MXvdMSfH42E9y8aezrBnWtuVZdI8 SKpc2Arx06CfOjRddEpOFNu5Cs7gW0cXoK+nmyNTxOjAu70iSeA5GUJ/Z/6Gadb42ez5 6cCZpXs6j7nZxsntRWE5JPuATg8IBwUXszCGN2CZx0/nSWIuxKq/x038kPaD7I5R4YQJ uxPg== X-Gm-Message-State: APjAAAWEmoa+IN1I5t8rV2vP3EEF0vIKCrBVaeh2Zeu2fIOnbZry4D5i 5p4n4KjBusSuC5b3jAmjrW/sK/Zw X-Google-Smtp-Source: APXvYqx3tcpOgn3RN5zOASJFbc1CHv9gdtyU4C1Zd+twnPoclOVnKrCjc8aqO82uVfoxPwH0T8EI4g== X-Received: by 2002:a2e:298d:: with SMTP id p13mr34310563ljp.64.1558275651367; Sun, 19 May 2019 07:20:51 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id d5sm3231786lji.85.2019.05.19.07.20.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 May 2019 07:20:50 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org Subject: [PATCH v1 02/06] drm: make drm_legacy.h self-contained Date: Sun, 19 May 2019 16:20:32 +0200 Message-Id: <20190519142036.22861-3-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190519142036.22861-1-sam@ravnborg.org> References: <20190519142036.22861-1-sam@ravnborg.org> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rnVjGQEds6rRFs/NzOy61uplfQJJShylFtfiFTGIeuo=; b=ZD3A6FxbhGU5oiob37M1oEpb1DQQp19ut5HFUVBHwtzzJGY5n/M1Gg2VfRFK3Ef0sf cDeS8stuRvB332s5VuiBayumBMVolPJK/CfIQv0paWnHDxvS7AEprPBXgMVbzWxFj6WT IhhJkvjrT0qjjwxfbixVKqdNIGMg38T6W8+AeHKsTSmZEwFZJFk4DVaqq85WGIErhOZC GcIs4cqkAsglrEz8V3d4yO+MnRRuoRSivLzoy1PXEs2x5xJyNdh28yclddeYcOgZXDNs YnTp04+xTq1s6LTgOoH8QYUR1PsHMKAOwbg5Oy/d45xopmbPViXGf0pW2wIZEym1udcX qd1w== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Ripard , Sam Ravnborg , David Airlie , Sean Paul Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Do not require users of drm_legacy.h to include other files just to let it build. Signed-off-by: Sam Ravnborg Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter --- include/drm/drm_legacy.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drm/drm_legacy.h b/include/drm/drm_legacy.h index 2182a56ac421..1d32acd712de 100644 --- a/include/drm/drm_legacy.h +++ b/include/drm/drm_legacy.h @@ -1,10 +1,12 @@ #ifndef __DRM_DRM_LEGACY_H__ #define __DRM_DRM_LEGACY_H__ +#include #include #include struct drm_device; +struct file; /* * Legacy driver interfaces for the Direct Rendering Manager From patchwork Sun May 19 14:20:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10949467 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AF5611398 for ; Sun, 19 May 2019 14:21:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9EF3D285B0 for ; Sun, 19 May 2019 14:21:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 931BD285B8; Sun, 19 May 2019 14:21:05 +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 47C30285B0 for ; Sun, 19 May 2019 14:21:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C140489183; Sun, 19 May 2019 14:20:59 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by gabe.freedesktop.org (Postfix) with ESMTPS id 388F789132 for ; Sun, 19 May 2019 14:20:54 +0000 (UTC) Received: by mail-lf1-x144.google.com with SMTP id h13so8433809lfc.7 for ; Sun, 19 May 2019 07:20:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=FijAi/rRt9F6TihHYqQ6sKUIYt5GMGzzPG27K5Xhg7o=; b=oq+QsbiNgp8zuQcoJ+w8GxSKVJa6XZI7gprz4go0tInYmMUWk2qKnfXr63ZRxiVQwj esW60ohDo/1ZMFEiH9Vse+onGVgrJamY+YO2kEZ5JpwD1T7se6U/8WSIYHPogRDEXIiP EeQ0dfVafk465h+26yNhPu9K+9bokchzOfVNKJBReCJ2e+rxpUqYydydcqArW+tctODT IbD0MqGcxwc0BbRM11JaP2plBT+UXyuM9oF750ohCp60bVH9eFza2fCua5uvYB3+nRZf xm4rCOyyr2f6EZoj8WdyGrl0KBOuR0Y3wnoPFAYMK7OMY/wZ+NYKUDjRTKcds6SNBvEz OEBw== X-Gm-Message-State: APjAAAWP2I/i+E4RnCZXZYyV+JKIeoPjvtKYyRyeLqC3Y8LGvY7lVO/R F50YNe/MqJifyvWFZhk0Lk2dxx6A X-Google-Smtp-Source: APXvYqzJ0Xr7SLi3ktRwmvpKlp0x5XEXh81NvhNdUgO1KUQ9hoeYGWaNk2KQu0ht61ipmx4jpc1EGg== X-Received: by 2002:a19:97d3:: with SMTP id z202mr1797524lfd.145.1558275652446; Sun, 19 May 2019 07:20:52 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id d5sm3231786lji.85.2019.05.19.07.20.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 May 2019 07:20:51 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org Subject: [PATCH v1 03/06] drm: make drm_crtc_internal.h self-contained Date: Sun, 19 May 2019 16:20:33 +0200 Message-Id: <20190519142036.22861-4-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190519142036.22861-1-sam@ravnborg.org> References: <20190519142036.22861-1-sam@ravnborg.org> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FijAi/rRt9F6TihHYqQ6sKUIYt5GMGzzPG27K5Xhg7o=; b=Wk/+CLN3itt8VlNS1pa5T31qZqUzkAyiYagFUgoNpbIlRmHx93v2zfw4HI1pXvkdQi dGxqVCGuwhnyMJAiT+99wXsodo0kNtTLnB0bDCj2ifqpdFStA44pNZBnZN7mciPXw0Oc w4BCoARVM7sKW1I3bKk+MDNPqMhbyl0aJCobHPDzIh+4AnWPgxc5aQc8fsDHd/WKzMhG 5/MyG660fr04n0xzlaD3bBnM5iMEQAJuhInWpyFQsbfbxvORhZTEM8ebOgIEuR0f6KVC W8e2ZiufO7bB4lnPB/OCq/Uduzex9V5+rnZy03+0mAQ8W5jX3OzxOHeMV1pl/EwYH7ii R/vw== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Ripard , Sam Ravnborg , David Airlie , Sean Paul Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Do not require users of drm_crtc_internal.h to include other files just to let it build Signed-off-by: Sam Ravnborg Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/drm_crtc_internal.h | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc_internal.h b/drivers/gpu/drm/drm_crtc_internal.h index 0719a235d6cc..c78a44fad13d 100644 --- a/drivers/gpu/drm/drm_crtc_internal.h +++ b/drivers/gpu/drm/drm_crtc_internal.h @@ -31,14 +31,30 @@ * and are not exported to drivers. */ -enum drm_mode_status; +#include + +enum drm_color_encoding; +enum drm_color_range; enum drm_connector_force; +enum drm_mode_status; -struct drm_display_mode; -struct work_struct; -struct drm_connector; +struct drm_atomic_state; struct drm_bridge; +struct drm_connector; +struct drm_crtc; +struct drm_device; +struct drm_display_mode; +struct drm_file; +struct drm_framebuffer; +struct drm_mode_create_dumb; +struct drm_mode_fb_cmd2; +struct drm_mode_fb_cmd; +struct drm_mode_object; +struct drm_plane; +struct drm_property; struct edid; +struct kref; +struct work_struct; /* drm_crtc.c */ int drm_mode_crtc_set_obj_prop(struct drm_mode_object *obj, From patchwork Sun May 19 14:20:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10949465 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EA73A1398 for ; Sun, 19 May 2019 14:21:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB35B28574 for ; Sun, 19 May 2019 14:21:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF9AB285B3; Sun, 19 May 2019 14:21:03 +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 899C428574 for ; Sun, 19 May 2019 14:21:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BB4098916D; Sun, 19 May 2019 14:20:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by gabe.freedesktop.org (Postfix) with ESMTPS id 92C508916D for ; Sun, 19 May 2019 14:20:55 +0000 (UTC) Received: by mail-lf1-x143.google.com with SMTP id y19so8442495lfy.5 for ; Sun, 19 May 2019 07:20:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=e7AnEl+sTa5CZ3787NmnwKOXoYZg2C++bC2zllDWaWE=; b=MwZT85lYwPH27gfPGYx1RLF9ZaJMx0VG5hMw3jaAmDupnue2i9ar88TknH4hDaE0+G Bg2298UcDudQ/9/1C66SOjlO9uES701sBnNKWkaiV9e5BcMQovLAcY/TUgD6OoRewZtf fDMxHv9T9b75ku9Ps03ZP1lfECMbWcSDJcM6witx7utQicey6RzO50xQ23Xhp8gMMTHM 57BxKb5l9f2i5adzIPLf6fk3MjDKsVOvXykiYF//GzA2azf8sisImXICxeLVV/pQv+uG /vrQ1T2ptICTOI/m/iwEjwG2Q211LIKJqV6+nKhzLo9ZTzBMp0WEVmU1l4oYk31nv9ot Gczg== X-Gm-Message-State: APjAAAWB/OaXDp3MgAV8eta8VU6q2pINnUsSMQxCKa+wKYBFVPAl7ZIK +XI9r6xTadPkJ5UfFXHm9bhLFAnC X-Google-Smtp-Source: APXvYqxvaiqdt+BUxCIz6zDrgFdJlCQSPxIC2Ac7rK2Lure7mPNLAYG/l4qfPs7KPthj4yeM7pXiAg== X-Received: by 2002:a19:a5ca:: with SMTP id o193mr8434818lfe.89.1558275653469; Sun, 19 May 2019 07:20:53 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id d5sm3231786lji.85.2019.05.19.07.20.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 May 2019 07:20:53 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org Subject: [PATCH v1 04/06] drm: make drm_internal.h self-contained Date: Sun, 19 May 2019 16:20:34 +0200 Message-Id: <20190519142036.22861-5-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190519142036.22861-1-sam@ravnborg.org> References: <20190519142036.22861-1-sam@ravnborg.org> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=e7AnEl+sTa5CZ3787NmnwKOXoYZg2C++bC2zllDWaWE=; b=qjXiFpWC94pbrNy49Ya7rdSdvXXRQOCYDnKUmJVmIn6Ie8EWAl68JdaHT+ZrmpAUK/ CqziQ8Pf+LqOViDv1LiVycKYd26yUzzONqhVR2EC6vsK1aF16/10yo2lkoEaAcbhYxNb sTrWBjnycaVUISrKejSOk5F56sfR/qK/c4SISpKwiv8mFTh7qIZfF2HedvXZhEVKAnXo 1WcuCUaais8pwM74HUWv/NvIw89VJMqSrTJdj/WBw8Zt4YWjRDmPlL3etlbDJi+ZYcPq 1xUVK+1j9+KhUTTxdqGH/N6br3piq8RTnIHYo7Z5A+r+1uDj59XQpA1FtQEW557VU5tn Zj3Q== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Ripard , Sam Ravnborg , David Airlie , Sean Paul Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Do not require users of drm_internal.h to include other files just to let it build Signed-off-by: Sam Ravnborg Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/drm_internal.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_internal.h b/drivers/gpu/drm/drm_internal.h index e6281d9f9c87..76bd4b81c5b1 100644 --- a/drivers/gpu/drm/drm_internal.h +++ b/drivers/gpu/drm/drm_internal.h @@ -28,8 +28,16 @@ #define DRM_IF_VERSION(maj, min) (maj << 16 | min) -struct drm_prime_file_private; +struct dentry; struct dma_buf; +struct drm_connector; +struct drm_crtc; +struct drm_framebuffer; +struct drm_gem_object; +struct drm_master; +struct drm_minor; +struct drm_prime_file_private; +struct drm_printer; /* drm_file.c */ extern struct mutex drm_global_mutex; From patchwork Sun May 19 14:20:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10949463 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F1D3D112C for ; Sun, 19 May 2019 14:21:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E198528574 for ; Sun, 19 May 2019 14:21:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D3ED3285B3; Sun, 19 May 2019 14:21:01 +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 8B2CB28574 for ; Sun, 19 May 2019 14:21:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 94D0C8915F; Sun, 19 May 2019 14:20:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by gabe.freedesktop.org (Postfix) with ESMTPS id A5BBA8915F for ; Sun, 19 May 2019 14:20:56 +0000 (UTC) Received: by mail-lf1-x141.google.com with SMTP id h13so8433847lfc.7 for ; Sun, 19 May 2019 07:20:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Qq0xd3JW4W4qcU58TMIvDu6+klCvOBSKG2Ynq4DNHyQ=; b=KulH9K/OrAeAuuRW5kjLxjhNLYfP5Oa//YVuEI/HM3PCAh6gLoZu8atAtbqlorhN7w vF5XOvr6xcHlintB5iYYB5QJLjABMI6JNTIl3FCW6TZ+FfvDdFsao3XdSB0RlbdUxH+h k6fl12TiwEX0x9dW75wLacrcCDCsqz1a6VXDQ3Dx3qo28GN5R52+FeN1HIPzUapbKjew uX3c7y95Cb1+w0BkD7vTch+7CtH4appQqHiqN1n7cwHLnZuwTYeaIe+jNpIstI9U504w waALcC2ncziT6jzE/OjDMWKTpc/8Zmfx/3++yQFCaYtUtPIjePfpOaPZ63VTw5r/A36d Ro7g== X-Gm-Message-State: APjAAAX8VwdiuKTB2XvAtSpulJZSAXfwmarDxwhSQwv0FLyMa7s1DbQt ne80VKZW+szQTOWtFkpZQ7vcyCt7 X-Google-Smtp-Source: APXvYqy277Qg9oCy2liaZa2tIpnCQNC4K1eYEx5fzEhDRHQ9LsJjbEAz5+EzbleLpQOJMH3wzWEZow== X-Received: by 2002:ac2:5474:: with SMTP id e20mr32545096lfn.59.1558275654815; Sun, 19 May 2019 07:20:54 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id d5sm3231786lji.85.2019.05.19.07.20.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 May 2019 07:20:54 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org Subject: [PATCH v1 05/06] drm: make drm_legacy.h self-contained Date: Sun, 19 May 2019 16:20:35 +0200 Message-Id: <20190519142036.22861-6-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190519142036.22861-1-sam@ravnborg.org> References: <20190519142036.22861-1-sam@ravnborg.org> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Qq0xd3JW4W4qcU58TMIvDu6+klCvOBSKG2Ynq4DNHyQ=; b=tugh6O70up2N5a/Lqibo3AXC1+Dr6XzfbbnX1GzQZmj/Eb5ayoHXHYqQ+/TkyB6/60 xrp1EQq0WHIg4HRWiqancg382wRKB+yKYVOR0biKFku66CtBQE8b0PwY5hC0Wq0D/A4h RTMRGtr39TCZECacs/G+m1muWLtnuKvbt5NierscZhnRmZJcBxTyjDsvnbz5UkiIIBaG ZwryYA4stUSpVC5zN2ks7rPoAicBkh4MEDizP0fmo3JCvZRirhpwpAFNBmTzsvdBRgJ5 k93jOwXRwcydlwWO1XBEnp6on9rlseN3OIsoe1EAeACmeyJC2ec5pbUok3Sk+tphE7lR m56w== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Ripard , Sam Ravnborg , David Airlie , Sean Paul Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Do not require users of drm_ilegacy.h to include other files just to let it build Signed-off-by: Sam Ravnborg Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/drm_legacy.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/drm_legacy.h b/drivers/gpu/drm/drm_legacy.h index 013ccdfd90be..1be3ea320474 100644 --- a/drivers/gpu/drm/drm_legacy.h +++ b/drivers/gpu/drm/drm_legacy.h @@ -29,11 +29,15 @@ * drivers use them, and removing them are API breaks. */ #include + +#include +#include #include struct agp_memory; struct drm_device; struct drm_file; +struct drm_buf_desc; /* * Generic DRM Contexts From patchwork Sun May 19 14:20:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10949469 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 241E6112C for ; Sun, 19 May 2019 14:21:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 115B6285B0 for ; Sun, 19 May 2019 14:21:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05719285B8; Sun, 19 May 2019 14:21:07 +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 B382C285B0 for ; Sun, 19 May 2019 14:21:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3A48789256; Sun, 19 May 2019 14:21:00 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by gabe.freedesktop.org (Postfix) with ESMTPS id DD7368915F for ; Sun, 19 May 2019 14:20:57 +0000 (UTC) Received: by mail-lf1-x143.google.com with SMTP id c17so8464979lfi.2 for ; Sun, 19 May 2019 07:20:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=quXBsXarHy8sh7eI4VnnOVkloyrYcJZ6jVyc4yKf6z0=; b=umjz7L8/61pxtmfuv2d3D/a1Yia2qE9p5qFgT67UdN8gownsdDilb6u1GnYk12jVBZ pI/ecdvEUKJoCWQggC1l5bP2rb3CsHELJ9lS8YqHvDw3e08AdzUzexrxBxnpncYUs2oL /ajcNAXuqD+VF9RX6Ewevtqtl9cfQ40DK0JFGNveg2GDoe1dE56Z9yBlFr6Wl+C5cCfO OACpkU9mDAg9dtxNubiIqW25vVTGtR41+8hwLJTgs6I+XGYhh+gNARssPgzkftrQ5oQA sp+ftSqwvYgzOQPFikfPwa/fB98MEI0G50kwwQSbW7gindU3AZtNIuvEW8K5tXsDCK5Z VuMQ== X-Gm-Message-State: APjAAAUFqaenxgeOCcyLY9qmnzRPGurkaY8o/N3SHJus7W01qH5HFbJ/ VPBmhGy99ywVHuOgd7cAYgR8ZFv9 X-Google-Smtp-Source: APXvYqzZqbTyk/hKmtt8pZNmjpECzmeeSIWb/KPgG6Oti3u2eZ/zS7sdb18gnOKqjQWRxc/lsIytXA== X-Received: by 2002:a19:f817:: with SMTP id a23mr5751476lff.123.1558275655927; Sun, 19 May 2019 07:20:55 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id d5sm3231786lji.85.2019.05.19.07.20.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 May 2019 07:20:55 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org Subject: [PATCH v1 06/06] drm: make drm_trace.h self-contained Date: Sun, 19 May 2019 16:20:36 +0200 Message-Id: <20190519142036.22861-7-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190519142036.22861-1-sam@ravnborg.org> References: <20190519142036.22861-1-sam@ravnborg.org> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=quXBsXarHy8sh7eI4VnnOVkloyrYcJZ6jVyc4yKf6z0=; b=ceV0c8WQUsM3JtNOSrcUyUEDxAplyTQf62HFNFluAuIfrJUma5y3KMBwVx07lpR1i8 FPIC/YXpz8XXn+PQ4piCx1d6pX6LyFUG/etCVJMQHxj6Lyj8Kvy1SSTeOdsucxBmJLUX 8sKPDyEjkSMO+NsejJMA22FrvYh/bSbYx1dgvizdZRdcV56ehCVueqJQkobkq16dQVRU KEJszmx8DXOO+wuU3ddlBmQJz+nclfinjKlBpdhundDD8msOCJPZ/65+ym5OsRUpAITQ IXZykTrvmsHK5oYeRuiDifyY1CCyAoplOKTvfnXUThKWuN+rKW2uZ8jB4CGVASuZUYte 0jEQ== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Ripard , Sam Ravnborg , David Airlie , Sean Paul Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Do not require users of drm_trace.h to include other files just to let it build Signed-off-by: Sam Ravnborg Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/drm_trace.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/drm_trace.h b/drivers/gpu/drm/drm_trace.h index baccc63db106..471eb927474b 100644 --- a/drivers/gpu/drm/drm_trace.h +++ b/drivers/gpu/drm/drm_trace.h @@ -6,6 +6,8 @@ #include #include +struct drm_file; + #undef TRACE_SYSTEM #define TRACE_SYSTEM drm #define TRACE_INCLUDE_FILE drm_trace