Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4072576rwd; Tue, 23 May 2023 02:42:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4K0dIykzQDlJM0uI/BlXtkDcOF1kfjppVa90j4gQjpxC2NK/w/ehVWkkOFveZwv3aVCayR X-Received: by 2002:a05:6a00:1707:b0:649:93a7:571b with SMTP id h7-20020a056a00170700b0064993a7571bmr20145458pfc.13.1684834962417; Tue, 23 May 2023 02:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684834962; cv=none; d=google.com; s=arc-20160816; b=oI2mx6+8ER5iPKMKyNL0CNaSEQP0UnzbysHUwd0AqkO5HE0+mm9pxidtTgjqrHTvfo WYqgIGd5tOAo1zuhuAmb5ag1JfZdpS4dgHW/Er/QN22G2WY6JCtHyWg0l3Y397QLcpF6 tBiTbnUe8YfKIdyWdBvZGJ9M+vPHzqofkP9Je9E0oXp/xMgyN3YErkweHoRBX03bZvHy DJtHwYxluuWEtejhXEmRGVjiEi2NnCLvWjqtvbJp9MTFRjViux4x801o/DaPJVnnUl1c xrEAIPqayJdFRm/StRV1m/bIX6RTigGAkrYBgCl6clES2GW8X21QMV18j2daDjPR9MVz gKMg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=tWmP+K0uuA6jsYPFxeIuaz/mxhobE31RozhJ+QuYoSM=; b=g73inoUf7TR7a+ESDUYzNnTbLX5jIRSnijMcobmHMPNy2x8WChK28ev8Ji2e9DXMt4 8wDeQWjzA8qGHNz5SJkTNKcas+2t9oK1tYA9K0cN28u7O7zjP34CrUtzOtw1D4uWgxgF +CulCFEqfFg7nuvKnigLKjam8eVfh+i4dHsXF8e8foQkLs9wet8hhuj5GXCixIK3Saax EivdyUj311YWf/JW83uAwKhCNiHoVgiPFcFPPCNmKrWxPnvPHTbxTHN9Nd2K0sA5MdNR Q9mkQw5ui2U16lHpu7uuUsA97PRxSe2/Blh7DRpbJXCbroMNeQ/eoj1v4uvp0FdsjZ+j yh9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=MLkNf5XJ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g28-20020a63375c000000b0053b62724848si4974772pgn.679.2023.05.23.02.42.29; Tue, 23 May 2023 02:42:42 -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=MLkNf5XJ; 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 S231840AbjEWJ1i (ORCPT + 99 others); Tue, 23 May 2023 05:27:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235730AbjEWJ1g (ORCPT ); Tue, 23 May 2023 05:27:36 -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 010E2133; Tue, 23 May 2023 02:27:32 -0700 (PDT) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id CBD502000C; Tue, 23 May 2023 09:27:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1684834051; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tWmP+K0uuA6jsYPFxeIuaz/mxhobE31RozhJ+QuYoSM=; b=MLkNf5XJX5xupRjTys0zCJsfk4CyCnGchIZJhXDIN9UveOQS+bjXcKHkw0FkgFdzI/2Fcu U1v6aa8rCqWKAdykDjVKmeMCkOBRwcNNdrPyl2jsqrZvwV63jvo0yxbigG0eegZVxeHZEF aJ4r8+RfJ81gjc5Zt5j4vUeS+NnZ4GIzco1gFar9fJtORIe4dhqldqKGdGmjORPlhesl+l lIJpKxxhXPulS3qCMUJQKquSUY3UVeaWRQHidxrESNYqFSmUsBxfH/iQbVSt4ewKQchVlC 3m3KcKuZbhGtlmz3IVO5hHXkbQcIWw+HN+ftUwgW8Y6ImTwI2/Gao9GrwgSFTA== Date: Tue, 23 May 2023 11:27:28 +0200 From: Herve Codina To: Jiri Slaby Cc: Qiang Zhao , Li Yang , Greg Kroah-Hartman , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Mark Brown , Christophe Leroy , Thomas Petazzoni , kernel test robot Subject: Re: [PATCH v2 2/2] serial: cpm_uart: Fix a COMPILE_TEST dependency Message-ID: <20230523112728.00dd5268@bootlin.com> In-Reply-To: <012b7c3d-1411-e5e1-662a-33369bfca610@kernel.org> References: <20230523085902.75837-1-herve.codina@bootlin.com> <20230523085902.75837-3-herve.codina@bootlin.com> <012b7c3d-1411-e5e1-662a-33369bfca610@kernel.org> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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,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 On Tue, 23 May 2023 11:13:02 +0200 Jiri Slaby wrote: > On 23. 05. 23, 10:59, 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. > > > > This lead to: > > depends on CPM2 || CPM1 || (PPC32 && CPM2 && COMPILE_TEST) > > > > This dependency does not make sense anymore and can be simplified > > removing all the COMPILE_TEST part. > > Then it's the same as my revert: > https://lore.kernel.org/all/20230518055620.29957-1-jirislaby@kernel.org/ > > :D > > But nevermind. Sorry, I didn't look at your revert. Do you want a new iteration adding (same as your revert) ? Signed-off-by: Jiri Slaby (SUSE) Reported-by: Randy Dunlap Reported-by: Stephen Rothwell Best regards, Hervé > > > Signed-off-by: Herve Codina > > Reported-by: kernel test robot > > 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 +- > > drivers/tty/serial/cpm_uart/cpm_uart.h | 2 -- > > 2 files changed, 1 insertion(+), 3 deletions(-) > > > > diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig > > index 625358f44419..de092bc1289e 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 > > select SERIAL_CORE > > help > > This driver supports the SCC and SMC serial ports on Motorola > > diff --git a/drivers/tty/serial/cpm_uart/cpm_uart.h b/drivers/tty/serial/cpm_uart/cpm_uart.h > > index 0577618e78c0..46c03ed71c31 100644 > > --- a/drivers/tty/serial/cpm_uart/cpm_uart.h > > +++ b/drivers/tty/serial/cpm_uart/cpm_uart.h > > @@ -19,8 +19,6 @@ struct gpio_desc; > > #include "cpm_uart_cpm2.h" > > #elif defined(CONFIG_CPM1) > > #include "cpm_uart_cpm1.h" > > -#elif defined(CONFIG_COMPILE_TEST) > > -#include "cpm_uart_cpm2.h" > > #endif > > > > #define SERIAL_CPM_MAJOR 204 >