From patchwork Wed Oct 19 08:28:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 4733 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp214222wrs; Wed, 19 Oct 2022 02:12:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5nkxA/yIRxFr9jGAXvr5ux1D6dbtVukaX9xV7IBFEGf+eiYSP//DCsMmx0EwmM08h/bRfZ X-Received: by 2002:a05:6402:1205:b0:458:c1b2:e428 with SMTP id c5-20020a056402120500b00458c1b2e428mr6418923edw.94.1666170731725; Wed, 19 Oct 2022 02:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666170731; cv=none; d=google.com; s=arc-20160816; b=sFJI2yPlTbjFR//P36G/DV0r9WVlcdp3w/kPB43BueIb6t8QFf5KWdF/osk6kRhJed PU/nXhV5bwBXVqswGwQI49s/ouKacVP3us4yNpyr0GwU7c9A6Ap/xMlM/x4dBbAy4GJK Tj/iEQhpcghEL3F37MepnohCAvTHPjdo/gVm6BA35Jte3iQk3rDev7IzI37Upme/NZ33 lendMdB8KB4gNtJbf84eAg6Ofr1j7nrlVyLuFc68Fquj5UaX1S+545JXFc6Jz+BPu1lT CW8ZLpTNRZCQhTD1bCCHczDqE0eDfXoaz7wZcZjpTaUbQfqAV2zBCHjN4okNo07a5hp3 P1Kg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pkrMs2rdLhuQgKq4b+2NrXu9jWtiCntCVFsB62B/Fvs=; b=QKT2G7OQHpyCFXa3Up8km9APcJOxsXhjIYRBWz4O1WjLbkeRHQvlH6JnrBBgkDYDiy 9dfdiKF1TXh9mo9CIBZoqIEk97RfElHMifNgI4RSbZ0fHq6PqRzIyTc7pqfBIwcD9dfV c4vt/oOsQOjsQo6O8PyViD5GMhf4uG4v9r5FjRkGXz07cdNbENLPetJkUP4xKEGKkReV vKWrM+9QmqLvmKUhZ+NPVXtxkoe1rgwpNrzJRFpGLpf6mRdBRn8B6FwPf7jqrIgIscNu vwEVIA9uYDxFZAAQt6BpPQ/ZtBHzOpzUnKWz2bjUAzGSuqz0nGRrlAR6TjW/D/uHRT2T +lWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UNaXIP+C; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk30-20020a1709077f9e00b0077a19529760si14128331ejc.65.2022.10.19.02.11.47; Wed, 19 Oct 2022 02:12:11 -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=@linuxfoundation.org header.s=korg header.b=UNaXIP+C; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232713AbiJSJJC (ORCPT + 99 others); Wed, 19 Oct 2022 05:09:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232458AbiJSJGS (ORCPT ); Wed, 19 Oct 2022 05:06:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1562119C0B; Wed, 19 Oct 2022 01:59:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2D125617F7; Wed, 19 Oct 2022 08:57:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17D0EC433C1; Wed, 19 Oct 2022 08:57:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666169871; bh=3i1Ed3bk0XkELjKa8ysuyW1Wad/0dMDZaLkwWHH547Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UNaXIP+CiqqI/k8s2stZ9GFmjYaFVF2xfUbUs7Z2jtS6H8tGMVBaYUgQO85RoyuW6 M3+mrq59Rs4D00+/rLOLZyV9v1FFTGRhq2NWGBrq5uwgG72SHocSE8at7L7jnq+H4m qDaXB6htg2JuwseSBUKuhWHVUga8DKAKu1Nj/q3g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Randy Dunlap , Dan Williams , Ben Widawsky , Jonathan Cameron , linux-ia64@vger.kernel.org, Arnd Bergmann , Keith Mannthey , Andrew Morton , Sasha Levin Subject: [PATCH 6.0 439/862] ia64: export memory_add_physaddr_to_nid to fix cxl build error Date: Wed, 19 Oct 2022 10:28:46 +0200 Message-Id: <20221019083309.387354722@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747106641156646884?= X-GMAIL-MSGID: =?utf-8?q?1747106641156646884?= From: Randy Dunlap [ Upstream commit 97c318bfbe84efded246e80428054f300042f110 ] cxl_pmem.ko uses memory_add_physaddr_to_nid() but ia64 does not export it, so this causes a build error: ERROR: modpost: "memory_add_physaddr_to_nid" [drivers/cxl/cxl_pmem.ko] undefined! Fix this by exporting that function. Fixes: 8c2676a5870a ("hot-add-mem x86_64: memory_add_physaddr_to_nid node fixup") Reported-by: kernel test robot Signed-off-by: Randy Dunlap Cc: Dan Williams Cc: Ben Widawsky Cc: Jonathan Cameron Cc: linux-ia64@vger.kernel.org Cc: Arnd Bergmann Cc: Keith Mannthey Cc: Andrew Morton Signed-off-by: Arnd Bergmann Signed-off-by: Sasha Levin --- arch/ia64/mm/numa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/ia64/mm/numa.c b/arch/ia64/mm/numa.c index d6579ec3ea32..4c7b1f50e3b7 100644 --- a/arch/ia64/mm/numa.c +++ b/arch/ia64/mm/numa.c @@ -75,5 +75,6 @@ int memory_add_physaddr_to_nid(u64 addr) return 0; return nid; } +EXPORT_SYMBOL(memory_add_physaddr_to_nid); #endif #endif