Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1118213rwd; Tue, 16 May 2023 12:04:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Yb02HfP0PAb06yPjwnwLmVjkRqy+QS6j0J2ym/UDM0jfgdijKKIWDmhIz9Gym+ybIEKCi X-Received: by 2002:a05:6808:1a0a:b0:395:df5c:59ed with SMTP id bk10-20020a0568081a0a00b00395df5c59edmr7363152oib.40.1684263873165; Tue, 16 May 2023 12:04:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684263873; cv=none; d=google.com; s=arc-20160816; b=PAJxxH0tfP8X9XGJEubWYPc66vUPp0iJL5EE1gz1YuUWl8d89k9vV2qDbam9G+0l+3 zlPED0SsAzdlyuOXKhDvDVLOwDnZBN574EqlFVoZtlU77M39I+2666Ifc4xOfP6KP35c rL0vcxPneJXa4oosIfJrvyqkg2EDgI9epXWsvE5B5n/UiibXQGf2ljhsL10nM/bwrTjc QIXYRUl86xwyImenynThEllk6Xs5C+7pgx84WIEugFDsWUoP/Oan3ddl0ixOZUgIlZ1J GMH56KTrpMpI+N16mAROd3u9TmfDBznYZXdSzMTfjJfz8628pxSe9BadVeFOL59FPdRS 9/zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KUJjioz/RDESzhxr1sAVPDBAwGkDyKbHHINiqmbIhbg=; b=vKIizo/hPmPGUjL+1K85qdAcroWE30jrFa0T1nLSHbarNVI120HifM2NIxx0C4un7Z SdZ6exVEyXeuP3LYcKoTcNSoTMW68WBnMUm0juVL2FK1t2vtnY7uU0neTmhnfPUNt0X2 B/4Zb27IAcyS0Xr0vDIC2uiZAp9BCtfQZy++6m+jG8xdxE6ZkUhuUKadj2d31YVal01K u0hNPaXItVMDjojKmlUmhVxkgLBi9dt2/3tW6BjmWwMPl+98MD4x+/ct5bPWjNVVxDMg 816Zz/3Km90AL7NS77nwbWSC0vHLFTWeQe213DaeSjBLigo0w1fWiqixOe9c+YIqEzYx UDqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jssn2VyK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x187-20020acae0c4000000b00390723bc753si11979153oig.107.2023.05.16.12.04.20; Tue, 16 May 2023 12:04:33 -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=@kernel.org header.s=k20201202 header.b=jssn2VyK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229708AbjEPSyG (ORCPT + 99 others); Tue, 16 May 2023 14:54:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbjEPSyF (ORCPT ); Tue, 16 May 2023 14:54:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4C981FD4 for ; Tue, 16 May 2023 11:54:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3776E630AB for ; Tue, 16 May 2023 18:54:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B413C433D2; Tue, 16 May 2023 18:54:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684263243; bh=Y29ciGsqbYK4aeA9R00cOYH1MS2t61zQJwlFBgifawk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jssn2VyKDq8zz69hFz2NfP+8chmdjxly5blQwS/tntPZ9RwClaVaC995/sMQSeCx8 3m43c0bXxAJE+s9JxQ3Voj70RSGKPchFcJx21ZEbiFCVn9mGyeFTS5NveVXbsxftix mkL4+jw+jx4/ScXe/1q821JhDxTVCes+lZcd4GsKfsZnPHYLRKh4S0xv4fF6/6HATA iK0VCyIY63Sei//q2cV+0vojQc5uTomXokd87DNDxT8llhERXxJD59oWXCONw49Ljg 8ey4WhM0+5A71CDFxQbXx6yKIxZiQoNQz2f77eaaaThwNeCgPpXlkxzW5BkhgVuDrl bjEwS6pAQiDhg== Received: by pali.im (Postfix) id AEDEBA47; Tue, 16 May 2023 20:54:00 +0200 (CEST) Date: Tue, 16 May 2023 20:54:00 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, Kumar Gala , Michael Ellerman , Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc: allow PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y Message-ID: <20230516185400.urjy6y3kh4grbagt@pali> References: <20230516152854.22465-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230516152854.22465-1-rdunlap@infradead.org> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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 > --- > 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