Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4674402pxk; Wed, 30 Sep 2020 08:51:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjbSxXD/Im7DHdewjA6EiiNa7qN4+yZRTtM1P7ieNTDFXo7Zh4118zwPtyr15dFzL5qtTM X-Received: by 2002:a17:907:7290:: with SMTP id dt16mr2075650ejc.508.1601481096642; Wed, 30 Sep 2020 08:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601481096; cv=none; d=google.com; s=arc-20160816; b=n4jeqJhGaXmMZ7Ip6tAwAsOg6HDCL+sDc5Fg2hmSwBq6tDJaDK5gauWsgYmqJFwPNB 90AlPlQF/jXPusrBLq5+YMideZw1GumhfMy9PvsbGkGTz3alXhUTCFO3zBhxBDZCqVUQ 1LW36EMSn6S70tBQohM+vkocIobAjmNEV25tVCiA6n2bsOpsQDsxpUXxDNLTE/ZLVcE0 jrHMvQVhY1ckFHqvIVq2Sypldr0JWvxchjijppDOoguFeh6ddyg6CuSAZcdW+47TN2o3 NJ8uYY9SiyNnxDiWun8pzt+vdtYXSFecoby+k7KS9gN7oE6lvV2Hg/KlSz+9cZFYxX/t jojQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=MjESHHWPOPnuuQO1moW7HbI6E4JRdG/mmg91yJWkT3E=; b=cq8j/Th5A/QM4GRG137+0jPuUgVOTkWTDyfaAE4ho4HLKfZDeeJEdEwE1zA8kWeEJn hEkfVOT18UqQjMByEQPi5vWoR3zQBYNn3GuLji8Av98v7Zo6j4EDdgP7bS8t0LPZukPr hF5lO5TWZNeVc4H9i/KS6r0BUIUWjX0aBn5evJLUyAp9gD6K4kIILgPorKAO6BGtgAd5 VSU12L58wrNtxNf+8dYvsHLdgXasTDF4sm7BlcBDWPlP3gdF0TZCTAypIEu/hIurw0Bq T6qu37D82BcXJ0XALLcprnSwsJSHlB49kxwdO9O7WN9mOjdOaORm3HiWPM4Lyxlwhh2G KpLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w16si1342112edx.322.2020.09.30.08.51.13; Wed, 30 Sep 2020 08:51:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730196AbgI3Ptr convert rfc822-to-8bit (ORCPT + 99 others); Wed, 30 Sep 2020 11:49:47 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:37953 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbgI3Ptr (ORCPT ); Wed, 30 Sep 2020 11:49:47 -0400 Received: by mail-ot1-f67.google.com with SMTP id y5so2283503otg.5; Wed, 30 Sep 2020 08:49:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=mTrSgX4Tixqu3kTctGZ5BfKCOM+BJ2wQmL4YVycvE/I=; b=eaLDnJOWUIodjpL+nsZUE1H6hR732WP6J6mehaPNbMKBMgGGzkzK2bsc2mXKdEs46e Zbb5wo4ncf78xGLrsM08kFx+DsRiHuXEqIjdoeFYUCcuvPSNXCNIGIWfckSQDwSrpAwo wb8UNTaQtPo5eadTwhE/erkMBKOOXkRUmzFIVVG0iwkqO6KrdRKKA60gjd7SXVTPEvOp FYQ2abPPCUyxC5GX8rGIzk9WEf7EKMT2fk/LYigG37JKTqARY5R/k7hKWMr+vxr6EiST I3tbSweEsU1VVShFbgM1uGPF0mblfna0Kzemcy/iLXTnTtxL/QYnW/wbKqQG/17N+kBF cWIw== X-Gm-Message-State: AOAM532HgvxswYdcwvtb5MMTucgwKX+MP1cWdUYKk4YLWT2Li7ZUSTdd UrkdrZW/Y/EROhadPx8k9thzxWeRbJ9Erihb7Vo= X-Received: by 2002:a9d:718a:: with SMTP id o10mr1956739otj.262.1601480984876; Wed, 30 Sep 2020 08:49:44 -0700 (PDT) MIME-Version: 1.0 References: <20200928194554.3423466-1-natechancellor@gmail.com> In-Reply-To: From: "Rafael J. Wysocki" Date: Wed, 30 Sep 2020 17:49:33 +0200 Message-ID: Subject: Re: [PATCH] ACPI / NUMA: Add stub function for pxm_to_node To: Hanjun Guo , Nathan Chancellor Cc: Robert Moore , Erik Kaneda , "Rafael J. Wysocki" , Len Brown , Jonathan Cameron , ACPI Devel Maling List , "open list:ACPI COMPONENT ARCHITECTURE (ACPICA)" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 30, 2020 at 11:07 AM Hanjun Guo wrote: > > On 2020/9/29 3:45, Nathan Chancellor wrote: > > After commit 01feba590cd6 ("ACPI: Do not create new NUMA domains from > > ACPI static tables that are not SRAT"): > > > > $ scripts/config --file arch/x86/configs/x86_64_defconfig -d NUMA -e ACPI_NFIT > > > > $ make -skj"$(nproc)" distclean defconfig drivers/acpi/nfit/ > > drivers/acpi/nfit/core.c: In function ‘acpi_nfit_register_region’: > > drivers/acpi/nfit/core.c:3010:27: error: implicit declaration of > > function ‘pxm_to_node’; did you mean ‘xa_to_node’? > > [-Werror=implicit-function-declaration] > > 3010 | ndr_desc->target_node = pxm_to_node(spa->proximity_domain); > > | ^~~~~~~~~~~ > > | xa_to_node > > cc1: some warnings being treated as errors > > ... > > > > Add a stub function like acpi_map_pxm_to_node had so that the build > > continues to work. > > > > Fixes: 01feba590cd6 ("ACPI: Do not create new NUMA domains from ACPI static tables that are not SRAT") > > Signed-off-by: Nathan Chancellor > > --- > > > > I am not sure if this is the right place or value for this. It looks > > like there is going to be another stub function added here, which is > > going through -mm: > > > > https://lkml.kernel.org/r/159643094925.4062302.14979872973043772305.stgit@dwillia2-desk3.amr.corp.intel.com > > > > include/acpi/acpi_numa.h | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/include/acpi/acpi_numa.h b/include/acpi/acpi_numa.h > > index fdebcfc6c8df..09eb3bc20ff5 100644 > > --- a/include/acpi/acpi_numa.h > > +++ b/include/acpi/acpi_numa.h > > @@ -22,5 +22,10 @@ extern int acpi_numa __initdata; > > extern void bad_srat(void); > > extern int srat_disabled(void); > > > > +#else /* CONFIG_ACPI_NUMA */ > > +static inline int pxm_to_node(int pxm) > > +{ > > + return 0; > > +} > > #endif /* CONFIG_ACPI_NUMA */ > > #endif /* __ACP_NUMA_H */ > > Looks good to me, > > Reviewed-by: Hanjun Guo Patch applied, thanks!