From patchwork Mon May 22 08:20:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 97173 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1295050vqo; Mon, 22 May 2023 01:39:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6qJCst0XTr7+oi79b6CT4zxIOUk9IZZKNHz4AgbiC0Ldz3DQSST4LhRGaAJPcW+1UaHH3e X-Received: by 2002:a05:6a20:938e:b0:10b:7243:c212 with SMTP id x14-20020a056a20938e00b0010b7243c212mr3824599pzh.42.1684744751873; Mon, 22 May 2023 01:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684744751; cv=none; d=google.com; s=arc-20160816; b=V0OkAvtlHx42nD6xoujIANSs+KO54BKRm8ipyFYHwq5esVj7h0RzW18ZBe1IejF0pG lmGLnZCoKAvSlNjgCf0MvWApuRT8v1TTdY+bpLkb6ebOwj402w2rPqACrK1UnlNSHqUt MlbFR9sAiQSG6IrQqPtCUEOpoqaBsjrTiFbnu93m01HYwuIdr2AV6FCRGtyTmE67QmWJ JOTuveCtUAU29/FLRqa71X2hWSKr6dDTqvkqZoUTaHUJTTpl2FDG9upf+ec/j7SEz1YR TglxcMPrNPxXCdy/79kKUvBR2qaRP9vzzp411NVDYHFA+f98oKFeOlFp5SWx0+H7q9CJ UbcA== 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=fvgJu0TEEfTMjbefRhkbIDk6X3ck9Jj4cCmYBSWEPlinVLm1caJPJKp02iY0um3Mkw opcADqm+xX5QJLFG6DtCNNW79z7k9W/8eBD1xOHyeH4y6D1Y9my49BHR12pwesNffvOY O5Y6tEwA3scL3timrWNzNGY+aBuDXzDPSAYwKluBRs/MHH1axw8gxawL/kGh/w3XocIZ XYq8TFpTpfQ8TpjiiegYrFa1CQ2ZkGX7q4WnjbDe9UOMUBoO8T5KM1YZBdJuySL3AYau PlrYNloZNNqWauIafI44qCrVIPWginz2oQD3QZLLwBr6pnVAIpYnjdhUof7UoyKUmb4Q jM2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=PKX9WkgO; 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 b5-20020a63eb45000000b005301151503esi197324pgk.186.2023.05.22.01.38.58; Mon, 22 May 2023 01:39:11 -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=PKX9WkgO; 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 S232227AbjEVIVV (ORCPT + 99 others); Mon, 22 May 2023 04:21:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230225AbjEVIVK (ORCPT ); Mon, 22 May 2023 04:21:10 -0400 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A955BA; Mon, 22 May 2023 01:21:08 -0700 (PDT) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id EDB4E20014; Mon, 22 May 2023 08:21:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1684743667; 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=PKX9WkgOCtI/v41y5mz/oaICybLUofd8JsTID+WdCi80oUwt50SxLj1GxXIIjkcWuKzQg7 OxFSVGCWD8G9bTKz3HpMdHfgFZoWAaH/P4peD+0KIIlrqP9mAtIlqI8oJC3zk2wxoAbo/7 ORvwUHPYcVEBR2iT4ku4h3GcEasA8ffCJUg+hqr6f/wlPLUUhnHOcvrzl3oNURKB2yQWtZ O/fUAlMzDBfah0CMImToWfJH0Xwam5Ft71KLEiqhm9noF1gJst4fdx0Qjfq/Ndg25by60F PKwK3eF/wULEC+Kqfr2OfUhUhMfCkFexeBS73bo1332R+6TxU6Sw0d04jyjZkg== 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 1/2] soc: fsl: cpm1: Fix TSA and QMC dependencies in case of COMPILE_TEST Date: Mon, 22 May 2023 10:20:47 +0200 Message-Id: <20230522082048.21216-2-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 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 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?1766582912808725659?= X-GMAIL-MSGID: =?utf-8?q?1766582912808725659?= 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/ --- 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