From patchwork Wed Jan 11 13:01:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 13096619 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 31E45C5479D for ; Wed, 11 Jan 2023 13:04:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=9B/cE4SlgSw5tDMSLJQqZ/t4GXLv+vD90tZHz/F177w=; b=OI/aFkBBj1zVjr HNslcTYI9k4HKjYiPYkTetk8SlBk5zBiT6oN5QnhEM3Qb7I61iymOnvQEAeKsIlyzOznB2trHWQf0 z0bh0n9QmtbfLxSCjf0/fkUCljtmRF/l4lH3dJ+PCP1eNG+QFloOmU7sxidSgnPkCwjcQMPiPGVvz 7Q7coZsEicb1bu59xPdVEPrJ9gJgpyC2GJsYVxR6yA0HSQtSZ7KWwiVNviqEQHrfK8RNqwRrQur47 NY8I0MUNywQayDoebHehjzjU2SlzAVwg+f6hhJvVyBy3Fnau/z+1T9vnMZiLNEmPhCHFMZTguRSKY o/ibi/gTZZH3HRIy6FTw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFall-00BPz7-VF; Wed, 11 Jan 2023 13:03:54 +0000 Received: from smtp-out1.suse.de ([2001:67c:2178:6::1c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFakE-00BPFX-Rg; Wed, 11 Jan 2023 13:02:22 +0000 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id EE23533CF9; Wed, 11 Jan 2023 13:02:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1673442129; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9oONkZEyJ8J1igj9qEL4QXWADQTc/UpGLwdCjKydhiI=; b=SxbwuRLAwQP/DDVJ73sd4y+muqp0PPVq2BWxYvwvQEhuJ4TuvMicxDI7Iqbjg6aLROy6i1 Wt/WB5pRB/Oco6106z1hl//ciMmnDaJZHCVjiYyiXnkGrvh1VR1Cz+x4ZI2SV0QC0F2sc4 vmNUunaVOU+rWl8fbmaKeM/IdRBch2U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1673442129; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9oONkZEyJ8J1igj9qEL4QXWADQTc/UpGLwdCjKydhiI=; b=7bhxGerCDupCwiCadeIWtrzhmusamjozhJJGD2w0eb+ilfqwITpr2ALUPZJn4iGTSgjola oRKoTsNtaRQneDAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 9C4CA13591; Wed, 11 Jan 2023 13:02:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id gDw/JVGzvmMaXAAAMHmgww (envelope-from ); Wed, 11 Jan 2023 13:02:09 +0000 From: Thomas Zimmermann To: alexander.deucher@amd.com, christian.koenig@amd.com, airlied@gmail.com, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, patrik.r.jakobsson@gmail.com, thierry.reding@gmail.com, sam@ravnborg.org, f.fainelli@gmail.com, james.qian.wang@arm.com, liviu.dudau@arm.com Cc: dri-devel@lists.freedesktop.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, amd-gfx@lists.freedesktop.org, Thomas Zimmermann Subject: [PATCH v2 00/10] drm: Do not include unnecessarily Date: Wed, 11 Jan 2023 14:01:56 +0100 Message-Id: <20230111130206.29974-1-tzimmermann@suse.de> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230111_050219_222892_AC44BDBB X-CRM114-Status: UNSURE ( 9.10 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Remove unnecessary include statements for . I recently changed this header and had to rebuild a good part of DRM. So avoid this by removing the dependency. Several files include via drm_fb_helper.h. So in v2 I added additional patches that remove some of those include statements as well. Some source files require the OF or backlight headers. Include those instead. v2: * add more patches to handle drm_fb_helper.h includes * fix komeda build (kernel test robot) Thomas Zimmermann (10): drm: Include where needed drm: Include where needed drm: Don't include in drm_crtc_helper.h drm/amdgpu: Do not include drm/panel: Do not include drm: Define enum mode_set_atomic in drm_modeset_helper_tables.h drm/amdgpu: Do not include drm/nouveau: Do not include drm/radeon: Remove trailing whitespaces drm/radeon: Do not include drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 - drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 1 - drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 1 - drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 1 - drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 1 - drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 + drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c | 1 - drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 1 - .../gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c | 1 - drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c | 1 - .../gpu/drm/amd/pm/powerplay/hwmgr/vega12_processpptables.c | 1 - drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c | 1 - .../gpu/drm/amd/pm/powerplay/hwmgr/vega20_processpptables.c | 1 - drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c | 1 - drivers/gpu/drm/arm/display/komeda/komeda_drv.c | 1 + drivers/gpu/drm/drm_modes.c | 5 +++-- drivers/gpu/drm/gma500/backlight.c | 2 ++ drivers/gpu/drm/nouveau/dispnv04/crtc.c | 1 - drivers/gpu/drm/nouveau/nouveau_drm.c | 1 - drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 1 - drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c | 1 - drivers/gpu/drm/panel/panel-ronbo-rb070d30.c | 2 +- drivers/gpu/drm/radeon/atombios_crtc.c | 1 - drivers/gpu/drm/radeon/radeon_acpi.c | 2 +- drivers/gpu/drm/radeon/radeon_connectors.c | 1 - drivers/gpu/drm/radeon/radeon_drv.c | 1 - drivers/gpu/drm/radeon/radeon_legacy_crtc.c | 3 +-- include/drm/drm_crtc_helper.h | 2 -- include/drm/drm_fb_helper.h | 5 ----- include/drm/drm_modeset_helper_vtables.h | 6 +++++- 31 files changed, 16 insertions(+), 35 deletions(-) base-commit: ac04152253dccfb02dcedfa0c57443122cf79314 Acked-by: Sam Ravnborg