From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.2 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FSL_HELO_FAKE,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57029C17441 for ; Tue, 12 Nov 2019 15:13:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2EE4821925 for ; Tue, 12 Nov 2019 15:13:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Kang/UmV" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727153AbfKLPN0 (ORCPT ); Tue, 12 Nov 2019 10:13:26 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:40759 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726896AbfKLPNZ (ORCPT ); Tue, 12 Nov 2019 10:13:25 -0500 Received: by mail-wr1-f65.google.com with SMTP id i10so18927889wrs.7 for ; Tue, 12 Nov 2019 07:13:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=aL0fbv6KeJNvtxT5CdrQViagZLp9s9K8vsOn0Xh8q30=; b=Kang/UmVVO1JPRhaQOEq1cOuhtLfxV7mH+vBGpXjJRl9ZL8f3tEldO5gzgYeyiJSjY UaLVwbBlddvt0CMDMLjBK/QBO7tu8AdXOV2FkyPOTucPuRiQ9aRarfocg7NobZXOg6cs g2OZmqGNhrr4i1olFfKwJrx/6+kWtMbNOjkU9ja8lnp3drrEdN00+6w1jQjL1uRDDwn+ /SabzP7k9yE+4TO2nPJcytl5xc6q6NOls2FQTDalkBv9PHB1pLFAQ/ttcZEe+ii2YcmT 5kcqQjzJdYmpY8zLndyuvAubs2z7N7Z84tBAA/Zn7tsdU1mSPQvU/Pq9cdd/eygrWgOy 4F4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=aL0fbv6KeJNvtxT5CdrQViagZLp9s9K8vsOn0Xh8q30=; b=IGZkpeHs+iv9Mtt2ngrVcLMdLj7whHoEMDHiU6XnXP1Q2QUCqTa5EnhEEHbLjkBeuw zUlABv0SsfYvI4/DMMaLHfOlKyvHb0r1I97sS4+Cb2tKTICQuE/U6PlncSwqNZ3EOSYq 3fxMazi5qSlFDfO0+2Z4UGV8QHL6yjGRBQiwktqHb1ylNd5lm47AOEhSKPsBAiVvii/5 6wnxjH9PjIOjyjfn9OPn8Fjalzn3+0H5BZ1xe+igApXYHtWrEAubMIrr3enHP6dK3a0l tilF6h5Olxb51+pP21wRja59ti7SgkOCb/cgZ46iuYqGk8pqEXtL0P860h/52zICUwl+ iKnQ== X-Gm-Message-State: APjAAAVRHDtvydftC7Vowvwp9LKvkmgn4ZLJtq+Zv0YGB4BVX/cgs4ZW ALn4jvd+CQCRuMt791EMK4odng== X-Google-Smtp-Source: APXvYqyKSz7ayM+LSOBrTbwWxWGYkGmnqdkIZGg0N25K4y3R0Fy9sYBrP0Oa7gkHA4qtDs81NyGe+g== X-Received: by 2002:adf:edc5:: with SMTP id v5mr3166501wro.322.1573571603419; Tue, 12 Nov 2019 07:13:23 -0800 (PST) Received: from google.com ([2a00:79e0:d:110:d6cc:2030:37c1:9964]) by smtp.gmail.com with ESMTPSA id b3sm3107126wmj.44.2019.11.12.07.13.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2019 07:13:22 -0800 (PST) Date: Tue, 12 Nov 2019 15:13:19 +0000 From: Quentin Perret To: YueHaibing Cc: rui.zhang@intel.com, edubezval@gmail.com, daniel.lezcano@linaro.org, amit.kucheria@verdurent.com, viresh.kumar@linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] thermal: power_allocator: Fix Kconfig warning Message-ID: <20191112151319.GA239065@google.com> References: <20191112145114.36580-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191112145114.36580-1-yuehaibing@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 12 Nov 2019 at 22:51:14 (+0800), YueHaibing wrote: > When do randbuiding, we got this: > > WARNING: unmet direct dependencies detected for THERMAL_GOV_POWER_ALLOCATOR > Depends on [n]: THERMAL [=y] && ENERGY_MODEL [=n] > Selected by [y]: > - THERMAL_DEFAULT_GOV_POWER_ALLOCATOR [=y] && This will not cause run-time problems, but I guess the warning is annoying so ... > Make THERMAL_DEFAULT_GOV_POWER_ALLOCATOR also depends on ENERGY_MODEL. > > Fixes: a4e893e802e6 ("thermal: cpu_cooling: Migrate to using the EM framework") Daniel: can we rely on this sha1 ? Or is this branch force-pushed ? > Signed-off-by: YueHaibing > --- > drivers/thermal/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig > index 59b79fc..5e9e038 100644 > --- a/drivers/thermal/Kconfig > +++ b/drivers/thermal/Kconfig > @@ -108,6 +108,7 @@ config THERMAL_DEFAULT_GOV_USER_SPACE > > config THERMAL_DEFAULT_GOV_POWER_ALLOCATOR > bool "power_allocator" > + depends on ENERGY_MODEL > select THERMAL_GOV_POWER_ALLOCATOR > help > Select this if you want to control temperature based on > -- > 2.7.4 Thanks, Quentin