From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74694C33CB1 for ; Thu, 16 Jan 2020 16:51:27 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2BE9F205F4 for ; Thu, 16 Jan 2020 16:51:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DePl/LKO"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="kv/rnQJp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2BE9F205F4 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:Content-Type:Mime-Version:Message-ID:References: In-Reply-To:To:Subject:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WX8RB1wfJCliH8/zi+tgub32ZBfKjuIQgKJ9j2z+hKk=; b=DePl/LKO4v+guA 8i/mbLH9xDE/ipmSGPLvm7lfCf40wjt+UgOibEdAovjkDpeoR+JqUEsCwb4nfy73WRDDSMSgq8sxR LtrD69j6R6+jt2m/gZs387hF46A5HPjDdTBy2nSLp1BoOxR/qVHvbKGbvkgZReyEOPvFLhCCLuGRS OdrnnR+aThdjjJksUNBGgRCVWxxtCQIJ4ghimBFw4ZvCD6smszkqyFWa6kiD9XH8nZqWIgCsvwgSK 5osbXka2a8lnzcInIXoXosESJXfmmZ52+QQPxVT4vAGM3hXe6oijtqhMrUeLaNgl+o4+bZIATuO8q ro2HITUp90I+gewSQz8g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1is8Me-00071j-Ag; Thu, 16 Jan 2020 16:51:24 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1is8MQ-0006oL-1g for linux-riscv@lists.infradead.org; Thu, 16 Jan 2020 16:51:19 +0000 Received: by mail-pg1-x542.google.com with SMTP id b137so10167674pga.6 for ; Thu, 16 Jan 2020 08:51:09 -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=m8mU4WAlws11cTnSGBe2RX+UwdTmMNh1mQb9HHQ2ioCd+O/B8JD9JTN2EoKG535c/A 3QJUN0nAh8/3nXUqWnr9Fn1DVaZ1zCGM3SlaZO2yFckLVhaE1teUjHgEAcCZvugD51dd 7qmr8FC2+mf0aAChSPDjKt/c3IWxa5xiVeM+E0SlhGql1WCqasYMhc6RHmjrZqm6H7oA 63p4wkEy3QMrobrP5wR9HofschvBK2GtnLZUwtuiztNv6zezOAELog+xoB5+5710ndTX ExYSEZqLnZTG46OiMBcnOYKtn9DES6ytIkT1gk7gIDfH6zxZ/ZGx+pTvx6Rzh0svnDhS uyug== X-Gm-Message-State: APjAAAWnWq0qp/3go3cFHWf8PDsBvA6I1crQsFyruOY5uDCbUE+KugXw w9DYeqzdLOvF96mjwjAt167jOw== X-Google-Smtp-Source: APXvYqy27Y/ZAUAQAnIzlxv1ajCi6HqFGtLCh8M57hfohNhgC3bsmthRFBrHGcYWEFQ5TfRZ98IBsQ== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200116_085110_140235_1FAE674A X-CRM114-Status: GOOD ( 11.98 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alistair Francis , aou@eecs.berkeley.edu, kvm@vger.kernel.org, rkrcmar@redhat.com, anup@brainfault.org, Anup Patel , Damien Le Moal , linux-kernel@vger.kernel.org, Atish Patra , graf@amazon.com, kvm-riscv@lists.infradead.org, Paul Walmsley , pbonzini@redhat.com, linux-riscv@lists.infradead.org, Christoph Hellwig Sender: "linux-riscv" Errors-To: linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.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