Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2902076rwd; Fri, 9 Jun 2023 20:21:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7n+KsW5d+3YZivfRP7j0GIgz8ujba0Q16EaP3SaWfs1EtshQVnxe8GAxFzRXGR/t0CoOQj X-Received: by 2002:a05:6a00:1346:b0:647:370c:2c2a with SMTP id k6-20020a056a00134600b00647370c2c2amr3582723pfu.6.1686367297637; Fri, 09 Jun 2023 20:21:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686367297; cv=none; d=google.com; s=arc-20160816; b=0Unl1xEuwykAgf9MAfEUJziHqvQJD7EUEcrZOsBN5FScN8Vofg2mQWpWoPIflgugk1 VgGRni2/7A5FBJEMVxENsrqjVBs9Bs8ZrgS2LEHLFfgmubCmh2hgCMuo90Qt8WRBrzm6 o8wH2Jx7Dvcuo0GT/9WjH4BRz1vjS81cjM0GtTt/K3goIEX0IRHIb6eGVacz2uZYk1kj 7dmz2mSF0wK5AO4qTdqiaauPMpRx1aN/s9CrAy5yjVVuTNT6xu+fGI+6tijvczEqIaVN ju39811jlZ2ow5o6sc3AqI+QlCtd17Tsuv2UGA7c2JJb8ZBVNZR5WluU2+gsgzA1baeA X7BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Sb/UB5/DjsCS2B8f+KFn47kYIziWm7qZBTkSBfzgFSs=; b=Pe1ZnhBNGVUAXS2z2VcTqgy4F5d/A8lgqhO/8STsvxUYBMHB7DYGdoGurKt2iVBaT/ NfNf+yTeZfbzjw5WRcx/6iFQLxHjAXi2vUEJhXhEDCteGBc/jQlBkPUjATIFU2kByyx3 tnnmpM1mJMXJr+utRgzGBL5CcwYKaJ/4fazkjjQFCkt4EtAdMF5ykHfyZtBhVHY/5KnG iM9LCce+9PoppWgt67zUkkfCzw1xoQODXCm5uU0BdgxTerU1cySXS94Ms73cApBOXn0a iI/kL65coutV04kjkUz/Kxqi0109uaRiLfwHaKWpJvA23KeiQI3MsCzRFjD4cBS9crmy 3HbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=i3RZaGvS; 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 j9-20020a633c09000000b0054570b4a405si3451198pga.478.2023.06.09.20.21.18; Fri, 09 Jun 2023 20:21:37 -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=i3RZaGvS; 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 S233714AbjFJDLT (ORCPT + 99 others); Fri, 9 Jun 2023 23:11:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjFJDLR (ORCPT ); Fri, 9 Jun 2023 23:11:17 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3424F3A89 for ; Fri, 9 Jun 2023 20:11:17 -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:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=Sb/UB5/DjsCS2B8f+KFn47kYIziWm7qZBTkSBfzgFSs=; b=i3RZaGvShmlC9poF+PWtgMvYRh CZBXULNRMjgpJhLE8Qku316RXG6YZaoV2PRdMiMg3RhXWQeDtEmnExT3l0bhzmmL+eguT+9wBKbA4 wIqmRVibzgX5Fhr/TK5aThYp74VJGJbYFQcbInJs3jqM+08WxX3EpTfvyR5QdNhjJjPlqum8Je+0u XPhI2rZRCoqmRUKzScf+pWLfZmq0M+j8A7jg5VqviUprEuHCTrAPlS8QIf9Uy5gPjiSKPZ206RxJD MzkyQt/c3XEozkux4Rv9jsmOl7p1+lPPXzOnvqT59VbaN64aocH0GeE0j74rjDlXlEgxSQWjJ9ImS ygl3xEqA==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1q7p0W-00F3SV-1y; Sat, 10 Jun 2023 03:11:16 +0000 Message-ID: Date: Fri, 9 Jun 2023 20:11:16 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH] powerpc: allow PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y Content-Language: en-US To: =?UTF-8?Q?Pali_Roh=c3=a1r?= Cc: linux-kernel@vger.kernel.org, Kumar Gala , Michael Ellerman , Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org References: <20230516152854.22465-1-rdunlap@infradead.org> <20230516185400.urjy6y3kh4grbagt@pali> From: Randy Dunlap In-Reply-To: <20230516185400.urjy6y3kh4grbagt@pali> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 Hi-- On 5/16/23 11:54, Pali Rohár wrote: > On Tuesday 16 May 2023 08:28:54 Randy Dunlap wrote: >> 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 > > Looks good, > > Reviewed-by: Pali Rohár I'm still seeing this build error in linux-next even with other (PPC) CPM patches applied. > >> --- >> 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 -- ~Randy