Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp415116lqi; Thu, 7 Mar 2024 00:36:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUxNB30cTliXaszY/Nh2dAG0vxS23FegXCPJSqpg1+2Tr3xByWE1kNjGP3n7EczVWITry0qAhPKsfEYSDuJq5ABNXfuqmyEpv6feeOS1g== X-Google-Smtp-Source: AGHT+IEAYCTNmVtUXZuPlXvknkGldoMKjLR0kazbgWdy8/MhWFkMe8fPJagAUmrF5LRp5tR+CaQH X-Received: by 2002:a05:620a:2944:b0:788:4418:947b with SMTP id n4-20020a05620a294400b007884418947bmr2654982qkp.3.1709800559790; Thu, 07 Mar 2024 00:35:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709800559; cv=pass; d=google.com; s=arc-20160816; b=esWcuYrJeO6/X3Kh3JedDbaBuTGFiyyTiYelO3vva72+adgSe+FVNcpK8UphS0LvIw qXOCCTOS91BynPWM3hOCv62WVNm773mHypcv2q/JYccfGnYfeQFXluVf1NDaCR9CbpXA iQllIuQFR897W7cnxaG5oMSPkJB9rdJdVD+3MF3ATD8nGNTPqdT3gc41XOEDhNQFafZT CREuUH6SsVd5geado90L2eUI5RI23bzB1yCdThkttLqHaIMn4iQ9v1KMTmszZ77zSQgn TCaiH9qyH5r4mLTc3vEujx77eZGJYCa8N+eRxM9OK+cgTfBVRj8QDgUUyHqnBpMLB2ZC mtzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=v7F/bK/fJh4Ki8xEUI00givqhuuDFFt/iN+aWndYyio=; fh=uBaaGr6LXdq+sp0GlbZMEoMpVJmB56dbXDRaxK8M4v8=; b=JxfXoQQpnI/m7T/yE29z9i3aCoVRcgzDBvXJFsAUgnBKFwgRzU6of71NwjmoawSWLN DSxrsn26LG16gbkSIB2ykYEWu6U6kzjLHK1MuWDlSvksqGo4LUf82orY6GlEjLCJRTH/ MTE4gtDIYApnkEoKL7IXcHyvFQZItKM09KzuciA9LUkofJBxGUJtfY4NP3lg3r3XUSzi i3vEFG1BYKZDCpyy7RXx5kV8zBbv5v49+yZ6DYp2GmNlA4fqfdPT9hlrUeFlkaVhKaEz kTemM6lLmYAEXyKgM46wl1lB7PSaMOxmMtUzcQf/CJ8FGz0AjVkcBPFoPaWWIY5zyt2f JXVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gTS6cv1e; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-95146-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95146-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id wa5-20020a05620a4d0500b007883219037fsi6411257qkn.363.2024.03.07.00.35.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 00:35:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95146-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gTS6cv1e; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-95146-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95146-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4C3BA1C21610 for ; Thu, 7 Mar 2024 08:35:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D1B95B1E3; Thu, 7 Mar 2024 08:35:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="gTS6cv1e" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (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 0150582880; Thu, 7 Mar 2024 08:35:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709800542; cv=none; b=YuLt6voZ4RUNoE+ABLEVerK/DjnsJRQDYN3TaMMSPSX3w9UKo2H6EJskT6Ur+CXbWvPgxXWI0KRuYWndodVG2aiFswjgCFYL4s3TKr9l4psVD0sCsWzMi0kvO/Buos+7zVkYPIYN/rkywu2wFYMbK7m3z9DH/VOz5336HFXKhkE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709800542; c=relaxed/simple; bh=5KryanhO2TCSYIQImaXR38V4BObe+z/AOy3oiI3D08M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=PS0I8EWAklf+sm0/XU4FLZmoxkws87Yd6nA1uLr3M/ow9mKdaIdHnSXP7yLwvd68JA5a6d7Fy9BcMtKNEJNd+dozUx0d0OIMSQNJIJOKyRoo+qwt6QTE0NWQWBcohCwMKYET19EM7I9+SaXq7Uh+8fmNtPnUe46ITDbxxvdsrlo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=gTS6cv1e; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709800541; x=1741336541; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5KryanhO2TCSYIQImaXR38V4BObe+z/AOy3oiI3D08M=; b=gTS6cv1eopzTqq8ZiXLkvEUrfuS693iP/M4UpjAIEmq2u7NG7FwIbE/H 1ta+gQaTEnh6kQifVQHQrhrquR/Mjk7tTvbExR5O0a6z4OczMCNVMZv6d OwvK3G+SI/1PAKeAglYoW6ypBH0tVmgS93EJQArm190UxUm/eYvDxEVsl 55fzF1/dHFdpp6mYHNmsnFnudZn9U5g5DOSInBFjLUXAThjeXiDr1Lwfj gyIyXAmIsg/NAG11sLEOnTZKaJhQiV8qHBausNkPOFvjSRqqJna+SAOei CAdP213t5riE9ZHVi8OIgdMzk1B9N1quLdQHXSjE3Zb64wW346StOwcRx A==; X-IronPort-AV: E=McAfee;i="6600,9927,11005"; a="4600483" X-IronPort-AV: E=Sophos;i="6.06,210,1705392000"; d="scan'208";a="4600483" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2024 00:35:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,210,1705392000"; d="scan'208";a="14699744" Received: from haibo-optiplex-7090.sh.intel.com ([10.239.159.132]) by orviesa004.jf.intel.com with ESMTP; 07 Mar 2024 00:35:30 -0800 From: Haibo Xu To: Cc: xiaobo55x@gmail.com, ajones@ventanamicro.com, sunilvl@ventanamicro.com, Haibo Xu , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J. Wysocki" , Len Brown , Robert Moore , Conor Dooley , Guo Ren , Alexandre Ghiti , Greentime Hu , Anup Patel , Zong Li , Sami Tolvanen , Jisheng Zhang , Baoquan He , =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , Greg Kroah-Hartman , Chen Jiahao , Arnd Bergmann , James Morse , Evan Green , Samuel Holland , Tony Luck , Ard Biesheuvel , Yuntao Wang , Dan Williams , Alison Schofield , Dave Hansen , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev Subject: [PATCH v2 4/6] ACPI: NUMA: Make some NUMA related parse functions common Date: Thu, 7 Mar 2024 16:47:56 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The acpi_numa_slit_init(), acpi_numa_memory_affinity_init() and acpi_parse_cfmws() functions are common enough to be used on platforms that support ACPI_NUMA(x86/arm64/loongarch). Remove the condition to avoid long defined(CONFIG_ARCH) check when new platform(riscv) support was enabled. Suggested-by: Sunil V L Signed-off-by: Haibo Xu --- drivers/acpi/numa/srat.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/acpi/numa/srat.c b/drivers/acpi/numa/srat.c index 1946431c0eef..938c4adb7ec4 100644 --- a/drivers/acpi/numa/srat.c +++ b/drivers/acpi/numa/srat.c @@ -219,7 +219,6 @@ int __init srat_disabled(void) return acpi_numa < 0; } -#if defined(CONFIG_X86) || defined(CONFIG_ARM64) || defined(CONFIG_LOONGARCH) /* * Callback for SLIT parsing. pxm_to_node() returns NUMA_NO_NODE for * I/O localities since SRAT does not list them. I/O localities are @@ -351,13 +350,6 @@ static int __init acpi_parse_cfmws(union acpi_subtable_headers *header, (*fake_pxm)++; return 0; } -#else -static int __init acpi_parse_cfmws(union acpi_subtable_headers *header, - void *arg, const unsigned long table_end) -{ - return 0; -} -#endif /* defined(CONFIG_X86) || defined (CONFIG_ARM64) */ static int __init acpi_parse_slit(struct acpi_table_header *table) { -- 2.34.1