Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp822023rwi; Wed, 19 Oct 2022 03:29:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6gKBXzViIKZTbLk/oO3KRmpbiQZtH3E62sKwuSJWSZ/D6c0DIBmIM7Jk9z3OXM9ay2UiFy X-Received: by 2002:a17:907:ea7:b0:78f:4ae:965c with SMTP id ho39-20020a1709070ea700b0078f04ae965cmr6157561ejc.127.1666175353290; Wed, 19 Oct 2022 03:29:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666175353; cv=none; d=google.com; s=arc-20160816; b=yz0rSeez7Rx2vpXeXq9S6wq71Yy51dPgCZFe3DLtuG6PXJXnnec5mCAiYvJj4/749t tQ84sC2thNfY1KM3TMbTCXYJpLl3R+yqA6S+gNxBftpMiGAp6VCgv7Igr1T1/cPB3FT+ nxObjMIeIO6gJl+63SgTzdPYVA7IqcZ3Z3NUXJKNT902gk/wvujAut2KDPLos1cMhpgz zjjiSTRsCYbTtHE1wMUjuDKfXVBsgkzOpdU8aOMVXJ6p2t9HquCYTfFadWuAu93qj9cl deSioOsGeenBGooKKGYpVpFlay9M21aYerCkGwiVQ6m/zWPWPOKwI4oEjHB/WhVdqxxT p/OQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ce12-20020a170906b24c00b0073d9c29892csi11524565ejb.939.2022.10.19.03.28.46; Wed, 19 Oct 2022 03:29:13 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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 -- 2.35.1