Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7386165rwi; Mon, 24 Oct 2022 13:58:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6/EwaN+9BKrh46ieB7CqQo/TKfNgPfWNvn/BUQU+JkOtq2te9XnVBo6S5nzVKrmTz0fOJk X-Received: by 2002:a17:907:2e0b:b0:7a5:fc2e:dc7 with SMTP id ig11-20020a1709072e0b00b007a5fc2e0dc7mr7595806ejc.257.1666645092504; Mon, 24 Oct 2022 13:58:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666645092; cv=none; d=google.com; s=arc-20160816; b=rU6l8eEWZeQ6kJJAJde/r/iD+7UoF75KOxHV/vjm/VbFY03cREE+C1jaak6mQgaoeB X4ZJdUJWaZMjyeUxAAyccKx9vQGeFMxasEPve4F2VkAdqN76AD3UQ3a8ccrnoHg8B0s9 rbr6yhu/I3Askl0FQAvI3HI/byTBKLmJPaNKO93q8d3LJ6LKl7XZj9Xs6RSaKiVy5evb m0dXomuZqi1NKP8Rda+1C3qEiXoDPB2ZJ/LvGT0k+BCAAT96qSNzftdK0IuBK5lD9R1z Po8E/uFxQlMOAu0F7t0b1agdyBqTBllaACu05i/eVgVz3E462RM/alp3wFuAElsF+mnV /1ow== 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=ALoRngO0P7/4OlUL/JfOq1jjV7vP318HGQW58XB48jY=; b=eLI5vueR77nvH66dMJcrl9dwuaJis5pz7yUzDXZO14NQ+qGRvZC5GOcEHqn1ax8KhJ 0GpX3WVt/naRTBzWjtQa+kRJ441YJlbDQDdJAHkrkvugV37niCEAPwQLv0E5jwaHeKMQ Ctb1OQiMtprLhZKtMdyuylMnqOD6ITnHuAnbMPSkdMWi3bKYN6MSjAuykYG1023WJMA7 qXQjDcVZa+h3MGz1BTmr4nna7iRcTV9caYhOCtT0PbICeP7Z1ANMWFqR681mM/jR5Wl0 7hsTohyJ9AKcZZwS/Uh8ybj3E1IRPKaeYiy0SOpCGLdUxTkKgaAxjKl6AkefPlwtYlJa 1SLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="IR/CyQ4r"; 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 v17-20020a1709067d9100b007a953d421bbsi711091ejo.322.2022.10.24.13.57.48; Mon, 24 Oct 2022 13:58:12 -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="IR/CyQ4r"; 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 S234191AbiJXUUn (ORCPT + 99 others); Mon, 24 Oct 2022 16:20:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234123AbiJXUUP (ORCPT ); Mon, 24 Oct 2022 16:20:15 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F8C88FD40; Mon, 24 Oct 2022 11:36:52 -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 sin.source.kernel.org (Postfix) with ESMTPS id 729E6CE13CA; Mon, 24 Oct 2022 12:23:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DC8BC433D6; Mon, 24 Oct 2022 12:23:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666614226; bh=3HHEogK/GgH7Bj0ZbubU+2O46uGu6KFNZBsMl3GyFTQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IR/CyQ4r+46rOrS1Sn533A2RdmRo1LZoVFIULmGp/j3WcBV/6RrIOu/I1fl8FqQPY KsGjnTPruX1ZjQVFQOIBQhpdtkOA90UfK+mtT3u4H6OA6p1wf13zL2/XegP2IBWkNo 3anELfSSKydfjdOzNQbWM+knKWloPwxdzECeVSH0= 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 5.10 179/390] ia64: export memory_add_physaddr_to_nid to fix cxl build error Date: Mon, 24 Oct 2022 13:29:36 +0200 Message-Id: <20221024113030.363399091@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113022.510008560@linuxfoundation.org> References: <20221024113022.510008560@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.6 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 f34964271101..6cd002e8163d 100644 --- a/arch/ia64/mm/numa.c +++ b/arch/ia64/mm/numa.c @@ -106,5 +106,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