From patchwork Sat Oct 22 07:24:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7442 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1098345wrr; Sat, 22 Oct 2022 01:10:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM42ErCLRQB4ZJnSNBEQe75mzP6LBN0ero1nycebB64NreA6A/JSdsSgVqPJ+LUEFuXtnTin X-Received: by 2002:a17:90b:254b:b0:200:a860:5bf9 with SMTP id nw11-20020a17090b254b00b00200a8605bf9mr61129829pjb.176.1666426218752; Sat, 22 Oct 2022 01:10:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666426218; cv=none; d=google.com; s=arc-20160816; b=vaGMf1Cqg097ywhl1332E6rm4XIhXXjLaia0+GnQ4s6Ubb0SOFpSA1MUIVY1Gi8UGC oKC2cf3E9iquog/7ocOD0QZaZLeg/RUqy+AUaw8jo5PEuELjeU/y6g+KylmKYKeh86sM g6edeSP0OQfIreNJ2Kn1trYYEMY2gQ5v3ZCineoKYyq5O5gS95XYp/T2A0Z8SHgL8o98 IfIf9U4ZebuqqLzb9G0oDrY3fYtRilAfKnscSOood1301AFgA4j709RnnXfBpTS6Eq7N DLYBrGIObM7k5oGJee39dBBAEzNNCuIdUND33rQLsVv3A7os/tUGGoQc4X9ndmlIEdu1 oDxQ== 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=ulQih2/jUbZC9H32bTK5SZpBYCiXfjj3h6EmHRtcTfMaYcWRdgqZxT0ll24L72rFSA bh5wLVGPo3n6/MC399w+EmkcLo9kjZ4pjqQe21NjL1wExYpOShpVZnDT0SijSp7WGevM cFL08aoXgit3cGR6+UaENUkl6jVQH+Qu589xFnhkeNJ7j4Jsi1v6cE1xL1fPejDsQjKt NnsbwoyZIanfBl+HC7Y0Kh60UOGa6ANXghEOWKRw7j7wOd7EfoDk7jDAxwEn2Bfk3Lp/ tviNOV03i//H090XQ2xf+S+werU6ZYNLD5IiM1yWCSkffQso9ArcGue5Lo9ThN+SxayL ASpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=V9JVKIKo; 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 b6-20020a056a0002c600b0056615a18b20si25311922pft.250.2022.10.22.01.10.05; Sat, 22 Oct 2022 01:10:18 -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=V9JVKIKo; 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 S232915AbiJVIIj (ORCPT + 99 others); Sat, 22 Oct 2022 04:08:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233019AbiJVIEj (ORCPT ); Sat, 22 Oct 2022 04:04:39 -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 8AB402D37FC; Sat, 22 Oct 2022 00:52:15 -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 E5C6460B80; Sat, 22 Oct 2022 07:51:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF531C433D7; Sat, 22 Oct 2022 07:51:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666425108; bh=3i1Ed3bk0XkELjKa8ysuyW1Wad/0dMDZaLkwWHH547Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V9JVKIKov24Hr0ly3q1g9QhO1x4GsGtaCq07Adl/Bc6BNIITo8+0xkGqoK0nHLUNV kG7OLzauQzoDE/JrPpwYfcKG3N6tmgFAC8YwxzxLSjPsolbxfkDVQeF+yiv6pfyS+w 6Ttv22+D8LDNULEf1KjLV8ThsPG7QjIE2hVrAv4U= 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.19 362/717] ia64: export memory_add_physaddr_to_nid to fix cxl build error Date: Sat, 22 Oct 2022 09:24:01 +0200 Message-Id: <20221022072512.283950772@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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?1747374538872754943?= X-GMAIL-MSGID: =?utf-8?q?1747374538872754943?= 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