Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3495670pxb; Mon, 4 Apr 2022 18:50:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYZvb3mDAEFO4Ju7XQlR4qy1r/uVbNdUxE0nyBGZo8k245QPnqfahac668Kh+NoANQ6tLw X-Received: by 2002:a17:903:11c7:b0:151:9769:3505 with SMTP id q7-20020a17090311c700b0015197693505mr980985plh.72.1649123400044; Mon, 04 Apr 2022 18:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649123400; cv=none; d=google.com; s=arc-20160816; b=AUMxYdfoA6bC8x1puAbzsiQSupaOnTyAzwVhEvz80GQEZ6efxjJc9ok6+qVNxRUj8G kzJbf6Or3P0/mRwPCYLOfiEVUxodmycuQfXRSUpJBbkxHFDzY6C/VL2qqHPPBH78QjQe Q4IvMaHfo/n7Wf0Ls/CqAav8Nr8uKtbTzwq0Zun8s//0lEpwIAfh3yKgyQGXHemuCltL QpSHNgmZc2j8j13ufK8UDs2L1nZ7BaDT6GyJMC8X23keMt6oyLy6ASiesTKQ2n+9nk0l ttAMwZuKcGVXUt3froIYYqO0H0lqdeXFBdbnXRUPAMTall7phEqiHhgyHAUprnKMth4m /N/Q== 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=Zd1t2Pkuz698pTtgUjJwnowpfooSne/24mXVqKShj+c=; b=0GgxavJ2VlxGRk2G7F3XkIu8cVHkqwhPK7I/V14EJ7Wj1iKTY8hW6B/LWPG54VGGBz BY13K+ue0zvfo6zkySXto1KKz2mYUO/KzKw+Q88T2qMLUnFEZtBsBi8sFq3JuWTdZJP4 GE7AyVrTfCJSWBNVAiAJAaCtvjC6YXndT4E7G9xCYBmBhLLQTWMeNMIewEJgewPswDYK Unynl9TPiCTBSI9kOHkSfDW1P12SQkL9qKZj2eNT79T6XlHyEsH8j1OW6iEmpyvUlYZH rCHR68ZGRo71SjPFjqb6iIAA/u1uK3z63ePg2qK2MesfSzZDC1sDHNOJjetE4b1CKEWq sPeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=NWiwe7Qw; 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 r84-20020a632b57000000b00397f965a779si11282926pgr.128.2022.04.04.18.49.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 18:50:00 -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=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=NWiwe7Qw; 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 5E91EE6C71; Mon, 4 Apr 2022 17:51:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376954AbiDDDHb (ORCPT + 99 others); Sun, 3 Apr 2022 23:07:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238893AbiDDDH2 (ORCPT ); Sun, 3 Apr 2022 23:07:28 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CD5924BC8 for ; Sun, 3 Apr 2022 20:05:33 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id w4so12378189wrg.12 for ; Sun, 03 Apr 2022 20:05:33 -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=Zd1t2Pkuz698pTtgUjJwnowpfooSne/24mXVqKShj+c=; b=NWiwe7Qw5ka9+CSZ1/qW67wTbrDFP0cDPbwGe/J6FWhHkb5Sxt4n4xmacvf/7NvIH8 3w6RbfIRqVnT0UVbdtZeYqpV++c6S7BJnbyeh3/r9cnceCAZ9bWsutuz1HNLVXV+B8uo WhUgw+dUJeLh2DaqquPfW5OTuHBZzGhP/etJ8eNt/CBog7GE5wgIna9JPIVP12BBtc9a j7hLtaTWSsgqX/RtFKbXHtAuOSFuiYC7ZkffF+ba1HIzMvzzjjKqxoxGTvAOU77ohyFv ccKHaokZjQ8KLKN9m4xBNPzefa9WxtUlnoU6N9iFI2xzCtFbZ767HuPX9Hv2vykF46/q YduA== 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=Zd1t2Pkuz698pTtgUjJwnowpfooSne/24mXVqKShj+c=; b=pJXen/E5hN85S+8/GZ7nFoZpEsec+Xb8VT8RNgeSLswPPGsdfA8sFTuQp3zhZPG3rQ 9uqjg9MV6gWedPDxqF28hPRqcEhDw2ZurLeSdwzOrl3imDAO2N5RSasl6lft3Sn3g8PM szvPG998CVLMpZNnKDa8fRMAKVeCHVuYWQMTkFJ4qunkKAgYHh5hh5Ge6Z+VMVm9FQbR bGKMmJP97yTFqNRI6sx4siZWqSKZsRdG94zGNtmDqm2wPqoUA44eQjfuGiGq92bPdeSW fHOif8mWac7GL1XDWE0CsW03KsBfhxVuzWqG/qf6z3iYFvZ9e1E2YludFH57QmCFOmyw YMxQ== X-Gm-Message-State: AOAM532o2t1fBBMmf/wNlZ14MFuw4ka4IgZlQwJvvhfuN3mjs8UhMCEg b7SHoOj8/rt7kmyX5g0xhb6s3sBCk034c/B40fBTPA== X-Received: by 2002:a5d:6e54:0:b0:204:635:42ba with SMTP id j20-20020a5d6e54000000b00204063542bamr15548840wrz.214.1649041531815; Sun, 03 Apr 2022 20:05:31 -0700 (PDT) MIME-Version: 1.0 References: <20220403031355.20894-1-rdunlap@infradead.org> In-Reply-To: <20220403031355.20894-1-rdunlap@infradead.org> From: Anup Patel Date: Mon, 4 Apr 2022 08:35:19 +0530 Message-ID: Subject: Re: [PATCH -next] cpuidle: riscv: support non-SMP config To: Randy Dunlap 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 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 (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 Regards, Anup > #include > > #include "dt_idle_states.h"