Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1172110pxu; Mon, 23 Nov 2020 13:36:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJxhasegxYCzme5wmejBa+P+FQNyKYN1om4DTNeUQ9DfEIIKzZ0evCZ8xe/yfdISuJvhVH5+ X-Received: by 2002:a17:906:86ca:: with SMTP id j10mr1418475ejy.507.1606167363924; Mon, 23 Nov 2020 13:36:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606167363; cv=none; d=google.com; s=arc-20160816; b=e/6WxU0uT9tgBBqoQnbOrU1uZ2TRtxIMimwZ9sKJzRFDi4Mkh7Yfg8Dxkx3OzJ8yGe gADQdlSJjsAP+7NrZP/9hvL7OCRwWFQgJj7CWSKBturoNh5FuGKhX3h/yWF0I7FdKADm Ac68g9bKqqPqwu8re9AmC4iPXcuW5wpjVp58n7tT7c2/Y328aoMTsuzApmx1oRmUFuNk 6koqiPpAfi5wTQvJV4ujrk47V/v60xKUdqgOhrGVw5VccL0dsz7w1ZLEdUMguqRLa/Ip ji/CoXoReokS/T0BMafxybrgGzEEWeLAGMXLH7O2xDWNbNDrOn/viUe1sDturlfOyIxc 6XJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=YGEsthVs3B3hpcPO96gKAE8/Tbhb2GtyiWxG6X0ff1A=; b=NxYO1Cua1KuVwETGXrkCW2nCUAuqeM75I1v7fcc1Uq/cWMJ+T6pq0kGpJ71D9KQK2L SiUWJprLGhKPXBiUo3+WV0GLCAyQpSQJRR0WAMT6tUGS79vyzN4WaqxrRs9v3yyEGB5P pjiqb0HKKythB+Ya22uSw6LqoeUw/vcq6+RFDYW7pwISpGi/jwl9SnTOCKoYOp/wMIM2 9qr0pYjmyMTsgh9HI4rr1fq6LPwVtgaXuhTSiI0vX0zrPygICJg6HX+U6z+8RE8s8FZ2 d7wkpWtWvUkl1ORRfyPq6B+YkySJNMno5sFFHNO+8FlfPcZxnyHK+rkRkF8sLEfOl0BX VQiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hpdo+ZH+; 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 x40si3731290ede.441.2020.11.23.13.35.38; Mon, 23 Nov 2020 13:36:03 -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=Hpdo+ZH+; 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 S1731022AbgKWVch (ORCPT + 99 others); Mon, 23 Nov 2020 16:32:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729668AbgKWVch (ORCPT ); Mon, 23 Nov 2020 16:32:37 -0500 Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5D63C061A4D for ; Mon, 23 Nov 2020 13:32:35 -0800 (PST) Received: by mail-ot1-x341.google.com with SMTP id 79so17335943otc.7 for ; Mon, 23 Nov 2020 13:32:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YGEsthVs3B3hpcPO96gKAE8/Tbhb2GtyiWxG6X0ff1A=; b=Hpdo+ZH+YbPMZk6AoVaNen/HS0pbiAnyzzkjyUMDAcgyXzkn17RwhboNFC1Dl8NkpW +bukjwN0ku9yq9YXueExtfVSuyO5AjDgKIPgNV/QlqHkjFywNHjsEbYVSVoyKmRg3kyu 4UWB2tXO8sSnZAyP3KJO5Wuh7KyuZM/KpWJ8g38FSkNiSwIeyhUMk0gYjNIzSntIP3MP jb9v7nuwsVanx3tqDSPJINnpmJtMRwxxsz6VGrnDeqaP8C8RJLQ4WbCRs2jmwh2zUxB4 PJnTiufVA+R99AE/CGY8MUfYb/KvpC6f2I3gLogxSALE+tOjYnG48KBDWTIXfeMecaIG 5/8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YGEsthVs3B3hpcPO96gKAE8/Tbhb2GtyiWxG6X0ff1A=; b=fgPkaxAe5JSKfFbOZZzy1gJgXfYnSvEjrP5uzez2FnhUCG+QrDCSC13HUmJ3luEeRx 4pd2qxXfyMOVuDf3ZkDTAlWutIipDpm3iDiV46h//lOV9xhuSk0CmLY1011lDw6mXLyM fdPqnpeKOCNVRwL3D1yG7a3mihk8qKTijNEf7ET/ZinWk/tbT7681ntvgwiwOOcklES4 I5LuPsU7EzVt80wsA5LPYLZioHC1UOzmb+YRSqCFKmMCbWfcPNf7Bx9BL5/rqPdJElri 0gCTLlt7oX/M+NK8UtU7mrc3zz1dgtN5YXx/Cv7qjckq80SpaCwqcX/XFmNEUGKxfXjX 5odQ== X-Gm-Message-State: AOAM530h5k73fdshnwNrS0TyWze9Slr7DfaMduEvYTeRVm+8UKG3JRd9 z70fMoiN8MooA8SJlqDHeFEN4jQ13obUeZTA0CltFQ== X-Received: by 2002:a9d:851:: with SMTP id 75mr1132645oty.102.1606167155091; Mon, 23 Nov 2020 13:32:35 -0800 (PST) MIME-Version: 1.0 References: <20201121063302.84090-1-john.stultz@linaro.org> In-Reply-To: From: John Stultz Date: Mon, 23 Nov 2020 13:32:23 -0800 Message-ID: Subject: Re: [PATCH] regulator: Kconfig: Fix REGULATOR_QCOM_RPMH dependencies to avoid build error To: Maulik Shah Cc: lkml , Todd Kjos , Saravana Kannan , Andy Gross , Bjorn Andersson , Rajendra Nayak , Stephen Boyd , Liam Girdwood , Mark Brown , linux-arm-msm Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 23, 2020 at 8:55 AM Maulik Shah wrote: > 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.... Ah, yes, thanks for catching that. I'll fix it up. > > 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. I think Mark's suggestion of "|| (QCOM_RPMH=n && COMPILE_TEST)" is probably better, as you could still trigger the build issue with a ARCH_QCOM and compile test. But I appreciate the suggestion! Thanks so much for the review! -john