From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 713F28F57 for ; Sun, 16 Jul 2023 20:54:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E7BEC433C7; Sun, 16 Jul 2023 20:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689540890; bh=GbF4QTj0XoUx37i0f4E6PV9+Lue9ml50zSFuV8w4Qvw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mdGdmxTKMujs7FKnmV1KHI0F2nxBMVjhGSvqZScYzElYwou9w/a8/05N2Wv52CLKY 8GfmrrpBqVj7LnaFq6kZZm44MyggfwJBjn7QDsaiJ809CjX24y9LwDdMUJRmoR+DpE YFYHxUGaRjGiCLJguazlfckmQgwQFy2Htjcp7dBQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Randy Dunlap , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Christophe Leroy , Michael Ellerman , Sasha Levin Subject: [PATCH 6.1 497/591] powerpc: allow PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y Date: Sun, 16 Jul 2023 21:50:36 +0200 Message-ID: <20230716194936.754768462@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230716194923.861634455@linuxfoundation.org> References: <20230716194923.861634455@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Randy Dunlap [ Upstream commit 39f49684036d24af800ff194c33c7b2653c591d7 ] In a randconfig with CONFIG_SERIAL_CPM=m and CONFIG_PPC_EARLY_DEBUG_CPM=y, there is a build error: ERROR: modpost: "udbg_putc" [drivers/tty/serial/cpm_uart/cpm_uart.ko] undefined! Prevent the build error by allowing PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y. Fixes: c374e00e17f1 ("[POWERPC] Add early debug console for CPM serial ports.") Signed-off-by: Randy Dunlap Reviewed-by: Pali Rohár Reviewed-by: Christophe Leroy Signed-off-by: Michael Ellerman Link: https://msgid.link/20230701054714.30512-1-rdunlap@infradead.org Signed-off-by: Sasha Levin --- arch/powerpc/Kconfig.debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug index 6aaf8dc60610d..2a54fadbeaf51 100644 --- a/arch/powerpc/Kconfig.debug +++ b/arch/powerpc/Kconfig.debug @@ -240,7 +240,7 @@ config PPC_EARLY_DEBUG_40x config PPC_EARLY_DEBUG_CPM bool "Early serial debugging for Freescale CPM-based serial ports" - depends on SERIAL_CPM + depends on SERIAL_CPM=y help Select this to enable early debugging for Freescale chips using a CPM-based serial port. This assumes that the bootwrapper -- 2.39.2