From patchwork Wed Feb 3 15:04:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 12064577 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F35B4C433DB for ; Wed, 3 Feb 2021 15:15:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B1E6464E4B for ; Wed, 3 Feb 2021 15:15:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232566AbhBCPP0 (ORCPT ); Wed, 3 Feb 2021 10:15:26 -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-Google-Smtp-Source: ABdhPJzwkBHGVxOk7rfacDfATl2XTu3uy85q3dwEZjvioDzYxjMkoIPyGbkuyyrJdxM+xF7WZ5ETSw== 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 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@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