From patchwork Tue May 23 08:59:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 97917 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1997187vqo; Tue, 23 May 2023 02:07:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Bu/xKFuffhJnXzMQm+qPuzhc+m+9Jig+XuicEhQ6LJl51fABLdXTqdt+A48xOMY/Ru/cO X-Received: by 2002:a17:902:da8a:b0:1af:babd:7b84 with SMTP id j10-20020a170902da8a00b001afbabd7b84mr4385234plx.41.1684832846584; Tue, 23 May 2023 02:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684832846; cv=none; d=google.com; s=arc-20160816; b=rT0F/idG0PgFqRmSeCxTkdjjObv0+xkxJPZSA912TQ67rRoARuKajwQ/vR48kkdDk5 jo2Wuh3vrVXUY1u6YgIJCZfYCvjuQ0RQTpsmR4ZPkfpfTMLwz/nzkjds6qOnJV664Avk mGwKa7d/7X/s8ezoWXi+mrNNTQebC15LRG7x87jjmCN/dJcPA+tWvUOh8inkZYkDjvXe akhifYeHVrvRZD3IhMGFpzjAQCK3YQXA51fczhAn25w4TcpOpO1DqRrhnrtodJVDDSFu gifeggAUDBcbDcFbNNEl0QERFcaJ3mP5mf8yVKoeyyyBSonDBsVMkvF+NRYZr0CVW9V/ F56w== 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=EfY/8yJ+Azw862bqGkzmouL5hoaQtAS7JukLHLhERIU=; b=iGOnuAnnShDMdTH8j1IEUaWg7EJUBkqEm+UHFuwG+Fk5nZkoqVIBhK9XU4gfc2Us/9 J0E4lLbcmEhZOB3uRkekKOhNHH848ZcmRIxCuwik+d9Am8WWyxV9UVhbolS9KqcpdGhh mTRgsNy+Be4M8/GLFUJ4HesvBdm41owodNQFJuCfjhuRtf5wonM2z7QQyNvjx7Su9s0R qPWqgKnyohrce9qJPS2KUDZArxpCqFSMhz3btueeq/ToirPfiw56pAtSjAtH2JT0y9fP 1+CXbN54xezHNtEqIkrXo13iP2GB+SaAUBvKGzkyyx8ZSNa9ZsAG6h/NTslvfeMVc5Qs ZxGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=XwdERH7E; 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 bi11-20020a170902bf0b00b001ae21cd0fafsi1062854plb.38.2023.05.23.02.07.14; Tue, 23 May 2023 02:07:26 -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=XwdERH7E; 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 S236129AbjEWI7a (ORCPT + 99 others); Tue, 23 May 2023 04:59:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232991AbjEWI7X (ORCPT ); Tue, 23 May 2023 04:59:23 -0400 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A94313E; Tue, 23 May 2023 01:59:11 -0700 (PDT) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id B3B311C000C; Tue, 23 May 2023 08:59:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1684832350; 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=EfY/8yJ+Azw862bqGkzmouL5hoaQtAS7JukLHLhERIU=; b=XwdERH7EssnlbUs+m58TkAsn2oRyXQOf7VZcLrzW4lZWaJAvcIxV7ZfLvk84g7W/zOyWHt Y00z3DmLYmckKS8j+9aGAhxHRhgc8Rwvvj+34kaih0d+eTClL+Q4PalqvA2fLM58/hKNL7 Beta149CMiYDuaen0Hd76jS1cTjYF2JS4/NKuNoOXsLdR1UVyRl/LrFHyRsO2+L0Il/48g tLr5Vp7J3AUZWv9q0vwVFwqkivivIOHmMT1p9S1UXQA4uFC7E1zxMdo74i6PW/nnETe4sq KVPOP3JYPXFJH2xwpOjMb4BZEpVvxo3vAh8oHVvGmG647F8emBr3mW3qJB8ALg== From: Herve Codina To: Herve Codina , Qiang Zhao , Li Yang , Greg Kroah-Hartman , Jiri Slaby Cc: 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: [PATCH v2 1/2] soc: fsl: cpm1: Fix TSA and QMC dependencies in case of COMPILE_TEST Date: Tue, 23 May 2023 10:59:01 +0200 Message-Id: <20230523085902.75837-2-herve.codina@bootlin.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230523085902.75837-1-herve.codina@bootlin.com> References: <20230523085902.75837-1-herve.codina@bootlin.com> MIME-Version: 1.0 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, RCVD_IN_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766675286713026378?= X-GMAIL-MSGID: =?utf-8?q?1766675286713026378?= In order to compile tsa.c and qmc.c, CONFIG_CPM must be set. Without this dependency, the linker fails with some missing symbols for COMPILE_TEST configurations that need QMC without enabling CPM. Signed-off-by: Herve Codina Reported-by: kernel test robot Link: https://lore.kernel.org/oe-kbuild-all/202305160221.9XgweObz-lkp@intel.com/ Acked-by: Randy Dunlap Tested-by: Randy Dunlap # build-tested --- drivers/soc/fsl/qe/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/fsl/qe/Kconfig b/drivers/soc/fsl/qe/Kconfig index 7268c2fbcbc1..e0d096607fef 100644 --- a/drivers/soc/fsl/qe/Kconfig +++ b/drivers/soc/fsl/qe/Kconfig @@ -36,7 +36,7 @@ config UCC config CPM_TSA tristate "CPM TSA support" depends on OF && HAS_IOMEM - depends on CPM1 || COMPILE_TEST + depends on CPM1 || (CPM && COMPILE_TEST) help Freescale CPM Time Slot Assigner (TSA) controller. @@ -47,7 +47,7 @@ config CPM_TSA config CPM_QMC tristate "CPM QMC support" depends on OF && HAS_IOMEM - depends on CPM1 || (FSL_SOC && COMPILE_TEST) + depends on CPM1 || (FSL_SOC && CPM && COMPILE_TEST) depends on CPM_TSA help Freescale CPM QUICC Multichannel Controller