Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp991675pxu; Mon, 23 Nov 2020 09:00:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJytEejYaTBO3dr2zxB8gfgKvnnLIXyPjWOMJgR3cPHmZty1j8165qbbcSeU30+hFRfC4bv/ X-Received: by 2002:a17:906:4699:: with SMTP id a25mr491658ejr.284.1606150842226; Mon, 23 Nov 2020 09:00:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606150842; cv=none; d=google.com; s=arc-20160816; b=0Cni6zUy6kF6xO3/DNAl1BjURzH5l4NogBHtH22iOFTsb52vG5Dq8LN9QDqv6Y2tIT /tOltKralKMBkLyAA25tWpVNoYjcSOaGi6q2XgzlB+p77tETuy7RGfRKkj4X62W4iCdK ziW72zAsslm80WyFXM4SZkdKDybgo2LG/GqUjQfHP452seLjGdQoQVqdM/IWHsVB0JTc LfNwkFIyw6VGEiP2mktUoIpJJwqwoQfWxDlTT1EIa12pEBxjiQQtKseQAtHOEV46tyyS pILniN9bbVjFmhYeu6hhfxqcyo54+Ugz/kHiDVBR4eV9u9aF0GuzKT1U3PduFQDX2B3v KrtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=48GiYkMnk/tiZ+MZBdx/eVYwFAxX3prqUpGuzMArSDc=; b=P9sSAqpTACvgsLdkkcEwnI/U5wqRH5B6kvnypdogAg5pqHHSuPokB24wq7N8N1ZC09 UK0x1+K+5WXsyzga7lMfAzKJTX+uVTir913DeklU6e2hX2fTAixDll/ljCY3AS4fNraY 1aT2c8M+gVACQWARFiFkmWFIhfCWCbcMrUo58RswxgC6qJCemNKRt7pNRaBcbIrp6dNn 0LXdtmM8xD+V1+kDakqWG16l1swrqDQ+mVl1qqlTDhTswvvPr/L569FOtnJl5plbZTC3 iX8Z/SOa47dGR1o/prw3mV+WQDlTWmksVa3TRPr39lLyEG62cpdy5223/Sps07FPdd6Y TrAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=ZLeRFxXx; 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 y25si6727597ejd.556.2020.11.23.09.00.19; Mon, 23 Nov 2020 09:00:42 -0800 (PST) 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=ZLeRFxXx; 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 S1732962AbgKWQzm (ORCPT + 99 others); Mon, 23 Nov 2020 11:55:42 -0500 Received: from m42-4.mailgun.net ([69.72.42.4]:40125 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729300AbgKWQzl (ORCPT ); Mon, 23 Nov 2020 11:55:41 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1606150540; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=48GiYkMnk/tiZ+MZBdx/eVYwFAxX3prqUpGuzMArSDc=; b=ZLeRFxXxg5FjH/4ffwXfWBio2Od5uvfoVfDcm1dQatAQozOplpdUddeePnfNAIfFWsu+Q923 WLPBvJcGQF6LS9Nhnrn7larCWZ070wLKRNvfMdh4EyY9aiu8xemgxZ/pZXB4dRfJXGoa9I3R AzIzruGcT/r62bvZAaPGOTfhKcs= 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-n03.prod.us-west-2.postgun.com with SMTP id 5fbbe9897e9d874dfc611b9f (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 23 Nov 2020 16:55:37 GMT Sender: mkshah=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id D47D3C433ED; Mon, 23 Nov 2020 16:55:36 +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, NICE_REPLY_A,SPF_FAIL,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.29.129] (unknown [49.36.77.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mkshah) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1F075C433C6; Mon, 23 Nov 2020 16:55:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1F075C433C6 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=mkshah@codeaurora.org Subject: Re: [PATCH] regulator: Kconfig: Fix REGULATOR_QCOM_RPMH dependencies to avoid build error To: John Stultz , lkml Cc: Todd Kjos , Saravana Kannan , Andy Gross , Bjorn Andersson , Rajendra Nayak , Stephen Boyd , Liam Girdwood , Mark Brown , linux-arm-msm@vger.kernel.org References: <20201121063302.84090-1-john.stultz@linaro.org> From: Maulik Shah Message-ID: Date: Mon, 23 Nov 2020 22:25:29 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20201121063302.84090-1-john.stultz@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi John, Thanks for the patch. On 11/21/2020 12:03 PM, John Stultz wrote: > The kernel test robot reported the following build error: > > All errors (new ones prefixed by >>): > > xtensa-linux-ld: drivers/regulator/qcom-rpmh-regulator.o: in function `rpmh_regulator_vrm_get_voltage_sel': > qcom-rpmh-regulator.c:(.text+0x270): undefined reference to `rpmh_write' > xtensa-linux-ld: drivers/regulator/qcom-rpmh-regulator.o: in function `rpmh_regulator_send_request': > qcom-rpmh-regulator.c:(.text+0x2f2): undefined reference to `rpmh_write' > xtensa-linux-ld: drivers/regulator/qcom-rpmh-regulator.o: in function `rpmh_regulator_vrm_get_voltage_sel': >>> qcom-rpmh-regulator.c:(.text+0x274): undefined reference to `rpmh_write_async' > xtensa-linux-ld: drivers/regulator/qcom-rpmh-regulator.o: in function `rpmh_regulator_send_request': > qcom-rpmh-regulator.c:(.text+0x2fc): undefined reference to `rpmh_write_async' > > Which is due to REGULATOR_QCOM_RPMH depending on > QCOM_RPMH || COMPILE_TEST. The problem is that QOM_RPMH can now > be a module, which in that case requires REGULATOR_QCOM_RPMH=m > to build. > > However, if COMPILE_TEST is enabled, REGULATOR_QCOM_RPMH can be > set to =y while REGULATOR_QCOM_RPMH=m which will cause build > failures. Seems typo here, you mean to say, REGULATOR_QCOM_RPMH can be set to =y while QCOM_RPMH=m.... > > The easy fix here is to remove COMPILE_TEST. As config QCOM_RPMH also has COMPILE_TEST, i don't see why it should be removed from REGULATOR_QCOM_RPMH. Can REGULATOR_QCOM_RPMH have depends on ARCH_QCOM set similar to QCOM_RPMH? As test bot reported build errors on other ARCH with regulatore driver of QCOM arch. Thanks, Maulik > > Feedback would be appreciated! > > Cc: Todd Kjos > Cc: Saravana Kannan > Cc: Andy Gross > Cc: Bjorn Andersson > Cc: Rajendra Nayak > Cc: Maulik Shah > Cc: Stephen Boyd > Cc: Liam Girdwood > Cc: Mark Brown > Cc: linux-arm-msm@vger.kernel.org > Reported-by: kernel test robot > Signed-off-by: John Stultz > --- > drivers/regulator/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig > index 020a00d6696b..9e4fc73ed5a1 100644 > --- a/drivers/regulator/Kconfig > +++ b/drivers/regulator/Kconfig > @@ -843,7 +843,7 @@ config REGULATOR_QCOM_RPM > > config REGULATOR_QCOM_RPMH > tristate "Qualcomm Technologies, Inc. RPMh regulator driver" > - depends on QCOM_RPMH || COMPILE_TEST > + depends on QCOM_RPMH > help > This driver supports control of PMIC regulators via the RPMh hardware > block found on Qualcomm Technologies Inc. SoCs. RPMh regulator -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation