Message ID | 20230522082048.21216-3-herve.codina@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1297067vqo; Mon, 22 May 2023 01:44:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7YH4ec6xOC4x5UhlFifjjrJUxsA7F4AKb3CvXGbyLJl2Xy+oq87p7clGB6BmlDFPHLRAoT X-Received: by 2002:a05:6a20:7351:b0:107:35ed:28b5 with SMTP id v17-20020a056a20735100b0010735ed28b5mr10920968pzc.2.1684745075731; Mon, 22 May 2023 01:44:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684745075; cv=none; d=google.com; s=arc-20160816; b=EbQs4+yXDPG7I7p6u6yEh8pqZRIT9H5surT0pBPv3PMnaYO1n//lRwC5DAGo/ijG/4 3Dl1am4eM/cah6hOI+l8qlF6Z8/5oVawx8+/nzwXZSooqE14lhF1oe4mAFjgnzQn97JL WppkAFm5bp3kVB89ABjmohoGpiLsu5NHbxh3szKxz1bw25K8RBIuzvBWHh0sqY2BGUbI 30FYP8kbzdG/tKOpMs2UwCzPqtwkBoEcKp3jLVqDihBacLbf4eTqdABwlhpPJIQkT8Fg me5O1JqbcHVrP3b4tp2tBpmaJoLKiPhbDVd2gGxy45Lm2cxq7zkifAZ3ksFUnn/KliGC GPgA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=m9RlMCr/Uw6a3Vz3BJWKzlbktC7/2wHn7/gyCNVuySw=; b=nSI0FzCgLO1eQMYrH4J+bkKdBjUxGzggB+Fraf8RpkwU/fm/aSg+hGeNFAhs7TMj1z Tajt/2EDtmD9zsU+VLDFQ5fAZvy0w1RdtJu4zGkK+GSs9zMdBgwwIKF87gxDuU8dPJD/ wqeNd140GpW+cWFfdSMYBX/o42NoIQlwD2JzFT2dHMdy9RmRflysYtJafdSGeozDCjNj Y2Lk6kukCddR41HrToq0Si1vAyVSwA4cKInk6VnCtpq6aFZLkyYv5ybB8xDFrdebsq0S zZyFMfnUB6bTRKZ3Lj6OX4B3WhFUmvCZbYmQAUZsaoQ0LDdS01bEv/8M+PI3nUYa+/YH A8yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BzIRnSSt; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dw7-20020a17090b094700b002502c10bdb4si4243351pjb.91.2023.05.22.01.44.19; Mon, 22 May 2023 01:44:35 -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=@bootlin.com header.s=gm1 header.b=BzIRnSSt; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232249AbjEVIV1 (ORCPT <rfc822;cscallsign@gmail.com> + 99 others); Mon, 22 May 2023 04:21:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232176AbjEVIVN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 22 May 2023 04:21:13 -0400 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67BC1B4; Mon, 22 May 2023 01:21:12 -0700 (PDT) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 043D820002; Mon, 22 May 2023 08:21:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1684743671; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=m9RlMCr/Uw6a3Vz3BJWKzlbktC7/2wHn7/gyCNVuySw=; b=BzIRnSStfLDQoptXGtE7Qw5Zj57oxN1fRKa+gIZwZUf13Tu2qF8f1W0HXNahkwMUGME220 h4QwX3jtFhmkg+VXeDbcm/CWjevrhjye19OMId6EpANMoUIkyBDxAoTeYTZMhbgVNjba4L x7dtQU3mIl+qwVP9ggugn1CXBdTBG1Z+OVAVRbMbU8z6hYm1B3XvTAmxQl5b2rg2mouNcW yRjFwolaYg7LYM2ZHucENiWLmIFvBmwE4EsKHDYT+gXwdlnI9/rterPBm72qgDdaztCdO8 cNqL12/73/+UMlSbZFkX/Se6th07se6tHlPCB+itw3xB+W4nUEBySjFRDFPAQw== From: Herve Codina <herve.codina@bootlin.com> To: Herve Codina <herve.codina@bootlin.com>, Qiang Zhao <qiang.zhao@nxp.com>, Li Yang <leoyang.li@nxp.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jiri Slaby <jirislaby@kernel.org> Cc: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Mark Brown <broonie@kernel.org>, Christophe Leroy <christophe.leroy@csgroup.eu>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, kernel test robot <lkp@intel.com> Subject: [PATCH 2/2] serial: cpm_uart: Fix a COMPILE_TEST dependency Date: Mon, 22 May 2023 10:20:48 +0200 Message-Id: <20230522082048.21216-3-herve.codina@bootlin.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230522082048.21216-1-herve.codina@bootlin.com> References: <20230522082048.21216-1-herve.codina@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766583252253120498?= X-GMAIL-MSGID: =?utf-8?q?1766583252253120498?= |
Series |
Fix COMPILE_TEST dependencies for CPM uart, TSA and QMC
|
|
Commit Message
Herve Codina
May 22, 2023, 8:20 a.m. UTC
In a COMPILE_TEST configuration, the cpm_uart driver uses symbols from
the cpm_uart_cpm2.c file. This file is compiled only when CONFIG_CPM2 is
set.
Without this dependency, the linker fails with some missing symbols for
COMPILE_TEST configuration that needs SERIAL_CPM without enabling CPM2.
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202305160221.9XgweObz-lkp@intel.com/
Fixes: e3e7b13bffae ("serial: allow COMPILE_TEST for some drivers")
---
drivers/tty/serial/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 22. 05. 23, 10:20, Herve Codina wrote: > In a COMPILE_TEST configuration, the cpm_uart driver uses symbols from > the cpm_uart_cpm2.c file. This file is compiled only when CONFIG_CPM2 is > set. > > Without this dependency, the linker fails with some missing symbols for > COMPILE_TEST configuration that needs SERIAL_CPM without enabling CPM2. > > Signed-off-by: Herve Codina <herve.codina@bootlin.com> > Reported-by: kernel test robot <lkp@intel.com> > Link: https://lore.kernel.org/oe-kbuild-all/202305160221.9XgweObz-lkp@intel.com/ > Fixes: e3e7b13bffae ("serial: allow COMPILE_TEST for some drivers") > --- > drivers/tty/serial/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig > index 625358f44419..68a9d9db9144 100644 > --- a/drivers/tty/serial/Kconfig > +++ b/drivers/tty/serial/Kconfig > @@ -769,7 +769,7 @@ config SERIAL_PMACZILOG_CONSOLE > > config SERIAL_CPM > tristate "CPM SCC/SMC serial port support" > - depends on CPM2 || CPM1 || (PPC32 && COMPILE_TEST) > + depends on CPM2 || CPM1 || (PPC32 && CPM2 && COMPILE_TEST) Actually, does this makes sense? I mean, the last part after "||" is now superfluous and doesn't help anything, right? > select SERIAL_CORE > help > This driver supports the SCC and SMC serial ports on Motorola
On Tue, 23 May 2023 09:52:00 +0200 Jiri Slaby <jirislaby@kernel.org> wrote: > On 22. 05. 23, 10:20, Herve Codina wrote: > > In a COMPILE_TEST configuration, the cpm_uart driver uses symbols from > > the cpm_uart_cpm2.c file. This file is compiled only when CONFIG_CPM2 is > > set. > > > > Without this dependency, the linker fails with some missing symbols for > > COMPILE_TEST configuration that needs SERIAL_CPM without enabling CPM2. > > > > Signed-off-by: Herve Codina <herve.codina@bootlin.com> > > Reported-by: kernel test robot <lkp@intel.com> > > Link: https://lore.kernel.org/oe-kbuild-all/202305160221.9XgweObz-lkp@intel.com/ > > Fixes: e3e7b13bffae ("serial: allow COMPILE_TEST for some drivers") > > --- > > drivers/tty/serial/Kconfig | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig > > index 625358f44419..68a9d9db9144 100644 > > --- a/drivers/tty/serial/Kconfig > > +++ b/drivers/tty/serial/Kconfig > > @@ -769,7 +769,7 @@ config SERIAL_PMACZILOG_CONSOLE > > > > config SERIAL_CPM > > tristate "CPM SCC/SMC serial port support" > > - depends on CPM2 || CPM1 || (PPC32 && COMPILE_TEST) > > + depends on CPM2 || CPM1 || (PPC32 && CPM2 && COMPILE_TEST) > > Actually, does this makes sense? I mean, the last part after "||" is now > superfluous and doesn't help anything, right? Indeed, I will remove all the (PPC32 && CPM2 && COMPILE_TEST) in the next iteration. I will also remove the '#elif defined(CONFIG_COMPILE_TEST)' case in the cpm_uart.h file. Best regards, Hervé > > > select SERIAL_CORE > > help > > This driver supports the SCC and SMC serial ports on Motorola >
diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index 625358f44419..68a9d9db9144 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig @@ -769,7 +769,7 @@ config SERIAL_PMACZILOG_CONSOLE config SERIAL_CPM tristate "CPM SCC/SMC serial port support" - depends on CPM2 || CPM1 || (PPC32 && COMPILE_TEST) + depends on CPM2 || CPM1 || (PPC32 && CPM2 && COMPILE_TEST) select SERIAL_CORE help This driver supports the SCC and SMC serial ports on Motorola