Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3490162pxb; Mon, 4 Apr 2022 18:39:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1fTcQRi5WuYrbw6ewDjNGOMJFk6Qy8Vc5ZkmyOAQunH/4mdSoOhvZDeMpEG9ECOwMr2eQ X-Received: by 2002:a63:4c24:0:b0:382:29dc:3345 with SMTP id z36-20020a634c24000000b0038229dc3345mr859385pga.296.1649122751960; Mon, 04 Apr 2022 18:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649122751; cv=none; d=google.com; s=arc-20160816; b=qJCMpmBld6cGFpfEQemRRemp2Bl5NxjiDnuCbmJjYHgPJpP3zhvSh84qkgkDwBe9zj nmMwGIaJSACU23rXAvhhoHeUqB8dMah9QLPP9qr7t0bFWb+QQFy5NxaCA313urlXO0VK RzJaWsCpX9w8V7mFIrFhFX4G76ErPE26tH10dYnGEVyr7rjBH8yG/01FgOB+KI06njzS 3TH1iRRFqwi9ugjisKcVYc8VnCR7xIu07jiAGzUkKsLP1xanxYH/K83Nk7DvjcENL+HX kTacql+0S3+ojFW4iubDVx8FKeDXkBcc3dqyGef7/jQzZnLMqX/pUZviOJ44FKPRdF8j Qz/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=OsXUKgbByLP4TKkrJlWQ1fr5jaRQNDMGQxiR3xsP4gk=; b=l31UiiUnPJ/1yQ5Tstp4SEx7sog++OJjYBQCP+y2lOddq2HsfQITE/D1xztN7mCF8D 1ALt3pUDl44941aMhTsYRuNLr3ynwdtSNRxrIQyhafFAz00c/4fPdtkO1s1y/CKsTmTC bgkDRcHnHqVh9nl7mwrE6VqI7w/EvYRJ0Oxy17LtnwX5rsPEfi0r8RIgD99+rCOel7rt MjGpLXaTxYkGHs6hOk5aKOkVX45FAr3a3enNrCT2SvrlY3U/2QgLEQf08SWbjXljkosB 2cU2VN52Uofwhg/oMaQkbM8A+lJYQjRWTVfN0xoBwMPvXR8coQzSgJ1UbECuLjmfUsca K2FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=j6fT7PRt; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id mq17-20020a17090b381100b001c6fb9a0ff6si998672pjb.161.2022.04.04.18.39.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 18:39:11 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=j6fT7PRt; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 4015A24D9A4; Mon, 4 Apr 2022 17:33:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238038AbiDDDjE (ORCPT + 99 others); Sun, 3 Apr 2022 23:39:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233007AbiDDDjB (ORCPT ); Sun, 3 Apr 2022 23:39:01 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3623D39804; Sun, 3 Apr 2022 20:37:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description; bh=OsXUKgbByLP4TKkrJlWQ1fr5jaRQNDMGQxiR3xsP4gk=; b=j6fT7PRt5ERAIShbgcp9AWcOZ8 1YgOr7nwAS2RAmAQcosXBk6WyXYfaTa3yrKIqUuQutil8rQsKXg3gbCC2S74KQ0WHmtnkzZkbTe55 mAUjjP71kz+ZiUKCeljZ8AJEvqT1XKzSCcFzQtvpNe3onoQYF9oPs8zoZsexQHMQQDqfnOgq4iLoc RnhhvmxyXNnpX1/ROM7g+xtljRMC0QZv4V5vtD9M3kQwsvkkf2PTnzJm4UggfcECMvf8pe3bGauEv vCCp3k6Vv5P4fF84ahq0nzeE4dfY4rYqX8kr9LV8iBiTioqiN8FMLQI8otSNI9OJo2XBQR1P8l4Nv Tv+RzHYg==; Received: from [2601:1c0:6280:3f0::aa0b] by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbDWT-005O7U-1b; Mon, 04 Apr 2022 03:36:57 +0000 Message-ID: <61196f88-7306-058d-7b9b-21e32f1fca92@infradead.org> Date: Sun, 3 Apr 2022 20:36:50 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH -next] cpuidle: riscv: support non-SMP config Content-Language: en-US To: Anup Patel Cc: "linux-kernel@vger.kernel.org List" , kernel test robot , Anup Patel , Atish Patra , Daniel Lezcano , "Rafael J. Wysocki" , "open list:THERMAL" , linux-riscv , Palmer Dabbelt , Paul Walmsley , Albert Ou References: <20220403031355.20894-1-rdunlap@infradead.org> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 4/3/22 20:05, Anup Patel wrote: > (Removed my WDC email because it does not exist anymore) > > On Sun, Apr 3, 2022 at 8:44 AM Randy Dunlap wrote: >> >> Add for cpuid_to_hartid_map etc. >> This is needed for both SMP and non-SMP builds, but not having it >> causes a build error for non-SMP: >> >> drivers/cpuidle/cpuidle-riscv-sbi.c: In function 'sbi_cpuidle_init_cpu': >> drivers/cpuidle/cpuidle-riscv-sbi.c:350:26: error: implicit declaration of function 'cpuid_to_hartid_map' [-Werror=implicit-function-declaration] >> >> Fixes: 6abf32f1d9c5 ("cpuidle: Add RISC-V SBI CPU idle driver") >> Signed-off-by: Randy Dunlap >> Reported-by: kernel test robot >> Cc: Anup Patel >> Cc: Anup Patel >> Cc: Anup Patel >> Cc: Atish Patra >> Cc: Daniel Lezcano >> Cc: "Rafael J. Wysocki" >> Cc: linux-pm@vger.kernel.org >> Cc: linux-riscv@lists.infradead.org >> Cc: Palmer Dabbelt >> Cc: Paul Walmsley >> Cc: Albert Ou >> --- >> drivers/cpuidle/cpuidle-riscv-sbi.c | 1 + >> 1 file changed, 1 insertion(+) >> >> --- linux-next-20220401.orig/drivers/cpuidle/cpuidle-riscv-sbi.c >> +++ linux-next-20220401/drivers/cpuidle/cpuidle-riscv-sbi.c >> @@ -22,6 +22,7 @@ >> #include >> #include >> #include >> +#include > > I suggest include linux/smp.h here instead of asm/smp.h > > Otherwise it looks good to me. > > Reviewed-by: Anup Patel > Yeah, checkpatch also suggested that but it does not work. Yes, I tested it. linux/smp.h only #includes if CONFIG_SMP is enabled, and this patch needs for the non-SMP case. > >> #include >> >> #include "dt_idle_states.h" thanks. -- ~Randy