Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp863268rwd; Tue, 16 May 2023 08:34:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7EZJWx40hWepjo424L70hECd5SM8HmSneamZpJf/pvRH6SIOhmAvO+FAM0BOBrmkHsoefA X-Received: by 2002:a17:902:f68e:b0:1ad:e8f5:7c7b with SMTP id l14-20020a170902f68e00b001ade8f57c7bmr19313282plg.62.1684251279171; Tue, 16 May 2023 08:34:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684251279; cv=none; d=google.com; s=arc-20160816; b=s9l4BfmuN4FuIBHgY1t8tQs4oJ5ilo/z8fZEcqkl2yV4yNk2Mg2ZBdFDFCwA8iVthE H0jnJi4kRNEmJgAnapBEtB6xvntqy43o1DN4WIau3Qep9eqmlpi2FRyRen1jfkL6ukbK SWGyHxPdRAo8zodMcpz+6EwAZIaGENjcK7Bdh4N4GZkQeKUNu7iPGH6Zmh/8IhrScsxP Rseye7O/vhlDMmqYoOA6CEnxuGO9DhfEZqPOxN5V1Qm+BSTxrKLKdY3q9zzJh6StjD3j P4mDCdF7NuJEDjobhVCLUqEdEhhi9jXcK+NlR/vQwRDi0DtzIoHgkJfWDN4GLxkaW4Vc wvzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3qcDLPtKnom2z9UP3ge/ixu7VFSWfqsntSxlq8RNFFo=; b=HpDQVh+YitLqFsx5/v0YMZNUsdvcBZa58fmPpldsJu/b6RWe3YHLqGh98HHhGENVod PpCsB4a/Ro/SYyKnmPATzYhQZO7z6WHFZ7H95S5JnufqUryxnCRDbsQ5IOdoTf3tGzTV MzoOrsW/kmwdlz4/petw/2xfdtNaA5R0xA795lFuiUg0z/etg2OH5DpryzXSDVC3hnM1 AzC04NYjYNGjuBMUChMlrsmjt2rlxINrMHl16NLczPZ5OjIm1zcb4PQHfLm6GJEkyQlG 53y2vF7BsHIidGsnL6X31D6ccMPdwpm1GLrsgBvEBxXZupqyVsGmkEBfs5wpIUSMCTpp Xg5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=DLokU4Xo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e12-20020a170902d38c00b001a9ba4690casi18374547pld.295.2023.05.16.08.34.24; Tue, 16 May 2023 08:34:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=DLokU4Xo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233928AbjEPP3E (ORCPT + 99 others); Tue, 16 May 2023 11:29:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233308AbjEPP27 (ORCPT ); Tue, 16 May 2023 11:28:59 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FA535FEB for ; Tue, 16 May 2023 08:28:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=3qcDLPtKnom2z9UP3ge/ixu7VFSWfqsntSxlq8RNFFo=; b=DLokU4XoHJl0zbKFoPEUs22CFm jWN6sh0JDV+PgG9syludfl3Uu9y7W4zuYbU/C7G3qKtH4HzJAEIhgKpvzzMyB8os7Evl3UzQ8vOsj yJ72JFBYZ5HXcaIQz4eM18ftvkMWCzbkpnIyM/GNGk8Gha5+fPOsK1YFCjbXOrF3ETQtxtAZ0TNZx BsjZ5bvUkLGcCJ0+lplYs46yBbsAowEIlEWf9TFOJxrfb5C8jeJ0eAzwoWQBGVPRv/vTdt1XzdKkQ rF2TVnZC7AKSsK4EaHFRNU7+kSOFnVUjYW7lXZPAmDyVR56OOA85oM/sBTNsigsK3osmTYvIY3VH0 00iwsB2g==; Received: from [2601:1c2:980:9ec0::2764] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pywbg-006FRC-0N; Tue, 16 May 2023 15:28:56 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Scott Wood , Kumar Gala , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Michael Ellerman , Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org Subject: [PATCH] powerpc: allow PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y Date: Tue, 16 May 2023 08:28:54 -0700 Message-Id: <20230516152854.22465-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Scott Wood Cc: Kumar Gala Cc: "Pali Rohár" Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/Kconfig.debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -- a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug --- 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