Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp690395pxx; Wed, 28 Oct 2020 14:37:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaMN2tQWPn2vw4GWfbb6CDt2gXCHL2qI9CkQ4G8SoBBNVA4VkPZemjmyvr/HVSD0qa4dU0 X-Received: by 2002:a05:6402:22d9:: with SMTP id dm25mr949206edb.182.1603921027209; Wed, 28 Oct 2020 14:37:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603921027; cv=none; d=google.com; s=arc-20160816; b=OcrNuw7PACxmxI7+A16+9llCohtAfMDfb6zGn3ZT95Q0K3IXTmg3oyZIJ/GkxigtE0 u2UKBwpbLoXbzq5+/h/CSw1DeSHNv5KDV6peEOHnHrKS/SQWiP7RIFiVmCnY0lWKzy+t 2IGvpH2tZpTjhlstDqDmEbv/D06LUAYL7Ile/7KJBSI1qBgZxyG2dxQiKwlgr84w0nkl nFBOJDE9gRNQSPak/wu7oSvZu2zMEDr/ZjqoqW8DfXJORoGLM/rAVGQI6u9mK2U0qBCR sVVR4hc0bHse8qcmS9fkFVm9nhSYiEfHYfCLC/KiEJv3psgYpea1GupKGdA2qLysBp4Q g0mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dmarc-filter:sender :dkim-signature; bh=1IAAZO+JxIM064yeTBlbAYAX6R/5t+b3oS0O5W5n3sw=; b=HBnT75hn3XSfxuz8+syCjB/sczWv5UtwBQUTAhOnLGLsLRG8I3yYiWtrBKsDf0S2Xu oON6SBGAM8fRsxCvl7uFGbjnLYT8KxK8uO1R0Jcu5yydyl7ZsT5RHzdo0N1hlmXq6qpg NgeWVXBuIX/XvSvmwWetr7TR91YYXmFzL8J4nLNAS3jIZMwr2DYSEGoNzs3LOyw2QRP3 yKfTquGmlMvw/i7CFRRQi0tu0iomBGKGnNXtizVkkZQsRxB5GnaKZE+SBEagmGFHunXg +JnraGOvqVFSsJXEovLn8uQGiFJopG3jGQMtdaInXcyHXTSfewm6K9woKusDEREKB4Yk uVLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=sq47S5QJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m27si395665eji.326.2020.10.28.14.36.44; Wed, 28 Oct 2020 14:37:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=sq47S5QJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S373700AbgJ0VQb (ORCPT + 99 others); Tue, 27 Oct 2020 17:16:31 -0400 Received: from m42-4.mailgun.net ([69.72.42.4]:14747 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S373558AbgJ0VQa (ORCPT ); Tue, 27 Oct 2020 17:16:30 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1603833389; h=In-Reply-To: Content-Type: MIME-Version: References: Message-ID: Subject: Cc: To: From: Date: Sender; bh=1IAAZO+JxIM064yeTBlbAYAX6R/5t+b3oS0O5W5n3sw=; b=sq47S5QJserZq68nTBNuBg+Kc8JSe4GtgOgBrBdSdnAD/ICAKH8VeCKFjGIQ5MVb9Q38F2V3 ckDZOchmgnDTfIia70JG6c/7wJObL0+rheq8ZwyTjz1SKEia2t7oNzKVZVRrQ3dKfsNlfD8E fHa4pbJBnEiYHcO37lyQou6q6Mk= X-Mailgun-Sending-Ip: 69.72.42.4 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-west-2.postgun.com with SMTP id 5f988dfa807e82a153ea9f03 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 27 Oct 2020 21:15:38 GMT Sender: ilina=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 8CAAAC433F0; Tue, 27 Oct 2020 21:15:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina) by smtp.codeaurora.org (Postfix) with ESMTPSA id 87251C433CB; Tue, 27 Oct 2020 21:15:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 87251C433CB Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=ilina@codeaurora.org Date: Tue, 27 Oct 2020 15:15:36 -0600 From: Lina Iyer To: Anders Roxell Cc: agross@kernel.org, bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, mkshah@codeaurora.org Subject: Re: [PATCH] soc: qcom: QCOM_RPMH fix build with modular QCOM_RPMH Message-ID: <20201027211536.GB19979@codeaurora.org> References: <20201027111422.4008114-1-anders.roxell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20201027111422.4008114-1-anders.roxell@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Anders, On Tue, Oct 27 2020 at 05:14 -0600, Anders Roxell wrote: >When building allmodconfig leading to the following link error with >CONFIG_QCOM_RPMH=y and CONFIG_QCOM_COMMAND_DB=m: > >aarch64-linux-gnu-ld: drivers/clk/qcom/clk-rpmh.o: in function `clk_rpmh_probe': > drivers/clk/qcom/clk-rpmh.c:474: undefined reference to `cmd_db_read_addr' > drivers/clk/qcom/clk-rpmh.c:474:(.text+0x254): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `cmd_db_read_addr' > >Fix this by adding a Kconfig depenency and forcing QCOM_RPMH to be a >module when QCOM_COMMAND_DB is a module. Also removing the dependency on >'ARCH_QCOM || COMPILE_TEST' since that is already a dependency for >QCOM_COMMAND_DB. > >Fixes: 778279f4f5e4 ("soc: qcom: cmd-db: allow loading as a module") >Signed-off-by: Anders Roxell >--- > drivers/soc/qcom/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig >index 9b4ae9c16ba7..3bdd1604f78f 100644 >--- a/drivers/soc/qcom/Kconfig >+++ b/drivers/soc/qcom/Kconfig >@@ -109,7 +109,7 @@ config QCOM_RMTFS_MEM > > config QCOM_RPMH > tristate "Qualcomm RPM-Hardened (RPMH) Communication" >- depends on ARCH_QCOM || COMPILE_TEST >+ depends on QCOM_COMMAND_DB A solution was posted in the mailing list alredy - https://lore.kernel.org/linux-arm-msm/20201008040907.7036-1-ilina@codeaurora.org/ If you get a chance, please give that a shot to see if that works for you. Thanks, Lina > help > Support for communication with the hardened-RPM blocks in > Qualcomm Technologies Inc (QTI) SoCs. RPMH communication uses an >-- >2.28.0 >