From patchwork Sat Jan 19 08:40:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10771947 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 3E8661390 for ; Sat, 19 Jan 2019 08:40:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 09DAA2F7E4 for ; Sat, 19 Jan 2019 08:40:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 07A722F7F2; Sat, 19 Jan 2019 08:40:43 +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 52A4C2F899 for ; Sat, 19 Jan 2019 08:40:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 191B26E14A; Sat, 19 Jan 2019 08:40:39 +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 952C56E14A for ; Sat, 19 Jan 2019 08:40:37 +0000 (UTC) Received: by mail-lj1-x243.google.com with SMTP id v1-v6so13614483ljd.0 for ; Sat, 19 Jan 2019 00:40:37 -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=/as/bWvIFK2ziDeqCSqmE1WrROB+enst0eH92KNvUJo=; b=sI1kVsKGQBoNo71StZcdyuxoMEtQOvemtis2U5c0k3NJoPWL8M88YCpi4+C1YRG5Va 25hy04SqWN+zuoZPuW/S7m/EKTE+yRq+AguBBQvyhLqk+Wyaq6/TT547WOe+iRLHGJn4 DxETx6LurAnFaeuB9oExfT2GWMgmLOglU2p1Mb2VZ3P28vwi82mN81whtT5f2w0DW+6W vICdk+bZxVednkUl2b04HLRQz50hcm7CdfrvecyZ20D9UtuNjpLOtVtu6NP7+n+NM+8l ChPaIiYcxMMZCl1FRUjbioj2/OJ9VdD2hyugWN1Usv+ak3LBhPJzUhVB6Ur7QFR67wrp wPig== X-Gm-Message-State: AJcUukdN2RlrLCcjA0xfrGYka/hj+nstRHVClYjFvg3E6fddc9kMPB5i Zvx+p1QwNi7b1k3ughLb02I8qe93DiM= X-Google-Smtp-Source: ALg8bN6N0sf4mG6DcmIAyaykE6uh7WCYONrVvZ0n2Y5Dv4Ads2nYbKhlVGjjgDvwD3Te/97p9NuBJQ== X-Received: by 2002:a2e:4a19:: with SMTP id x25-v6mr13647404lja.19.1547887235569; Sat, 19 Jan 2019 00:40:35 -0800 (PST) Received: from jupiter.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id p23sm1187109lfh.47.2019.01.19.00.40.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Jan 2019 00:40:34 -0800 (PST) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org Subject: [PATCH v5 0/6] drm: minimize drmP.h dependencies Date: Sat, 19 Jan 2019 09:40:08 +0100 Message-Id: <20190119084014.5355-1-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: Sean Paul , Xinliang Liu , Maxime Ripard , David Airlie , Chen Feng , Alexey Brodkin , Philippe Cornu , linux-kernel@vger.kernel.org, Vincent Abriou , Xinwei Kong , Kieran Bingham , Laurent Pinchart , Rongrong Zou , Sam Ravnborg , Yannick Fertre MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Updated patchset, with merged patches removed. Addressed Laurents feedback (sorted include files) > From the original mail: - drmP.h is now stripped down to include files and forward declarations. - All header files in include/drm/ no longer include drmP.h. The series was made on top of drm-misc-next. Build tested using arm and x86 The patches are trivial but touches a lot of files, so a lot of people on cc: for the individual patches. This series will conflict with work going on in i915, and Daniel has a plan how to apply this. Sam v5: - Rebased on top of drm-misc-next and dropped patches already merged - Sorted list of include files where they are touched (Laurent) - Collected ack's, reviewed by's v4: - Rebased on top of drm-misc-next and dropped patches already merged - Include build test of kirin (Daniel) - Plug drm_util.h into drm-internals.rst (Daniel) - Fix kernel-doc syntax in drm_util.h (Daniel) - Split removal of drmP.h from drm_modeset_helper.h in smaller patches, to ease the merge process v3: - Added Acks/Reviewed annotations (thanks!) - Add forward of drm_gem_object to drm_framebuffer.h (Noralf) - Drop "drm: move DRM_IF_VERSION to drm_internal.h" as it is applied to drm-misc - Drop "drm: make drm_file.h self contained" as Jan made a similar patch that was appleid to drm-misc - Rebased on top of drm-misc-next v2: - DRM_SWITCH_POWER as enum (Daniel Vetter) - Prefer forward decalration over includes (Laurent Pinchart) - Updated drm_device to use kerneldoc style (Daniel Vetter) - Improved commit messages (David Lechner) - Split up patch when removing drmP.h from drm_gem_cma_helper.h - rebased on top of drm-misc-next - dropped patch already applied - added reviewed-by from Laurent Pinchart (Laurent Pinchart) - add drm_framebuffer.h patch - add kernel-doc comments to drm_util.h - moved EXPORT_SYMBOL_FOR_TESTS_ONLY to drm_util.h - added note to drmP.h not to add new stuff and not to use in new files Sam Ravnborg (6): drm/stm: prepare for drmP.h removal from drm_modeset_helper.h drm/hisilicon/kirin: prepare for drmP.h removal from drm_modeset_helper.h drm/arcpgu: prepare for drmP.h removal from drm_modeset_helper.h drm/bridge: cdns: prepare for drmP.h removal from drm_modeset_helper.h drmi/rcar-du: prepare for drmP.h removal from drm_modeset_helper.h drm: remove drmP.h from drm_modeset_helper.h drivers/gpu/drm/arc/arcpgu_sim.c | 3 ++- drivers/gpu/drm/bridge/cdns-dsi.c | 2 ++ drivers/gpu/drm/drm_damage_helper.c | 1 + drivers/gpu/drm/drm_modeset_helper.c | 2 ++ drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c | 11 ++++++++--- drivers/gpu/drm/rcar-du/rcar_lvds.c | 1 + drivers/gpu/drm/stm/drv.c | 6 +++++- drivers/gpu/drm/stm/ltdc.c | 9 ++++++++- include/drm/drm_modeset_helper.h | 6 +++++- 9 files changed, 34 insertions(+), 7 deletions(-)