From patchwork Wed Aug 2 09:28:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Zhijian X-Patchwork-Id: 13337918 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9053FC001DF for ; Wed, 2 Aug 2023 09:29:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D001E28013F; Wed, 2 Aug 2023 05:29:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C8923280112; Wed, 2 Aug 2023 05:29:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B299828013F; Wed, 2 Aug 2023 05:29:15 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 9F482280112 for ; Wed, 2 Aug 2023 05:29:15 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 46581A0918 for ; Wed, 2 Aug 2023 09:29:15 +0000 (UTC) X-FDA: 81078641070.01.083EDB3 Received: from esa6.hc1455-7.c3s2.iphmx.com (esa6.hc1455-7.c3s2.iphmx.com [68.232.139.139]) by imf07.hostedemail.com (Postfix) with ESMTP id 12B1940011 for ; Wed, 2 Aug 2023 09:29:11 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=fujitsu.com (policy=none); spf=none (imf07.hostedemail.com: domain of lizhijian@cn.fujitsu.com has no SPF policy when checking 68.232.139.139) smtp.mailfrom=lizhijian@cn.fujitsu.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1690968552; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=Lcw+8lTKy5ksuM7k2gzDYJBEPz5sI4gEe0ySIk7buas=; b=Z44MGwApAZSUfjVctuJhnhxnDixbRLRnT/sde0dvSOTNnY6y6WoihEVfdkl8FuVAvLyohi FlWqdtkZ++JfBz4ofMZooLdK2yzmZ+DCHtrmXVoeA6YjGeo8vHtkD2uQzftdH4oiwucHhY DTu+jDfnjmJiFN8JGkK7C07NejgHxRU= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=fujitsu.com (policy=none); spf=none (imf07.hostedemail.com: domain of lizhijian@cn.fujitsu.com has no SPF policy when checking 68.232.139.139) smtp.mailfrom=lizhijian@cn.fujitsu.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690968552; a=rsa-sha256; cv=none; b=I7qWqMatmsp5PYd/LZ4Mc0+vGyKkP8+vGkOPiCOE9htTnX/4vWCu85YNx+y89vQPgcV8GF XYf0rIdWdaqnqiVclOVKsT1sfAbpZ4Kd4owe1CHabrFCuAE4ZCyC/JFZPUdzfiPZUXAhYo /CuEx1otaKpgbOmnTvqU/GkDxEq6yqc= X-IronPort-AV: E=McAfee;i="6600,9927,10789"; a="128027455" X-IronPort-AV: E=Sophos;i="6.01,248,1684767600"; d="scan'208";a="128027455" Received: from unknown (HELO yto-r1.gw.nic.fujitsu.com) ([218.44.52.217]) by esa6.hc1455-7.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2023 18:29:10 +0900 Received: from yto-m3.gw.nic.fujitsu.com (yto-nat-yto-m3.gw.nic.fujitsu.com [192.168.83.66]) by yto-r1.gw.nic.fujitsu.com (Postfix) with ESMTP id 65CBCDB5C4 for ; Wed, 2 Aug 2023 18:29:07 +0900 (JST) Received: from aks-ab1.gw.nic.fujitsu.com (aks-ab1.gw.nic.fujitsu.com [192.51.207.11]) by yto-m3.gw.nic.fujitsu.com (Postfix) with ESMTP id A3D05D9689 for ; Wed, 2 Aug 2023 18:29:06 +0900 (JST) Received: from localhost.localdomain (unknown [10.167.234.230]) by aks-ab1.gw.nic.fujitsu.com (Postfix) with ESMTP id ED4DB2FC7B4E; Wed, 2 Aug 2023 18:29:04 +0900 (JST) From: Li Zhijian To: akpm@linux-foundation.org, linux-acpi@vger.kernel.org, linux-mm@kvack.org Cc: rafael@kernel.org, lenb@kernel.org, linux-kernel@vger.kernel.org, ying.huang@intel.com, aneesh.kumar@linux.ibm.com, Li Zhijian Subject: [PATCH] acpi,mm: fix typo sibiling -> sibling Date: Wed, 2 Aug 2023 17:28:56 +0800 Message-Id: <20230802092856.819328-1-lizhijian@cn.fujitsu.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSS-9.1.0.1408-9.0.0.1002-27788.006 X-TM-AS-User-Approved-Sender: Yes X-TMASE-Version: IMSS-9.1.0.1408-9.0.1002-27788.006 X-TMASE-Result: 10--4.362300-10.000000 X-TMASE-MatchedRID: WwTQ5WpbqUAUnpTkX3DbLirLqyE6Ur/jGfZImb3fqAQ6FHRWx2FGsL8F Hrw7frluf146W0iUu2t7Dk+VAslsnY3oygjMeK7eBO00Q/2PQs++F//Mn3a2wwPHqiqIXxKG+03 a+MQ8RE2BKmEhSw0fOvlc5/v2Z+iZlwV2iaAfSWcURSScn+QSXt0H8LFZNFG76sBnwpOylLPJ1d yRsn38oPRpGUAneS024pirfueCpzaIU5/Hig73GZ0wLQO1SUhFqQX4Tk3p4TByE6+JCoh/s5Sfx imG/4PbSy9102KxznIhyadlGFXHKsTgfCdKUS4cicSkmYsAV+kLUU1zqiphVX7cGd19dSFd X-TMASE-SNAP-Result: 1.821001.0001-0-1-22:0,33:0,34:0-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ThuQcPXor/UDkF55P hNB+B56P TCfMIzPqawXig+MGZlc27N26xkiVPfPl4wXmVW61lxn5YhfvjnMfkPp58RQTvpEcOSt1v/mso0H4GPEjfXPtnLFVePkfHjMgYL5oCwDS19XWe493p5IIj7XINIX1to5AqbjEVqQDOE/Lhm/Zz9VY1UQeB/49EBR9uV1Fvt5mVLJTBwH/Ltji5qlcsgA+OwLDPnOSj X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: First found this typo as reviewing memory tier code. Fix it by sed like: $ sed -i 's/sibiling/sibling/g' $(git grep -l sibiling) so the acpi one will be corrected as well. Signed-off-by: Li Zhijian --- drivers/acpi/acpi_pad.c | 2 +- include/linux/memory-tiers.h | 2 +- mm/memory-tiers.c | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c index 7a453c5ff303..7f073ca64f0e 100644 --- a/drivers/acpi/acpi_pad.c +++ b/drivers/acpi/acpi_pad.c @@ -100,7 +100,7 @@ static void round_robin_cpu(unsigned int tsk_index) for_each_cpu(cpu, pad_busy_cpus) cpumask_or(tmp, tmp, topology_sibling_cpumask(cpu)); cpumask_andnot(tmp, cpu_online_mask, tmp); - /* avoid HT sibilings if possible */ + /* avoid HT siblings if possible */ if (cpumask_empty(tmp)) cpumask_andnot(tmp, cpu_online_mask, pad_busy_cpus); if (cpumask_empty(tmp)) { diff --git a/include/linux/memory-tiers.h b/include/linux/memory-tiers.h index fc9647b1b4f9..1e6c8ddcaa92 100644 --- a/include/linux/memory-tiers.h +++ b/include/linux/memory-tiers.h @@ -22,7 +22,7 @@ struct memory_tier; struct memory_dev_type { /* list of memory types that are part of same tier as this type */ - struct list_head tier_sibiling; + struct list_head tier_sibling; /* abstract distance for this specific memory type */ int adistance; /* Nodes of same abstract distance */ diff --git a/mm/memory-tiers.c b/mm/memory-tiers.c index a516e303e304..56c22470c96d 100644 --- a/mm/memory-tiers.c +++ b/mm/memory-tiers.c @@ -115,7 +115,7 @@ static __always_inline nodemask_t get_memtier_nodemask(struct memory_tier *memti nodemask_t nodes = NODE_MASK_NONE; struct memory_dev_type *memtype; - list_for_each_entry(memtype, &memtier->memory_types, tier_sibiling) + list_for_each_entry(memtype, &memtier->memory_types, tier_sibling) nodes_or(nodes, nodes, memtype->nodes); return nodes; @@ -174,7 +174,7 @@ static struct memory_tier *find_create_memory_tier(struct memory_dev_type *memty * If the memtype is already part of a memory tier, * just return that. */ - if (!list_empty(&memtype->tier_sibiling)) { + if (!list_empty(&memtype->tier_sibling)) { list_for_each_entry(memtier, &memory_tiers, list) { if (adistance == memtier->adistance_start) return memtier; @@ -218,7 +218,7 @@ static struct memory_tier *find_create_memory_tier(struct memory_dev_type *memty memtier = new_memtier; link_memtype: - list_add(&memtype->tier_sibiling, &memtier->memory_types); + list_add(&memtype->tier_sibling, &memtier->memory_types); return memtier; } @@ -527,7 +527,7 @@ static bool clear_node_memory_tier(int node) memtype = node_memory_types[node].memtype; node_clear(node, memtype->nodes); if (nodes_empty(memtype->nodes)) { - list_del_init(&memtype->tier_sibiling); + list_del_init(&memtype->tier_sibling); if (list_empty(&memtier->memory_types)) destroy_memory_tier(memtier); } @@ -553,7 +553,7 @@ struct memory_dev_type *alloc_memory_type(int adistance) return ERR_PTR(-ENOMEM); memtype->adistance = adistance; - INIT_LIST_HEAD(&memtype->tier_sibiling); + INIT_LIST_HEAD(&memtype->tier_sibling); memtype->nodes = NODE_MASK_NONE; kref_init(&memtype->kref); return memtype;