Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp363579pxb; Wed, 3 Feb 2021 07:19:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBqd2Tez0w4rU06rC+vKLGrmozJxVoXUd2WezaD/x/PEbGIpMwqhHJRMkpQmgzKXD1iP0E X-Received: by 2002:a17:906:c1c1:: with SMTP id bw1mr3793104ejb.86.1612365577324; Wed, 03 Feb 2021 07:19:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612365577; cv=none; d=google.com; s=arc-20160816; b=yPhH0q6BPF2kQGlGJvElTg4ip+ua3dGfGGn/FYe4xh9rGAah6d0a+hKuiw8PCef/ll GwqEJH5fTRy7AF/IkaalGGoWzCifApxMRPTZIbnBdVfznr6HufifKPhUJaiqXW0ey3Bb PA8vaBhiV9UdLJacx6BWvoHHxKm+f/iw9KCcvaM1Qtf46+ZVaa+Ikg1KzcMq6acWCjH1 0HO5Vk1OdcwXxT/cVESx7BlZfS/raZo9SsEwZhSyJw+LQ1poEMrBGgxOAJI8+eLuvbpE hYBuDIeOYES3tUNt+JecIgjww3uviUJ6c36u3XOhu9IiltS0BvmW4o+Unb0hWjn0gll3 t1+w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=HHDz3iIV5n6XQTRqm5AjoptlDcjURqmul15yV2T30Po=; b=AQ/p5OifMohhkZ96rdDdai8ziU4cxdY0RM9MrmJ/BXHkj4uV5PY+CnadGctZzBEWWD gcOMMFnMr9X5lcOJgiYvtMn7oUXN9xEKNEjsWtqJaejkz+EHetlPKY31nS7MT3i4RQk0 XfTCczNXTHCrogcGVBISpGk0rsTC0pigG0qzhfX9JXrJlt8m2y+9p92C2mHLP1eqsoka rFkEXsaUTUI1SekQo86F9fBF+Jw2YTXgUM670bsxKKf9fgR4td+gUDhv5eheAoeg/187 CO3f1luIJ9NteBAluMRJHMuH2ivkisdG2zRGv43oPhrqXWdF7AM9OZ8SUM8tpQob7TuS 3QvQ== 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 dm27si1376450edb.83.2021.02.03.07.19.02; Wed, 03 Feb 2021 07:19:37 -0800 (PST) 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 S233749AbhBCPPb (ORCPT + 99 others); Wed, 3 Feb 2021 10:15:31 -0500 Received: from mail-wm1-f45.google.com ([209.85.128.45]:51866 "EHLO mail-wm1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233976AbhBCPFb (ORCPT ); Wed, 3 Feb 2021 10:05:31 -0500 Received: by mail-wm1-f45.google.com with SMTP id m2so5866043wmm.1; Wed, 03 Feb 2021 07:05:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HHDz3iIV5n6XQTRqm5AjoptlDcjURqmul15yV2T30Po=; b=fe6tL+mpWgPHM2k1U2l2piNuKt/ZU2RcjgpMapyh71mZrbH0/hjPiLD7BbPbuvJJqf hRiUZdOp2ssEmyav/BdwtoLmvWxNlH20gl3Sl3dH/yKVgoimYLyT6p/n2l2K7jyUmEeu SiwzL9tHrycmcq0IJ8Xakr5Uewy8Zxq2iQLZwlpY5euwWBmnX5G4DS6IoIlDsKO81UGR 2ieIfU9QmZhaEWoP1t+ANEk5k0NhgoJm0zoBCD/6uMj/0k7A68BIyjs9FcXWUU9typ0s VQIh3DgXy6285UCoMPAegxHub8FXlBAf85I/v7HT7mygVPuHSSUkUZkZ1Yzk8XpWcN9q ldTg== X-Gm-Message-State: AOAM531eYpRlZuufaGKZREEpia7JA4O/Qw5z0ebcoMV1jYsk6f29PJaW AhY5TghHdDT3O6WxBn9ETiPuqEjkWbM= X-Received: by 2002:a1c:1f4d:: with SMTP id f74mr3341162wmf.12.1612364686079; Wed, 03 Feb 2021 07:04:46 -0800 (PST) Received: from liuwe-devbox-debian-v2.j3c5onc20sse1dnehy4noqpfcg.zx.internal.cloudapp.net ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id r17sm4051704wro.46.2021.02.03.07.04.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Feb 2021 07:04:45 -0800 (PST) From: Wei Liu To: Linux on Hyper-V List Cc: virtualization@lists.linux-foundation.org, Linux Kernel List , Michael Kelley , Vineeth Pillai , Sunil Muthuswamy , Nuno Das Neves , pasha.tatashin@soleen.com, Wei Liu , Robert Moore , Erik Kaneda , "Rafael J. Wysocki" , Len Brown , linux-acpi@vger.kernel.org (open list:ACPI COMPONENT ARCHITECTURE (ACPICA)), devel@acpica.org (open list:ACPI COMPONENT ARCHITECTURE (ACPICA)) Subject: [PATCH v6 08/16] ACPI / NUMA: add a stub function for node_to_pxm() Date: Wed, 3 Feb 2021 15:04:27 +0000 Message-Id: <20210203150435.27941-9-wei.liu@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210203150435.27941-1-wei.liu@kernel.org> References: <20210203150435.27941-1-wei.liu@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is already a stub function for pxm_to_node but conversion to the other direction is missing. It will be used by Microsoft Hypervisor code later. Signed-off-by: Wei Liu --- v6: new --- include/acpi/acpi_numa.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/acpi/acpi_numa.h b/include/acpi/acpi_numa.h index a4c6ef809e27..40a91ce87e04 100644 --- a/include/acpi/acpi_numa.h +++ b/include/acpi/acpi_numa.h @@ -30,6 +30,10 @@ static inline int pxm_to_node(int pxm) { return 0; } +static inline int node_to_pxm(int node) +{ + return 0; +} #endif /* CONFIG_ACPI_NUMA */ #ifdef CONFIG_ACPI_HMAT -- 2.20.1