From patchwork Mon Nov 25 17:58:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentina Fernandez X-Patchwork-Id: 13885173 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id B936DD58D74 for ; Mon, 25 Nov 2024 17:59:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xxh0ShkSXMjjDKYghrq2ZFVrMogJeDxOdkeC6oF6cnc=; b=dG8hzOGDtWDg4q 5TWV8eqvxbCTM6LSlUn8IBU82PbLVdfJt0DvLW/iIO68zyo3hlCr5ym+QHjLhrSmBsIHNW5BdjyLL aieHSSfxlxOgHsh688dU5AAf5COyy0x8SZ1DK6QW2KQV4uydjrz8IqvepI50Rru2uS0j8xlrKdvxt LLr+0Icnu8c0AWEsgCUJicFN0M8Tc/0zKBhWAwUKwW37ilpqCqnyjKm5+W8oMjO+52zoipygnCIpU OxZiwjouZZqktB08YuPCJhBACMDfLg9wJmuquReSJnA1zbH1xOHE4H4//UhtQfQQcpE7Wwx6dRI9O 3kwhTOu9oyBJTEO1QUYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tFdMT-00000008o3k-3BNf; Mon, 25 Nov 2024 17:59:01 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tFdMR-00000008o2L-1aII for linux-riscv@lists.infradead.org; Mon, 25 Nov 2024 17:59:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1732557539; x=1764093539; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=z6u/32qG+4VOxWxyQMcxtikghEw3g/GuPpIgKl24hiQ=; b=S6FFXDW2cs6bunQmK93B9KvNJkWCnva2LcJdCt7aaRmK0gjoPZI1jrkv dyHJ5StcFaJuKn2bhO9loLtgvEhhUuxH5w6ASCbM8CyS1ndGjrZU6/fpB HG9W5m2wTIk0rddh01T2dnwUiEYh/EC5+ImysS8r6qUaqgqVgwUfTcdcn p2wA4Ll7n81IWhKHQPl4bUImrb+mWm2SyJiTuhJO52VVwhwrxogt7wcOJ FyWFshQZzo02nevuN2YYSV8K1qDIrGd5L6OkoCJR7kiA9dCrILpkQG8WI 9/P5y9ir9eSdMx+l6/Y4nM+odbDSOKHNWPXT2HVftGY7BjNX/4kyFikB5 g==; X-CSE-ConnectionGUID: QcIy3zy5RLCJ7zVSqoxwVg== X-CSE-MsgGUID: 79PrQIPUQpyVSrn+vDhdig== X-IronPort-AV: E=Sophos;i="6.12,183,1728975600"; d="scan'208";a="38361997" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 25 Nov 2024 10:58:52 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 25 Nov 2024 10:58:42 -0700 Received: from valentina.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Mon, 25 Nov 2024 10:58:39 -0700 From: Valentina Fernandez To: , , , , , , , , , , , , , , , CC: , , Subject: [PATCH v4 2/4] riscv: export __cpuid_to_hartid_map Date: Mon, 25 Nov 2024 17:58:16 +0000 Message-ID: <20241125175818.213108-3-valentina.fernandezalanis@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241125175818.213108-1-valentina.fernandezalanis@microchip.com> References: <20241125175818.213108-1-valentina.fernandezalanis@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241125_095859_420651_87C120DC X-CRM114-Status: UNSURE ( 7.45 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org EXPORT_SYMBOL_GPL() is missing for __cpuid_to_hartid_map array. Export this symbol to allow drivers compiled as modules to use cpuid_to_hartid_map(). Signed-off-by: Valentina Fernandez --- arch/riscv/kernel/smp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/kernel/smp.c b/arch/riscv/kernel/smp.c index c180a647a30e..d58b5e751286 100644 --- a/arch/riscv/kernel/smp.c +++ b/arch/riscv/kernel/smp.c @@ -43,6 +43,7 @@ enum ipi_message_type { unsigned long __cpuid_to_hartid_map[NR_CPUS] __ro_after_init = { [0 ... NR_CPUS-1] = INVALID_HARTID }; +EXPORT_SYMBOL_GPL(__cpuid_to_hartid_map); void __init smp_setup_processor_id(void) {