Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7991000ybl; Thu, 16 Jan 2020 08:53:12 -0800 (PST) X-Google-Smtp-Source: APXvYqyBliJguZzwbEPihvtgz4duq7oF6kr4yQgZLRU5nkkCvl6OYU6dR3/6zs5AUrG/Q4gvOMKo X-Received: by 2002:aca:530e:: with SMTP id h14mr4635382oib.105.1579193592146; Thu, 16 Jan 2020 08:53:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579193592; cv=none; d=google.com; s=arc-20160816; b=R/3hGuTm7nNRUsV0T+v+dYalEimfNDhZ2Ownz/iUIOkIkuywRtYsO2AqnpiaRGYoWv zD8VA6PB8dNzUe0WdqXonYf/MgR24dOa3E/zLgpbjit+CqRT01ojhyQflmVnaZtYa6r6 JPp/Q4CEOZ68RuyNomwVuCCZVuinFL/UT8+/lz9eR/T9jj7JEmTJu0jZRdoPHvRh47OL shiraz8v3iP1uicrLiXgcfcd5d87fJ1yuuSClenEIn7X8gmtbETmKGGjPgkZuiDhUs2A Ndw8v4l0yQ9a6xgAsjuY4LHuos5yVq9TrTt7qh7SZKHZWsd+y4A5DdwcKmomg0nWiWyE lxiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:references:in-reply-to:to:cc:subject:from:date :dkim-signature; bh=WX8RB1wfJCliH8/zi+tgub32ZBfKjuIQgKJ9j2z+hKk=; b=YVlVW00Q12nE+Pm5AI4N1kriGerwiSb0Jsn2DYCFoQ/i6qQl6nuzJXgS1DGZhOp4x/ 4YpPCGd5H73K1W71RqiKTZJLv8uXCYXEe6RLzjxbEj0vohWhDZ1SuWR/4wr+0z+PeFp8 kXpYJC9djV8IDe7MZiuJoeBaC0CsjPSLtcexYZclt+kUU8dksSCcLpk700Y6PRsSuEr7 a9osj6jngmhMkmqEGx1cikYBjgsi28y//Q26ngWsATBzxgW1CoVFaDYs36W6v3g+2w/+ BHaXsTtfMmZc9uAeDAiUd5wXg+hSIRhxnCkEp8DALsWJquNwkF5u8Cd3a0fTnviaCTDZ 5T3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="kv/rnQJp"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2si14525377oto.207.2020.01.16.08.53.00; Thu, 16 Jan 2020 08:53:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="kv/rnQJp"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729267AbgAPQvL (ORCPT + 99 others); Thu, 16 Jan 2020 11:51:11 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:36052 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727026AbgAPQvK (ORCPT ); Thu, 16 Jan 2020 11:51:10 -0500 Received: by mail-pg1-f193.google.com with SMTP id k3so10179599pgc.3 for ; Thu, 16 Jan 2020 08:51:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:subject:cc:to:in-reply-to:references:message-id :mime-version:content-transfer-encoding; bh=WX8RB1wfJCliH8/zi+tgub32ZBfKjuIQgKJ9j2z+hKk=; b=kv/rnQJpRXl8xuYnke8mUPEG7MMS88JHDJvb4E6uV0XFinTRPPD5C/d39TE0W1yLGg IveHIwSKvWqF8GWIAVXys0ek01P0zlslB1NhEkYuOQTobMKrpWAalExl/JFK7yyU0Yq0 RN4d7oM83AIzhO/LQ+k2eKOtqcDgfMqR5K2BBoTBgPPcCQKjQY1vZxVsvLeeVpRJOZmD eRQROKW+eN7NWuqRF8n1g54NyVDjBhvST3om4ni5PwBSIHk02pNmz2QDJ3oaBuELwJCe 7fXGPGZ2gXBewewkWEIYT5M6hJVT30iUAhLwPdqGbI+xXXqAP3MBupENf9wLl5FFPuhq 48fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:cc:to:in-reply-to:references :message-id:mime-version:content-transfer-encoding; bh=WX8RB1wfJCliH8/zi+tgub32ZBfKjuIQgKJ9j2z+hKk=; b=OS5h3lxLJPjfUYM0bogoBdtKJrNYmmjHBbPkmn2HuDSO08WGrH+KVsWjTop9JU37DQ 3pfpLoFDhhQso12Fc1w1r7MCp2nwzkvhfHTKuMShFjfyZOe9KbK+42UEwUVRXrXBiGuo Osj5mF/CGugVsd7cNDcG+GQyEwisNK+K5oAlzUEb0a+/ayqv3XPKFt8tt37XFpARVag0 TKfLN7+olMfTwPjCwfLA+MVqv25iAwa62e5EuS20QSGXcDyH0qkTu/pkEJlnqPjpTjEy JenvDsSuZlkl+8tKYdYn/OD2d48g/6wsR35Vf9ilPt0idfuoOaJmhd3EROy3jtoTJLX8 Vj1A== X-Gm-Message-State: APjAAAXfQ0fGkCBzAxhj/DurW/vaE1hdhKZIlIr1vVgBxkhY51gc9M0T Y8Iu7WMyjxFqD25SuwYTR49w5w== X-Received: by 2002:a65:530d:: with SMTP id m13mr40368954pgq.351.1579193469245; Thu, 16 Jan 2020 08:51:09 -0800 (PST) Received: from localhost ([2620:0:1000:2514:7f69:cd98:a2a2:a03d]) by smtp.gmail.com with ESMTPSA id s1sm24561586pgv.87.2020.01.16.08.51.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2020 08:51:08 -0800 (PST) Date: Thu, 16 Jan 2020 08:51:08 -0800 (PST) X-Google-Original-Date: Thu, 16 Jan 2020 08:34:33 PST (-0800) From: Palmer Dabbelt X-Google-Original-From: Palmer Dabbelt Subject: Re: [PATCH v10 01/19] RISC-V: Export riscv_cpuid_to_hartid_mask() API CC: Paul Walmsley , aou@eecs.berkeley.edu, pbonzini@redhat.com, rkrcmar@redhat.com, graf@amazon.com, Atish Patra , Alistair Francis , Damien Le Moal , Christoph Hellwig , anup@brainfault.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Anup Patel To: Anup Patel In-Reply-To: <20191223113443.68969-2-anup.patel@wdc.com> References: <20191223113443.68969-2-anup.patel@wdc.com> <20191223113443.68969-1-anup.patel@wdc.com> Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 23 Dec 2019 03:35:19 PST (-0800), Anup Patel wrote: > The riscv_cpuid_to_hartid_mask() API should be exported to allow > building KVM RISC-V as loadable module. > > Signed-off-by: Anup Patel > --- > arch/riscv/kernel/smp.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/riscv/kernel/smp.c b/arch/riscv/kernel/smp.c > index eb878abcaaf8..6fc7828d41e4 100644 > --- a/arch/riscv/kernel/smp.c > +++ b/arch/riscv/kernel/smp.c > @@ -10,6 +10,7 @@ > > #include > #include > +#include > #include > #include > #include > @@ -63,6 +64,7 @@ void riscv_cpuid_to_hartid_mask(const struct cpumask *in, struct cpumask *out) > for_each_cpu(cpu, in) > cpumask_set_cpu(cpuid_to_hartid_map(cpu), out); > } > +EXPORT_SYMBOL_GPL(riscv_cpuid_to_hartid_mask); > > bool arch_match_cpu_phys_id(int cpu, u64 phys_id) > { > -- > 2.17.1 Reviewed-by: Palmer Dabbelt