Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp4819298pxb; Wed, 20 Apr 2022 10:38:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVQwJ2linf5ySMvx7WFbALwSce70bf/U4SGaf+bx83kJ+ulVigasQcu9URYKfqlWfZT3Z6 X-Received: by 2002:a05:6402:440d:b0:412:9e8a:5e51 with SMTP id y13-20020a056402440d00b004129e8a5e51mr24847217eda.362.1650476313784; Wed, 20 Apr 2022 10:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650476313; cv=none; d=google.com; s=arc-20160816; b=YtvMekZ7R9xY6EvDCvGHCpocG0HGuuaCPcBVzHBlRSEHEjbLt+37ffEIKKWi/Tlnsh 60dsrL0P8ESuOyKz/EGZFNhbvH5IX2i4GrPjrS08nWBFYqWSbJ9Luh6NVpxPAPKaqMvH CISOP6lB9YWDr4lYnqjOWDGf0dx1bqbZW4ubvFYC3vg+coLsJUidLWtfdcAL4ldw6gb5 JNrTxvoE5y8orNXwR8pfdAtnckEvOy3OBxv8Z6wdGoq2iv15P3S4RXverOlGcu+Iup9y 9jMq4auU2vE4t+HdxH7H0TQKmicEKaz8r+IrY+78nl7rKqwLYKjnPhVWdgykKJu+Bvrg CJ9Q== 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:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=uh+zqoa0RmF45pIO3fKwJcIuuOmmQqr7ZHT+lq3wkxM=; b=t4fvKeUmBXe09rpvStgxrWk5ITEaQF4V/qOJKNjXL8tUsO18reiAq777mCloCCeAbG aOzAjLCAuDC7wEaqJr9eIxKu8Gugq/GRVPbWr5fSliSINeTuyAf5bKoZms/DXypjWZjv YKSqaOgsFECcT4MR3TSucbl9vT07cZNbvonuPhc51fvGoQa9gWK6tdCawmQ4kmiM3JCv UpZ5U/A6qSyI796H2twc1J/dNSe8mV23c/XVQswVIvSnIxclBAxs1u/V11ZKYNUuXNEN 0EvqL29n5szDGdBXmPwt7aT6hI3RZDtyKpmW8lL/u/sH8lAqeu6OKxgXD7iQCoASJfbP En4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=c+RLqjbo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h1-20020a170906584100b006efdae095adsi2325129ejs.954.2022.04.20.10.38.08; Wed, 20 Apr 2022 10:38:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=c+RLqjbo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358634AbiDTBKT (ORCPT + 99 others); Tue, 19 Apr 2022 21:10:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351126AbiDTBKS (ORCPT ); Tue, 19 Apr 2022 21:10:18 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E95671D0FE for ; Tue, 19 Apr 2022 18:07:33 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id bo5so450771pfb.4 for ; Tue, 19 Apr 2022 18:07:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=uh+zqoa0RmF45pIO3fKwJcIuuOmmQqr7ZHT+lq3wkxM=; b=c+RLqjbokVzeFTNw9hc8x+ovEmdLmAVh+jAijGNIU2aP2z9Kn/2M5CVbWFQbp3uaYa G2yJ7RQXUcZiR97mRMuENoPfBv/t0NyC1qNrxT7PvouX4a7uAeH/Z5NeKzncDrWGTu6i TrenHavLMjhVjxXVbMPKEpnK76ncrbU5kyYp5qX7wLMhWx0rkgqxNEHn+4bZc+GlTcv8 +mkx3DmZVeCVa5ER8W4GHlhgYsPWVAXzqalQefy8VLihg0JRzIq+nfHyjd67REslJVKb fOvAOnsTclyZdrMiN15qZ4vmRxI7slVgDYrjxfOPLCEIO+9GrAwgv4WnKl/Q4ba+WZeS 9qbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=uh+zqoa0RmF45pIO3fKwJcIuuOmmQqr7ZHT+lq3wkxM=; b=MY1hxRvDXT5qNDCeRHpjZaM4X/GJOx1i2AtaQMvjtkcfwH6xp5LG244u5d9J29cVvb ctgSOAFGWoZTtvXraee+DWmNxNfDk0KzBy7w5jGZ7TcJKc3/1bSDfWhWaJaZNc0kPjDJ AvsMGrfAirc+aSBGo2g9JXfDYhAcwEthfvGQlelENv6O08fFr9yc77wYJL5FCtzuCFqE 61yupG3DmGP8ue0rHeLnv+gllrPFsBvIOvsvwQMKLuqe5AATx5/pnFFPRUjofKGOyCr2 5NGSoET7KWBgLQ+arPq424qcTHlXBCIYmDzYiO7ZbTwQWjREFjnwPCjn+s8qXih7d03j 6Jcg== X-Gm-Message-State: AOAM530y/J54lsRJjYpyuAMEW1byttMGhFId/0jYf8mmTND2kn0j5g+X IOePEdLQNB+XmSisVYGs4AyLdgq9+KaNrw== X-Received: by 2002:a63:4945:0:b0:398:efe8:3b7a with SMTP id y5-20020a634945000000b00398efe83b7amr17202310pgk.106.1650416853229; Tue, 19 Apr 2022 18:07:33 -0700 (PDT) Received: from localhost ([12.3.194.138]) by smtp.gmail.com with ESMTPSA id x36-20020a634a24000000b0039cc6fff510sm17693532pga.58.2022.04.19.18.07.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Apr 2022 18:07:32 -0700 (PDT) Date: Tue, 19 Apr 2022 18:07:32 -0700 (PDT) X-Google-Original-Date: Tue, 19 Apr 2022 18:04:50 PDT (-0700) Subject: Re: [PATCH -next] cpuidle: riscv: support non-SMP config In-Reply-To: <20220403031355.20894-1-rdunlap@infradead.org> CC: linux-kernel@vger.kernel.org, rdunlap@infradead.org, lkp@intel.com, anup@brainfault.org, anup@brainfault.org, apatel@ventanamicro.com, Atish Patra , daniel.lezcano@linaro.org, rafael@kernel.org, linux-pm@vger.kernel.org, linux-riscv@lists.infradead.org, Paul Walmsley , aou@eecs.berkeley.edu From: Palmer Dabbelt To: rdunlap@infradead.org Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, 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 Sat, 02 Apr 2022 20:13:55 PDT (-0700), rdunlap@infradead.org 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 > #include > > #include "dt_idle_states.h" Thanks, this is on fixes.