Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp11268479rwr; Fri, 12 May 2023 23:47:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ59cGM7FiPm34XIqGzcZiv+JhZCf/SEdf2YTaYE68vLo8E2jKndrLpqHqEe0MWAx5E8tO4v X-Received: by 2002:a05:6a20:158a:b0:104:35ec:c25c with SMTP id h10-20020a056a20158a00b0010435ecc25cmr8387209pzj.41.1683960421049; Fri, 12 May 2023 23:47:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683960421; cv=none; d=google.com; s=arc-20160816; b=0ZX7HHL1WrEoWK41yCDE6sdRLIEADNWtKgdC/pTgbIGVXoSh9q5bNEWLFN9rFa+GjV heo9LKO3AVBwYhagRzA/D02eCOhexdTjWFvc7tGsCiKi+gBUEQfG6d5M2w8fAOMsLPQa dFs+SOq7pkm0XuksMXXtFfftZSZ7wZr7eJue/3/7l3wpjuMEQjX3vW2mD5XNIF1xgxac f9eaFYjE7gma0FrMTuwE8RPsjuFOaOZUq9oIrHoHaoau4QkzEtAQYb7Bo1LUPPDmf30B fwVWpzrgCZY50e7kaIYm06/reXY5TSgTM79CwxlgsCsegr4iPWAlEtgtUfsQvhNJ7HZd uqBw== 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=JwvBlXffIR0HVqcitR36C1vwkyoUehqX0Gm5NBSTvZk=; b=J9OgxmnJEXhSG6GAD+yN2ZrdioR5rokedVci6cUfe6fP7TTfULF4SyJxHpcWkgFETW fzxN8rL2gp1zf/4ckas/XXU6qAqmhiw2gatlIxULgAE8MTpht0EsIABIYkAO9kBU3hHD WSvVSGFq58SLTTAbSYvw0MHwGXN0u3CZ2Q/5S0m4JnEUVHsjktAmBMr/B3IX3ANbePrD 38i4Xw8dSPWz7m30MrrRZr5vJlw/SFcb5KvYFCXSI524qyWCxNkHJugE3xxQYLUlQEjZ x2Iuhnmn6Vnlr2IHgQ12sLKu+9xLcLXsI9S2kwPz+oW2M2af1NMuwNskq4zj7P462/dz kUeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=I+iRnGYI; 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 s1-20020a63dc01000000b005286d7712d1si11169809pgg.672.2023.05.12.23.46.48; Fri, 12 May 2023 23:47:01 -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=I+iRnGYI; 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 S231803AbjEMF6N (ORCPT + 99 others); Sat, 13 May 2023 01:58:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbjEMF6M (ORCPT ); Sat, 13 May 2023 01:58:12 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 310C81703 for ; Fri, 12 May 2023 22:58:10 -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=JwvBlXffIR0HVqcitR36C1vwkyoUehqX0Gm5NBSTvZk=; b=I+iRnGYIbH0GzESG0nV955gJUa 0UPKyS/3Qb6BMiTbeTDcCOdZb6t8rJdRYDvFibJjoDDonE/XO1JsdC8BigzdBGV+1XQMUYDN1ilsi 2qw908Jr765lQtgmh5i9NvGx2y5UGEEwdrKcPepoeExmP11o8zlVXSnrdSKTayT6U0WY1jh2L3C84 iq+q935gdVdCRN32X0qWWlqn7dccEOqU7m5spB1uEBTo/W5Ex55QgNHeczWkLIWDJ/dzesIGwJC+e MXjwSqBFH7N3PX1PvB7OfzjFl6o0hdZ5MHH8iQ1uwmBd+xoc3IVTY3k3bmtWWX+ipK5kjLC1CrsKl tUnFsPRQ==; 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 1pxiGc-00DlRD-1n; Sat, 13 May 2023 05:58:06 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Michael Ellerman , Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org, Arnd Bergmann , =?UTF-8?q?Pali=20Roh=C3=A1r?= Subject: [RFC PATCH] powerpc: udbg: export udbg_putc Date: Fri, 12 May 2023 22:58:04 -0700 Message-Id: <20230513055804.23775-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! The build can be fixed by exporting "udbg_putc" in udbg.c. OTOH, maybe something like this is more appropriate in arch/powerpc/Kconfig.debug? config PPC_EARLY_DEBUG_CPM bool "Early serial debugging for Freescale CPM-based serial ports" - depends on SERIAL_CPM + depends on SERIAL_CPM=y Signed-off-by: Randy Dunlap Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org Cc: Arnd Bergmann Cc: "Pali Rohár" --- arch/powerpc/kernel/udbg.c | 1 + 1 file changed, 1 insertion(+) diff -- a/arch/powerpc/kernel/udbg.c b/arch/powerpc/kernel/udbg.c --- a/arch/powerpc/kernel/udbg.c +++ b/arch/powerpc/kernel/udbg.c @@ -14,6 +14,7 @@ #include void (*udbg_putc)(char c); +EXPORT_SYMBOL(udbg_putc); void (*udbg_flush)(void); int (*udbg_getc)(void); int (*udbg_getc_poll)(void);