From patchwork Tue Oct 27 11:14:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 11859947 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DA9B1921 for ; Tue, 27 Oct 2020 11:14:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B095122265 for ; Tue, 27 Oct 2020 11:14:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="WRJYCi/8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2896855AbgJ0LO1 (ORCPT ); Tue, 27 Oct 2020 07:14:27 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:45667 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437103AbgJ0LO0 (ORCPT ); Tue, 27 Oct 2020 07:14:26 -0400 Received: by mail-lf1-f65.google.com with SMTP id r127so1744186lff.12 for ; Tue, 27 Oct 2020 04:14:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Kx7CART/DxUoMm7Sa0Vnq6dGV13FhDvd/kD3/8Gg8ho=; b=WRJYCi/8PhiE0aSiq4DKWnugOqmyTUWLV8teC20a5eXAm5ZLQiJW04YbGu5S4FHHq3 1+IeBpgH04lJoQ6rWkn2/QxP9VVQdrJNsOLULYrKF8NDLE0stJ/XBfuan65BZf+7nmNt pKhzp0IvahIJI5FENoxBxlrik/XKeWlWHzYl2/mHDRIvolZzBXKvlpY/0sJNXJcQVU2w YsMhKCGwCNkKz+SJYLNdmCkSOi2dPx8EccUG0L7Y8Tqb8pzXVBMLE8LG9qwamBBAxYqu +bNJxg7y+jnflAyqykkVER2bHI5Ac1j+JTGAjcjXjmPhG4QVNcv36LDYcg4rfBK9jtqp BStg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Kx7CART/DxUoMm7Sa0Vnq6dGV13FhDvd/kD3/8Gg8ho=; b=cBT4pQ3GmydNrK3H1mML4SOqaRyETfwEJqd2rRs520/HbbgsrMkvc81/QlnCGN/Lze dKsaLW37nn5sroPfDVUELCnq+CwdH+5JHzNvkC0WgYlUDShMo4lTHDVRgq40wUqRZvmt lHpiIKiBOhQaHX1aZTryPYloULc8hF80ue84YM0gfE8v/pkJPLjKU3Njvq98iHOCb9+S fOPwZ3xKc2MFdwQ7UY06/l1L34+x2mqo+Oe3CU5arYenI7wUAj73lECzhBOYxqWPPpmt WFd70e6tW2CQ2lxwiJpn9rff++ZOgF8TxoVDk4BI5fXcDVMTw6aegfpJ9amMPBlaCZpR 4oAw== X-Gm-Message-State: AOAM532H8UJYRMKSxhIOaIsxG4kgcMPE//fcA53dgG2kl1ptVPvRss2h NinGgMJphB/HPl7Bj4rte1xTKMaTmbqjRMNx X-Google-Smtp-Source: ABdhPJy51B0fBfONLYlyme+1w8w8xXl3VWMrx+7AUldah86lSav3URmcgsagxOT3Yt43Hco6OvucOQ== X-Received: by 2002:a19:84d3:: with SMTP id g202mr703123lfd.346.1603797264351; Tue, 27 Oct 2020 04:14:24 -0700 (PDT) Received: from localhost (c-9b28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.155]) by smtp.gmail.com with ESMTPSA id j19sm140462lfb.74.2020.10.27.04.14.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2020 04:14:23 -0700 (PDT) From: Anders Roxell To: agross@kernel.org, bjorn.andersson@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] soc: qcom: QCOM_RPMH fix build with modular QCOM_RPMH Date: Tue, 27 Oct 2020 12:14:22 +0100 Message-Id: <20201027111422.4008114-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 Tested-by: Naresh Kamboju --- 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 help Support for communication with the hardened-RPM blocks in Qualcomm Technologies Inc (QTI) SoCs. RPMH communication uses an