From patchwork Tue Feb 25 16:44:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13990297 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 52D7FC021B2 for ; Tue, 25 Feb 2025 16:44:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8F1B710E1EA; Tue, 25 Feb 2025 16:44:56 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="SuNk+zdQ"; dkim-atps=neutral Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2D6EE10E1AD for ; Tue, 25 Feb 2025 16:44:41 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id B376F5C014A; Tue, 25 Feb 2025 16:44:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1971CC4CEEC; Tue, 25 Feb 2025 16:44:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1740501880; bh=ZX5eNqfG2UfwSXd6a7upCgYYCJX3G4CmXLdSAOkFdSg=; h=From:To:Cc:Subject:Date:From; b=SuNk+zdQlyrpthP0q5lo3IgJRdelSpuQfAw3eUDvMCuvc3oczkl84KZsDd0KMNZfk y86wUN5PYNfThF0Z8diUpfOyllDDJoJvm14DlAFKGpdQx6vVngAvcZr+ip6IJiXJ/t cZ3VpsqFPJGHK44Q+yxJJGBipYOaybJ0nJiIDzVNpd94Q4vM10Bxoe1JwLJJTHrGqF fEbmXuA0KKGVQ2V79J2UiHMjpuVx0DCYR0UddJGpG0aFvg7Cqn6LH5FKel9R6wpMpd YJXF7Oa3Z5ES2Wn1LRO6j18IM3Y4i8Q00+9QPyvgpyEEHv0OG5t5wTUW7oiyXIX2ic efdrgUHKDy8nQ== From: Arnd Bergmann To: Greg Kroah-Hartman , Helge Deller Cc: Arnd Bergmann , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] dummycon: only build module if there are users Date: Tue, 25 Feb 2025 17:44:21 +0100 Message-Id: <20250225164436.56654-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Arnd Bergmann Dummycon is used as a fallback conswitchp for vgacon and fbcon in the VT code, and there are no references to it if all three are disabled, so just leave it out of the kernel image for configurations without those. Signed-off-by: Arnd Bergmann Reviewed-by: Thomas Zimmermann --- drivers/video/console/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/console/Kconfig b/drivers/video/console/Kconfig index bc31db6ef7d2..1c4263c164ce 100644 --- a/drivers/video/console/Kconfig +++ b/drivers/video/console/Kconfig @@ -47,8 +47,7 @@ config SGI_NEWPORT_CONSOLE card of your Indy. Most people say Y here. config DUMMY_CONSOLE - bool - default y + def_bool VT || VGA_CONSOLE || FRAMEBUFFER_CONSOLE config DUMMY_CONSOLE_COLUMNS int "Initial number of console screen columns"