Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp178845rdb; Tue, 19 Dec 2023 13:03:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IE52XDOoz2uuX9eBk7UU5zkijnIsE6GpnAH5RbHGu/rNVxILlZ2Y6S7W1SM+EwXGrYxdiGt X-Received: by 2002:a17:90b:1bd0:b0:28b:52f3:3dc1 with SMTP id oa16-20020a17090b1bd000b0028b52f33dc1mr3413499pjb.50.1703019791024; Tue, 19 Dec 2023 13:03:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703019791; cv=none; d=google.com; s=arc-20160816; b=jlMEg0FyW6Q97GA+j+i+NDW42dykjAdOHqMTwNxod7x7e6Mju3UKk0XK/0aahCg9m3 a0gN0oFS4TZab5b2H8rdyvngSXXqr515XcgaINB8xjObsWFnIMToM/b9kTfhyvaqvMb/ 3tzNkdZy1FnRfQ6fJIlFAf7LfAyZceIx5Cf7suiLbaneusDxZ0Dc8NerIjqilyFAosU+ wwMhmFLIhsldn0fRygxxhPiyRQvs4FekcPxdDoZ6NDUknv9UixZHKDiejL+hwJXA72sc 4LgstZ38UPpiQsiFqor8Nqtj6pRlcwNufamSxfmTnT8YIzFFHn3C51w3+FN23Ix/WS9M QCsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=qsj0lc16eNSjypOaBN+kiTN4/ImC8Sqq9/KbAa5A9Yg=; fh=unQp8Wwy98eKj1pv6l7/ApDGXSr/RgtGk+MXi6adb0A=; b=rmsKp/50qH9uELZ3yAR/svkQTAYQ/Ow/oL5/KsuvOnxfNFP9N5dwkop9rVlkdcsioe NALHgGI0AknOTQSB5RBpaqw9RRaJ4OhQZcgMfBaE5BTirM9sbAdTXkDNIKARE6keFIcj WEmbQ5h1abxnf54ZDZp4MRDLxoVN6qbhAymWO4OWjwUJuHYNkJkpQdwUVyCraWrOFDkh H3ODBd1vG8m9lkwrHQ/mLqGVmhAb9OjPcP4a7PBt/sxUCjdaw4+TfreNM95DZzBIWbgJ 5bLH4PW9IU/H96OGt0ydv4HspzEK6EIv0SIRmVxNA5jCx7ypodTHajp/wKK0j7+zpctq 9XRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=JFwmCwdB; spf=pass (google.com: domain of linux-kernel+bounces-5948-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5948-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id gd20-20020a17090b0fd400b0028868ea872esi1710579pjb.43.2023.12.19.13.03.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 13:03:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5948-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=JFwmCwdB; spf=pass (google.com: domain of linux-kernel+bounces-5948-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5948-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 76123283A4F for ; Tue, 19 Dec 2023 21:03:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D41BD3D0AD; Tue, 19 Dec 2023 21:03:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="JFwmCwdB" X-Original-To: linux-kernel@vger.kernel.org Received: from out-182.mta1.migadu.com (out-182.mta1.migadu.com [95.215.58.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 712FC3C6A3 for ; Tue, 19 Dec 2023 21:02:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Tue, 19 Dec 2023 16:02:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1703019777; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qsj0lc16eNSjypOaBN+kiTN4/ImC8Sqq9/KbAa5A9Yg=; b=JFwmCwdBloOFVe4lIBYNnTgC2AMZG71MPaUzExbNJzqvrsWsGYIUxGXAkzYcDzsw96EgZg MbdQdodF2adLe9nMCNIlobqZHGc7bMzrki23ghmGsP8M0gJ1qnPSolpHBOEtDzp5bJ7MZT yyK1rTnD+M1lgIQHh7wWIKRg+QpkeFk= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Nathan Chancellor Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, tglx@linutronix.de, x86@kernel.org, tj@kernel.org, peterz@infradead.org, mathieu.desnoyers@efficios.com, paulmck@kernel.org, keescook@chromium.org, dave.hansen@linux.intel.com, mingo@redhat.com, will@kernel.org, longman@redhat.com, boqun.feng@gmail.com, brauner@kernel.org Subject: Re: [PATCH 15/50] kernel/numa.c: Move logging out of numa.h Message-ID: <20231219210253.btvil5tychx6b6kx@moria.home.lan> References: <20231216024834.3510073-1-kent.overstreet@linux.dev> <20231216032651.3553101-1-kent.overstreet@linux.dev> <20231216032651.3553101-5-kent.overstreet@linux.dev> <20231219163644.GA345795@dev-arch.thelio-3990X> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231219163644.GA345795@dev-arch.thelio-3990X> X-Migadu-Flow: FLOW_OUT On Tue, Dec 19, 2023 at 09:36:44AM -0700, Nathan Chancellor wrote: > On Fri, Dec 15, 2023 at 10:26:14PM -0500, Kent Overstreet wrote: > These need EXPORT_SYMBOL_GPL() now like the architecture specific > implementations because they are no longer inlined. My arm64 builds fail > with: > > ERROR: modpost: "memory_add_physaddr_to_nid" [drivers/acpi/nfit/nfit.ko] undefined! > ERROR: modpost: "phys_to_target_node" [drivers/acpi/nfit/nfit.ko] undefined! > ERROR: modpost: "memory_add_physaddr_to_nid" [drivers/virtio/virtio_mem.ko] undefined! > ERROR: modpost: "phys_to_target_node" [drivers/dax/dax_cxl.ko] undefined! > ERROR: modpost: "memory_add_physaddr_to_nid" [drivers/dax/dax_cxl.ko] undefined! > ERROR: modpost: "phys_to_target_node" [drivers/cxl/cxl_acpi.ko] undefined! > ERROR: modpost: "memory_add_physaddr_to_nid" [drivers/cxl/cxl_pmem.ko] undefined! > ERROR: modpost: "phys_to_target_node" [drivers/cxl/cxl_pmem.ko] undefined! > ERROR: modpost: "memory_add_physaddr_to_nid" [drivers/hv/hv_balloon.ko] undefined! Applied the following: commit 7ae175e405b44b9897c04bbf177e3e08ab25710a Author: Kent Overstreet Date: Tue Dec 19 16:02:26 2023 -0500 fixup! kernel/numa.c: Move logging out of numa.h diff --git a/kernel/numa.c b/kernel/numa.c index c24c72f45989..67ca6b8585c0 100644 --- a/kernel/numa.c +++ b/kernel/numa.c @@ -12,6 +12,7 @@ int memory_add_physaddr_to_nid(u64 start) start); return 0; } +EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid); #endif #ifndef phys_to_target_node @@ -21,4 +22,5 @@ int phys_to_target_node(u64 start) start); return 0; } +EXPORT_SYMBOL_GPL(phys_to_target_node); #endif