From patchwork Sun Dec 30 17:48:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10745153 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 63BFA1399 for ; Sun, 30 Dec 2018 17:49:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5281A285A6 for ; Sun, 30 Dec 2018 17:49:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 47104285AD; Sun, 30 Dec 2018 17:49:11 +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 023FB285A6 for ; Sun, 30 Dec 2018 17:49:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3803C899E6; Sun, 30 Dec 2018 17:49:06 +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 A02B7899E6 for ; Sun, 30 Dec 2018 17:49:03 +0000 (UTC) Received: by mail-lf1-x144.google.com with SMTP id n18so17310956lfh.6 for ; Sun, 30 Dec 2018 09:49:03 -0800 (PST) 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; bh=mEZJNWJtdpmKjd3zb3L4gpeSqO2og5SgBJuK13KPepA=; b=OT+PSLFRrwcpCHG886QYRgkNa4Vw+xr1JzE/MTRvsJg5KXeeNM7lxwhQnpGp1vGfK/ m7drYwKu1ECKruWrQEO5SBvM8HURdndvwg3CqcpWPuIRHFMH+d4HyK9NiL8U2jOZuBID sOdu8u3yPbkM6eHvk+jBN/ZsU735AQp+vOWR7MmKBvcPeIserpGsTusegqLAJmoy5xxy dy7IetbiBUlPSRvLTH3O9GJ7eCPIx4RHGa01LZqB6iIWcz+/IWoriKgK3yjyF7mUFEpu JFu10AjTu0YYB2tZnJwc5P2tf9usngngMY8kx5IhtW/eY4nepbzWAZ9A+kKlRXSIIl3r pgNg== X-Gm-Message-State: AA+aEWaQ67uXjx6UqNpBdTsADr72fShYeAh/bv0r6rKqeS18JLc0MFDM BnX0hwaLygo107fgfOR5KfU= X-Google-Smtp-Source: AFSGD/WC6+7GSYgxWUrnRxqZJePt404jwH9l1prUSteZrbZxz21/ghqqv8mTC7v/R6y3zxdpmwOIoA== X-Received: by 2002:a19:9653:: with SMTP id y80mr17381485lfd.66.1546192142004; Sun, 30 Dec 2018 09:49:02 -0800 (PST) Received: from jupiter.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id q11sm8853170lfc.92.2018.12.30.09.49.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Dec 2018 09:49:01 -0800 (PST) From: Sam Ravnborg To: Daniel Vetter , David Airlie , Maarten Lankhorst , Maxime Ripard , Sean Paul , David Lechner , Laurent Pinchart , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v2 05/14] drm: make drm_file.h self contained Date: Sun, 30 Dec 2018 18:48:29 +0100 Message-Id: <20181230174838.32330-6-sam@ravnborg.org> X-Mailer: git-send-email 2.12.0 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: Jani Nikula , Sam Ravnborg MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP drm_file.h embed struct idr, so this file need to know the full type definition. With this change users of drm_file.h are no longer forced to include idr.h - a file they usually get from drmP.h This makes it simpler to remove drmP.h includes Signed-off-by: Sam Ravnborg Cc: Jani Nikula Cc: Daniel Vetter Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Acked-by: Noralf Trønnes --- include/drm/drm_file.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/drm/drm_file.h b/include/drm/drm_file.h index 84ac79219e4c..bbdb74c3d7ff 100644 --- a/include/drm/drm_file.h +++ b/include/drm/drm_file.h @@ -30,6 +30,7 @@ #ifndef _DRM_FILE_H_ #define _DRM_FILE_H_ +#include #include #include