Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1828667pxb; Fri, 20 Nov 2020 22:48:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxs/ab4f9evym16xBRmqDNEnpWWndN7Z2FAfN2+A8IaW6D69WhEDFcgb/czxrpVkIn5n52S X-Received: by 2002:a17:906:c357:: with SMTP id ci23mr34625284ejb.311.1605941326956; Fri, 20 Nov 2020 22:48:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605941326; cv=none; d=google.com; s=arc-20160816; b=si2LDsN0cSjcFj9A6+y8ycUhPyP6rvowWc+XMLNe9mqxlBSKH2fPm3y6SlgD9AUtKf MxCmFVk6ljJ6MYKAvnDZrwrF+UGTYFCWS336SDZoapEHAuBUfvPaaNEXsWlTeL+9wIHL 1gBeNUT7qaHOjCVrJRvrp+zJmcX5R4j2IVxekFElJv02PxNTC9K8A0CYqw7OG+5+K51T vvT5E2rhRNPbTMEsXrHXIvIF0WKJvq3fu9GYhR+Dg5SOkdC/cJcjI8PiKF+aQFj3gKz8 vQBci12xHOsvmwXH7EZ6BJox/qYF6JqFRfL+q1aZBDdwrvKjFAyjLdtLYqCzns7lNQQT 8/Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=/QcxfXErWWujy+nFNlFKMWzF0EXFpsGg4+Dh63UDNx4=; b=ScnJrqrDzgJwz+2MLRAE9qPrlp2J45dOO5S5NDtuhJQaiz4UqM411MY2Qr2mdm9eHa Ld3voYrrKZ6RhLk9gJU+YTm98uEZUKeqHObkzJrQZHCYk5zOdcA4YAi8fT1MK2W/puKj wKC02chKiZVpPTbWMhsXdCKN01+QsBCeCQFgAEGvlIwjYjF5LAufEdBzNOaXplOL8eXp ByNHUl/GkcExHT3lv1ZCrl5q1JCasaWzK11QSiwBzfD/y268Z0I5OYT+qgqqYIEhxLgA TVPjWJMUh7KIWL+AxhMY7X0W914YIhL4/uaJnptY/ACywvyV6id/ywy5pun1An2Stg70 suOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EdA2h3p8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c15si3301047edf.17.2020.11.20.22.47.34; Fri, 20 Nov 2020 22:48:46 -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=@linaro.org header.s=google header.b=EdA2h3p8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726521AbgKUGdG (ORCPT + 99 others); Sat, 21 Nov 2020 01:33:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726433AbgKUGdG (ORCPT ); Sat, 21 Nov 2020 01:33:06 -0500 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D929C061A48 for ; Fri, 20 Nov 2020 22:33:06 -0800 (PST) Received: by mail-pg1-x544.google.com with SMTP id 81so9325298pgf.0 for ; Fri, 20 Nov 2020 22:33:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=/QcxfXErWWujy+nFNlFKMWzF0EXFpsGg4+Dh63UDNx4=; b=EdA2h3p87/J7Q4xNVksxAGFt1xTbDRs12kJw3waq/qrqWlgrQ+yK4fwbXqdE3I8EeY EejVAGVllbDov3IjWVlfSVCTz4orFfzGoXH+uxCMX8m5ezEyYJW08bKLp4rnbrNIrWvz slbygK3FIpgNQn/1Y2X8euXNLtlMi/eid7WpIpa1UEQy19sldi+I9K0bPZTG1yZwDkia nNy2mU3tZ2UsRZagnC7s4b1BMpRtF52GrV8HLNHVUyCXqJMZRl8WH1E+cR2J4yHy6iJK SivyHKufvTZNt8/s3107RWlRYSiKxYDRMT/Ol/HY3i0VVyvGjAu9/EAZQxslq+a1FWV9 JvGQ== 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; bh=/QcxfXErWWujy+nFNlFKMWzF0EXFpsGg4+Dh63UDNx4=; b=d942+Yo61aHefiEsnw1PQUKK1mdJcXouQV3AgwhLJD8y7hu5YtEAtkKYKZyVtRQ9xB X4NWqRfHjcz6ZzYRIxZAUa8SQzRAURanAP3ljToNvtFucl7AwROOE2GOMV4GTIC6x4AW BASJOesjncQO+esQpUgkhULhfRODPWZGIw33ZaWJjVc3UR5Vgh1xZkTb6JMrnHQtI7Tb hCbtdCpt5qtZHLx4V8jyV1hx/lM8WW4mwURDmm2z4fs0x/Mb0pfKlMe55f0zRuVbP/5T nBf/EWqmAdVO8gp/HAG3QelfWfljAVu+WvgJYE1C/bWCiI0Tl3+3W/CGiuo5AExVufsn GBRA== X-Gm-Message-State: AOAM530/LsoFVjJEwIDV56kRateTMDT27mZsjHlkOozzbKonW1JQfZj/ tKi7e0lL5JqlboFUbSQI7KjWbHk32oMkFA== X-Received: by 2002:a63:c749:: with SMTP id v9mr20013228pgg.451.1605940385315; Fri, 20 Nov 2020 22:33:05 -0800 (PST) Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id l7sm6471460pjg.29.2020.11.20.22.33.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2020 22:33:04 -0800 (PST) From: John Stultz To: lkml Cc: John Stultz , Todd Kjos , Saravana Kannan , Andy Gross , Bjorn Andersson , Rajendra Nayak , Maulik Shah , Stephen Boyd , Liam Girdwood , Mark Brown , linux-arm-msm@vger.kernel.org Subject: [PATCH] regulator: Kconfig: Fix REGULATOR_QCOM_RPMH dependencies to avoid build error Date: Sat, 21 Nov 2020 06:33:02 +0000 Message-Id: <20201121063302.84090-1-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. The easy fix here is to remove COMPILE_TEST. 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 -- 2.17.1