Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp836072pxb; Tue, 12 Apr 2022 14:50:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPs5po+UAjgnfjqBOve/Cfz9vscsWCaAAmkYPkwGJ9/JAF3M4wuL17IGug3P2+NGcl6rEb X-Received: by 2002:a63:788f:0:b0:386:3116:818c with SMTP id t137-20020a63788f000000b003863116818cmr31726879pgc.414.1649800221467; Tue, 12 Apr 2022 14:50:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649800221; cv=none; d=google.com; s=arc-20160816; b=kLpPIfqWi2mfnt4G5TEkjXtzZazdoasfyQmqBfG82zV8NlRtyPfLzJ+8LBG4xVVSVg RkiCOIsrYwQTdphSL7K1SmzZV2B4K+wkirM9Btk4yfN4e5b6/7pMj0DUcODD0AYgG+Kd PJmWC9CAwIH7nApZmcAoSWz5glEot5TnM2sI/wZbAoLaMaMzYEA0ip4xvrNIpKJmtSLT kiVFCTGGDxznNmW2VKkXPs0vGRijsv+cxuD/6hVm3jbfwEd+U2fT18vGL0SFI6SP/KGV YRyamRMOewvTa0M2FMVWaFJ/333J/ZVsk4+inkflYGrrRhMKOEpBamGlhHmCgryPJkFL OQ8w== 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=HQhVZa5zS/cp4cV+errRXLAMnB+DiB4HyYAPMjkY4K8=; b=dorUpFYio+oBDwKVK3QR7ShuUBgt6b2C6Wl7bOTFMt9+nMoBe231LcEwfI3wdM5qiU i6wU12x6cVN2vGjAN5Kmk+D7yP4PhKJG//J/HKa0ELG1R/yIN1FeNFIRbdQjejxkOfC4 5F9yW6EgbHFUKmz81H9f53lWGCfmzh59E8WP3GXatZFcsewQKL+fbByDvRi2kpTSCbbs r6bQrIYxmZ522aRpE2Yh5KbK5umrGDXvu3t1X26USCPhN1wUy/9sa60zpopK1YZjtFGE ZR4v93WpsB9F9CCwpFe2AaZ7GqpQs9KZ1Bgl0aDVkIvfmtoDX0Q+gbpaU9OiVe/tzjn1 Lv/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=UFYOXOPG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b12-20020a63340c000000b0039919e929e5si3778891pga.813.2022.04.12.14.50.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 14:50:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=UFYOXOPG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1157622A; Tue, 12 Apr 2022 13:52:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230469AbiDJDQb (ORCPT + 99 others); Sat, 9 Apr 2022 23:16:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230468AbiDJDQ2 (ORCPT ); Sat, 9 Apr 2022 23:16:28 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9F56B8B for ; Sat, 9 Apr 2022 20:14:16 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id u3so18286295wrg.3 for ; Sat, 09 Apr 2022 20:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HQhVZa5zS/cp4cV+errRXLAMnB+DiB4HyYAPMjkY4K8=; b=UFYOXOPG9FCkpBR5SfB6ZkR44JnMOZCnPMNEPGolirtBvQ5K8HohB+06K/9nHFwa2a Ph+deIvvix/BQHExSvsHrBVJh5/3eJVwlhPZC+jtXBtIdP/mS+7iB2vgMggKu3S63kiO x4Z/QwptpNQyCRLDUz0IYLVtM0E1stgu9ufs1Zs4QCdfwW0sQXW7YOtlMyjr8MHK12Im oEaKinFIzLptFh64JdAFr3hPeP0rbqADjvC8pLENolThAhE5ljrA2F32Whd8KIjAKvSl jqgibbhtcvZxHoDCj/LZaQjhQwkcSh9xylhniCJeSpQei8K+4dDuLGSLb2mZk5vBbMZa xEog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HQhVZa5zS/cp4cV+errRXLAMnB+DiB4HyYAPMjkY4K8=; b=59aHHsg/bz6Sbz8vz0CAXsxFgyOwkr1gRS5n3sCMV1ymCGX9lo5xcA+uv55OUkYjOO YXnFaYy43ni9tZF9y6q4AHVUiAVgyqUpJmPWA8mnqqaT67nD3D11/vPksCJeoO5RYdrZ /RGs+VXLFnUK3PYpkYmMD3PhTKGDAacxmTcExAqi3ooFQiibi7rSGPFUilg9chkuEV8j NGf1kLm667F1kcpjc3zcr7gAPvACeHFl4Q5I3v/aFjqmILAzYCJt48z+WYj6rxJm0YxM 36Vp2ZLvcf9PPTXxVJLHLfAeWevJtAPDi3PlXZsBOi6+CIl5ifhUP3J8IhR73Iio0kmI SQ5A== X-Gm-Message-State: AOAM5316nNp0ilHNew+AQZC0IP5ljAnri6tqvjv3Tqr9wdtuO/ksTw5H 5pa+FugB2QOuWkHIAFITBCPj4fwEXBUmkXLJqUEuAg== X-Received: by 2002:a5d:6e84:0:b0:206:147b:1f59 with SMTP id k4-20020a5d6e84000000b00206147b1f59mr19852120wrz.86.1649560455158; Sat, 09 Apr 2022 20:14:15 -0700 (PDT) MIME-Version: 1.0 References: <20220409225317.14332-1-rdunlap@infradead.org> In-Reply-To: <20220409225317.14332-1-rdunlap@infradead.org> From: Anup Patel Date: Sun, 10 Apr 2022 08:44:03 +0530 Message-ID: Subject: Re: [PATCH] RISC-V: cpuidle: fix Kconfig select for RISCV_SBI_CPUIDLE To: Randy Dunlap Cc: "linux-kernel@vger.kernel.org List" , kernel test robot , Anup Patel , Palmer Dabbelt , "open list:THERMAL" , linux-riscv , Paul Walmsley , Palmer Dabbelt , Albert Ou Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 10, 2022 at 4:23 AM Randy Dunlap wrote: > > There can be lots of build errors when building cpuidle-riscv-sbi.o. > They are all caused by a kconfig problem with this warning: > > WARNING: unmet direct dependencies detected for RISCV_SBI_CPUIDLE > Depends on [n]: CPU_IDLE [=y] && RISCV [=y] && RISCV_SBI [=n] > Selected by [y]: > - SOC_VIRT [=y] && CPU_IDLE [=y] > > so make the 'select' of RISCV_SBI_CPUIDLE also depend on RISCV_SBI. > > Fixes: c5179ef1ca0c ("RISC-V: Enable RISC-V SBI CPU Idle driver for QEMU virt machine") > Signed-off-by: Randy Dunlap > Reported-by: kernel test robot > Cc: Anup Patel > Cc: Anup Patel > Cc: Anup Patel > Cc: Palmer Dabbelt > Cc: linux-pm@vger.kernel.org > Cc: linux-riscv@lists.infradead.org > Cc: Paul Walmsley > Cc: Palmer Dabbelt > Cc: Albert Ou Looks good to me. Reviewed-by: Anup Patel Regards, Anup > --- > arch/riscv/Kconfig.socs | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/arch/riscv/Kconfig.socs > +++ b/arch/riscv/Kconfig.socs > @@ -38,7 +38,7 @@ config SOC_VIRT > select SIFIVE_PLIC > select PM_GENERIC_DOMAINS if PM > select PM_GENERIC_DOMAINS_OF if PM && OF > - select RISCV_SBI_CPUIDLE if CPU_IDLE > + select RISCV_SBI_CPUIDLE if CPU_IDLE && RISCV_SBI > help > This enables support for QEMU Virt Machine. >