Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6067874imu; Wed, 26 Dec 2018 14:27:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN5C0XPv/YzIaekp+Loqugm20wvjqXclPr1jQmVVe02gxe+m6fQS38k/xVxFef8GTlA+uRi5 X-Received: by 2002:a65:4946:: with SMTP id q6mr19923010pgs.201.1545863260622; Wed, 26 Dec 2018 14:27:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545863260; cv=none; d=google.com; s=arc-20160816; b=Dho3m7s55foLqYW6QDuz6FlSZHWrQJO60FF0YPiK739VYqRs9cyRezSBks9KB9xv1f 41iKkZ53TSHkYP64BxG169Hy1un+I2EkDIzLaSJ85MetG0siQ8jI5FfU45qpfNNn/TIK WNvO5rh1wipSTwJuLdN1jhF1xCMAem6/sSs7hm1km8+8D+qXqh2soIBDwjnljxz9pyOX 93gv+eatXFNixs8Qgv0GVBwrP17ElXaY5RVX2SDil2coel3pBVLn22hub0pcCNzcf8ut CJGq2Lee3q6sZgQKj25SsYPHdGFPLd/UYcpImrTzq/wrgCJXCEr8j5fPPir1Fmh5IX58 f11Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date; bh=b6RkGJK/VZRpAhFaMfbqdPnkz0IrqGkVWt53t8eZwnc=; b=XjuWWJssni8lA/73+ep7ikZ9/va9dXNQKfuwqzx0jufgVOyM+OPmqTV3sQ2SpqttpT 278uZ/yHhlZ1oIMUGB6cHiJtAe/qC9TOzZQIFF93az57DDW2M1QjDv7acgHhYMlh6ojf nUcCZys7WO77BdcVUoTlhYqFSFkfGg/KeedpTBaoPxhD/V7MFLSVGN558F9Kc+X4Pc7K LunQeZnYYxlPam+B5H4G1ReuiLumUdIUHBrwinL09F0simduhWFwzVZlcALnOf9sTHES ucRH93SbZVis25C8kW+MJRD+CgFLYsf+1pIRGCy8ot8wHGd2GCYkcoQbWrIAj/ktEnpb PL+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l14si33069268pgi.147.2018.12.26.14.27.25; Wed, 26 Dec 2018 14:27:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728186AbeLZVCX (ORCPT + 99 others); Wed, 26 Dec 2018 16:02:23 -0500 Received: from asavdk4.altibox.net ([109.247.116.15]:36977 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727568AbeLZVCW (ORCPT ); Wed, 26 Dec 2018 16:02:22 -0500 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id 59A50803E9; Wed, 26 Dec 2018 22:02:17 +0100 (CET) Date: Wed, 26 Dec 2018 22:02:15 +0100 From: Sam Ravnborg To: Daniel Vetter , David Airlie , Maarten Lankhorst , Maxime Ripard , Sean Paul , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: Sam Ravnborg Subject: [PATCH v1 0/7] drm: minimize drmP.h dependencies Message-ID: <20181226210215.GA27610@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=UpRNyd4B c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=kj9zAlcOel0A:10 a=d4V9eucdeLooxy6TkNsA:9 a=CjuIK1q_8ugA:10 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The goal with this small series is to remove the last bits that prevents us from removing drmP.h file by file. - 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 4.20. Build tested using arm and x86 all{yes,mod}config Most of the work was to remove the include and fix fallout. The patches are trivial but touches a lot of files, so a lot of people on cc: for the individual patches. I expect the full series to be applied to drm-misc. There are still ~900 uses of drmP.h so a long way ahead of us to get rid of the header file. Sam Sam Ravnborg (7): drm: move DRM_IF_VERSION to drm_internal.h drm: move DRM_SWITCH_POWER defines to drm_device.h drm: move drm_can_sleep() to drm_util.h drm: remove include of drmP.h from bridge/dw_hdmi.h drm: remove include of drmP.h from drm_encoder_slave.h drm: remove include of drmP.h from drm_modeset_helper.h drm: remove include of drmP.h from drm_gem_cma_helper.h drivers/gpu/drm/amd/amdgpu/atom.c | 2 ++ drivers/gpu/drm/arc/arcpgu_crtc.c | 2 ++ drivers/gpu/drm/arc/arcpgu_drv.c | 6 ++++++ drivers/gpu/drm/arc/arcpgu_sim.c | 1 + drivers/gpu/drm/ast/ast_fb.c | 1 + drivers/gpu/drm/bridge/cdns-dsi.c | 2 ++ drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 4 ++++ drivers/gpu/drm/cirrus/cirrus_fbdev.c | 1 + drivers/gpu/drm/drm_flip_work.c | 1 + drivers/gpu/drm/drm_internal.h | 2 ++ drivers/gpu/drm/drm_modeset_helper.c | 2 ++ drivers/gpu/drm/mgag200/mgag200_fb.c | 1 + drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c | 1 + drivers/gpu/drm/omapdrm/omap_fbdev.c | 1 + drivers/gpu/drm/qxl/qxl_cmd.c | 2 ++ drivers/gpu/drm/radeon/atom.c | 2 ++ drivers/gpu/drm/radeon/radeon_legacy_encoders.c | 1 + drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c | 1 + drivers/gpu/drm/rcar-du/rcar_lvds.c | 1 + drivers/gpu/drm/stm/drv.c | 3 +++ drivers/gpu/drm/stm/ltdc.c | 9 ++++++++- drivers/gpu/drm/tinydrm/core/tinydrm-core.c | 1 + drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 2 ++ drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c | 1 + drivers/gpu/drm/tinydrm/ili9225.c | 1 + drivers/gpu/drm/tinydrm/mipi-dbi.c | 3 +++ drivers/gpu/drm/vc4/vc4_drv.h | 1 + include/drm/bridge/dw_hdmi.h | 5 ++++- include/drm/drmP.h | 15 --------------- include/drm/drm_device.h | 9 +++++++++ include/drm/drm_encoder_slave.h | 1 - include/drm/drm_file.h | 1 + include/drm/drm_gem_cma_helper.h | 5 ++++- include/drm/drm_modeset_helper.h | 2 -- include/drm/drm_util.h | 13 +++++++++++++ include/drm/tinydrm/tinydrm.h | 1 + 36 files changed, 86 insertions(+), 21 deletions(-)