All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dou Liyang <douly.fnst@cn.fujitsu.com>
To: <linux-kernel@vger.kernel.org>
Cc: <mpe@ellerman.id.au>, Dou Liyang <douly.fnst@cn.fujitsu.com>,
	Ralf Baechle <ralf@linux-mips.org>,
	James Hogan <james.hogan@imgtec.com>, <linux-mips@linux-mips.org>
Subject: [PATCH 04/11] MIPS: numa: Remove the unused parent_node() macro
Date: Wed, 26 Jul 2017 21:34:29 +0800	[thread overview]
Message-ID: <1501076076-1974-5-git-send-email-douly.fnst@cn.fujitsu.com> (raw)
In-Reply-To: <1501076076-1974-1-git-send-email-douly.fnst@cn.fujitsu.com>

Commit a7be6e5a7f8d ("mm: drop useless local parameters of
__register_one_node()") removes the last user of parent_node().

The parent_node() macros in both IP27 and Loongson64 are unnecessary.

Remove it for cleanup.

Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
---
 arch/mips/include/asm/mach-ip27/topology.h       | 1 -
 arch/mips/include/asm/mach-loongson64/topology.h | 1 -
 2 files changed, 2 deletions(-)

diff --git a/arch/mips/include/asm/mach-ip27/topology.h b/arch/mips/include/asm/mach-ip27/topology.h
index defd135..3fb7a0e 100644
--- a/arch/mips/include/asm/mach-ip27/topology.h
+++ b/arch/mips/include/asm/mach-ip27/topology.h
@@ -23,7 +23,6 @@ struct cpuinfo_ip27 {
 extern struct cpuinfo_ip27 sn_cpu_info[NR_CPUS];
 
 #define cpu_to_node(cpu)	(sn_cpu_info[(cpu)].p_nodeid)
-#define parent_node(node)	(node)
 #define cpumask_of_node(node)	((node) == -1 ?				\
 				 cpu_all_mask :				\
 				 &hub_data(node)->h_cpus)
diff --git a/arch/mips/include/asm/mach-loongson64/topology.h b/arch/mips/include/asm/mach-loongson64/topology.h
index 0d8f3b5..bcb8856 100644
--- a/arch/mips/include/asm/mach-loongson64/topology.h
+++ b/arch/mips/include/asm/mach-loongson64/topology.h
@@ -4,7 +4,6 @@
 #ifdef CONFIG_NUMA
 
 #define cpu_to_node(cpu)	(cpu_logical_map(cpu) >> 2)
-#define parent_node(node)	(node)
 #define cpumask_of_node(node)	(&__node_data[(node)]->cpumask)
 
 struct pci_bus;
-- 
2.5.5

WARNING: multiple messages have this Message-ID (diff)
From: Dou Liyang <douly.fnst@cn.fujitsu.com>
To: linux-kernel@vger.kernel.org
Cc: mpe@ellerman.id.au, Dou Liyang <douly.fnst@cn.fujitsu.com>,
	Ralf Baechle <ralf@linux-mips.org>,
	James Hogan <james.hogan@imgtec.com>,
	linux-mips@linux-mips.org
Subject: [PATCH 04/11] MIPS: numa: Remove the unused parent_node() macro
Date: Wed, 26 Jul 2017 21:34:29 +0800	[thread overview]
Message-ID: <1501076076-1974-5-git-send-email-douly.fnst@cn.fujitsu.com> (raw)
Message-ID: <20170726133429.JvV02pY5a-hB1GcayT-V7CCTCQ1XbGIYkz8vLiKRe2M@z> (raw)
In-Reply-To: <1501076076-1974-1-git-send-email-douly.fnst@cn.fujitsu.com>

Commit a7be6e5a7f8d ("mm: drop useless local parameters of
__register_one_node()") removes the last user of parent_node().

The parent_node() macros in both IP27 and Loongson64 are unnecessary.

Remove it for cleanup.

Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
---
 arch/mips/include/asm/mach-ip27/topology.h       | 1 -
 arch/mips/include/asm/mach-loongson64/topology.h | 1 -
 2 files changed, 2 deletions(-)

diff --git a/arch/mips/include/asm/mach-ip27/topology.h b/arch/mips/include/asm/mach-ip27/topology.h
index defd135..3fb7a0e 100644
--- a/arch/mips/include/asm/mach-ip27/topology.h
+++ b/arch/mips/include/asm/mach-ip27/topology.h
@@ -23,7 +23,6 @@ struct cpuinfo_ip27 {
 extern struct cpuinfo_ip27 sn_cpu_info[NR_CPUS];
 
 #define cpu_to_node(cpu)	(sn_cpu_info[(cpu)].p_nodeid)
-#define parent_node(node)	(node)
 #define cpumask_of_node(node)	((node) == -1 ?				\
 				 cpu_all_mask :				\
 				 &hub_data(node)->h_cpus)
diff --git a/arch/mips/include/asm/mach-loongson64/topology.h b/arch/mips/include/asm/mach-loongson64/topology.h
index 0d8f3b5..bcb8856 100644
--- a/arch/mips/include/asm/mach-loongson64/topology.h
+++ b/arch/mips/include/asm/mach-loongson64/topology.h
@@ -4,7 +4,6 @@
 #ifdef CONFIG_NUMA
 
 #define cpu_to_node(cpu)	(cpu_logical_map(cpu) >> 2)
-#define parent_node(node)	(node)
 #define cpumask_of_node(node)	(&__node_data[(node)]->cpumask)
 
 struct pci_bus;
-- 
2.5.5

  parent reply	other threads:[~2017-07-26 13:34 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-26 13:34 [PATCH 00/11] Remove the parent_node() for each arch Dou Liyang
2017-07-26 13:34 ` [PATCH 01/11] arm64: numa: Remove the unused parent_node() macro Dou Liyang
2017-07-26 13:34   ` Dou Liyang
2017-08-04 13:30   ` Will Deacon
2017-08-04 13:30     ` Will Deacon
2017-08-04 15:28     ` Dou Liyang
2017-08-04 15:28       ` Dou Liyang
2017-08-15 13:38       ` Catalin Marinas
2017-08-15 13:38         ` Catalin Marinas
2017-07-26 13:34 ` [PATCH 02/11] ia64: topology: " Dou Liyang
2017-07-26 13:34   ` Dou Liyang
2017-07-26 13:34 ` [PATCH 03/11] metag/numa: " Dou Liyang
2017-07-26 13:34   ` Dou Liyang
2017-07-26 13:34 ` Dou Liyang [this message]
2017-07-26 13:34   ` [PATCH 04/11] MIPS: numa: " Dou Liyang
2017-07-26 13:34 ` [PATCH 05/11] powerpc/topology: " Dou Liyang
2017-07-27  2:21   ` Michael Ellerman
2017-07-27  2:49     ` Dou Liyang
2017-08-16 11:13       ` Michael Ellerman
2017-08-18 12:50   ` [05/11] " Michael Ellerman
2017-07-26 13:34 ` [PATCH 06/11] s390/topology: " Dou Liyang
2017-07-26 13:34   ` Dou Liyang
2017-07-27  8:19   ` Heiko Carstens
2017-08-16 12:56     ` Dou Liyang
2017-08-16 12:56       ` Dou Liyang
2017-07-26 13:34 ` [PATCH 07/11] sh/numa: " Dou Liyang
2017-07-26 13:34   ` Dou Liyang
2017-07-26 13:34 ` [PATCH 08/11] sparc64/topology: " Dou Liyang
2017-07-26 13:34   ` Dou Liyang
2017-07-26 16:46   ` David Miller
2017-07-26 16:46     ` David Miller
2017-07-26 13:34 ` [PATCH 09/11] tile/topology: " Dou Liyang
2017-07-26 18:00   ` Chris Metcalf
2017-07-26 13:34 ` [PATCH 10/11] x86/topology: " Dou Liyang
2017-07-27  8:58   ` [tip:sched/core] " tip-bot for Dou Liyang
2017-07-26 13:34 ` [PATCH 11/11] asm-generic: numa: " Dou Liyang
2017-07-26 13:34   ` Dou Liyang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1501076076-1974-5-git-send-email-douly.fnst@cn.fujitsu.com \
    --to=douly.fnst@cn.fujitsu.com \
    --cc=james.hogan@imgtec.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@linux-mips.org \
    --cc=mpe@ellerman.id.au \
    --cc=ralf@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.