Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3466710pxb; Mon, 4 Apr 2022 17:53:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXJjRj1KLcWurAk9LZUA+YOEL6oF2pAH1j1lQ8iJJ9eSSVbY96Al5izAgjb9Qm6omOtzKc X-Received: by 2002:a17:90a:4897:b0:1c7:5fce:cbcd with SMTP id b23-20020a17090a489700b001c75fcecbcdmr1120888pjh.45.1649120036516; Mon, 04 Apr 2022 17:53:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649120036; cv=none; d=google.com; s=arc-20160816; b=WJqaMr7ytY6230xQ2ItxclXqllRdo5DOCTOCoP0HYaMzXFpS5cHTEC16+u7bgFnUfA akpt0HEhfgtLIopAjFuPcyKmlMDxhwUq0YfZDDqiG1WfBufPNQgZInJ8ODGU28z6azp/ QrWh9Im0pRya0bO/GN7uZOoEjLDR3YfnLX8tNG+JdsL3oPbmHJ01tn8tD9fFAewFTESc 7ndIvcFhUnreUjUC5616NTHHRvgJelw6kvGHzwTzrOm3WLZ7mKAd4/07byvcSsaqXT94 nIvPXiJm3cRlGa+pON58dgnbmc7dzLZ1byruq7Vj755TjUT0g22S+L3hV4MjwPnRT52F JlVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=45+PtY2KxLSf5ox+zJPh8dG5t1TTtpukHGJp11Nd5pA=; b=NEvoiV82+9Qs9zn1loGqHhhLerVzvWrZ5szeloLbbJknsWHHjB+7eTH7xmSpoa/4ai EzQ1gSM7w1Xibw2e3+x6lRxRycU0hVhIoN+X/3auVmxRo7X0sh7GADrkLj4iMxpHzkZj drNMybnlQBPVxCgN6dSNsQO2X7+JSXVsKe2YR4WPcuyikerIJJeeDo63EUeBujM3H2l9 +ejDRQqeBjRAVA52UtCh59lfOrUx8L0DIPvGVKm48hi0tXrC7AVb9md4FObE+jGEi84H 6rgDXCxBhnPoCy7PaUwxhg8mOvlxEveHa3dQ4tkfIESizQZYO6lQ4sb0BlW5XXp/pDEO gtKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=YSSNmTVT; 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 t18-20020a170902d21200b00156c21347b7si1706743ply.153.2022.04.04.17.53.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 17:53:56 -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=bombadil.20210309 header.b=YSSNmTVT; 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 D096F1081AB; Mon, 4 Apr 2022 17:01:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234482AbiDCDP5 (ORCPT + 99 others); Sat, 2 Apr 2022 23:15:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231280AbiDCDPz (ORCPT ); Sat, 2 Apr 2022 23:15:55 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5191E12A88; Sat, 2 Apr 2022 20:13:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=45+PtY2KxLSf5ox+zJPh8dG5t1TTtpukHGJp11Nd5pA=; b=YSSNmTVTKaN8rHdY0ufjHHfZfp b4ja/MhUhjU1AqLmOKgiKgLRjmctKLE257t18zSYl7tIqjsyNuTo8mhEdSsBWheEL47yIlWPwkZbu 642lWTGiV31EZtDnMlW+fHV9fVuzoLTUuXFVZ7pG/t5g28nMiHmYGFahSDpFs8WcCpNdU90pw6vbb czc5wUKXD/PcD/a0S8Pa4mJfn4UXSPE56TxZGw/RYJI0/6O0rmRERYVJS/pAGyT4vQ53jJzO0GdiO yK/hD05h0aXVfyNGT9bWuDXGCh44Wvl+9bj+fm2BYVDoocCphJkJo4QHH9U7CMxdyVDpqslOEz3n4 geeGXQSg==; Received: from [2601:1c0:6280:3f0::aa0b] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1naqge-00AZ3b-Je; Sun, 03 Apr 2022 03:13:56 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Anup Patel , Anup Patel , Anup Patel , Atish Patra , Daniel Lezcano , "Rafael J. Wysocki" , linux-pm@vger.kernel.org, linux-riscv@lists.infradead.org, Palmer Dabbelt , Paul Walmsley , Albert Ou Subject: [PATCH -next] cpuidle: riscv: support non-SMP config Date: Sat, 2 Apr 2022 20:13:55 -0700 Message-Id: <20220403031355.20894-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 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 #include #include "dt_idle_states.h"