Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH v2 0/7] Remove the parent_node() for each arch
@ 2017-09-01  2:56 Dou Liyang
  2017-09-01  2:56 ` Dou Liyang
  2017-09-01  2:56 ` [PATCH v2 2/7] MIPS: numa: Remove the unused parent_node() macro Dou Liyang
  0 siblings, 2 replies; 7+ messages in thread
From: Dou Liyang @ 2017-09-01  2:56 UTC (permalink / raw)
  To: akpm, linux-kernel
  Cc: Dou Liyang, Tony Luck, Fenghua Yu, linux-ia64, Ralf Baechle,
	James Hogan, linux-mips, Martin Schwidefsky, Heiko Carstens,
	Michael Holzheu, linux-s390, Yoshinori Sato, Rich Felker,
	linux-sh, David S. Miller, sparclinux, Chris Metcalf,
	Arnd Bergmann, linux-arch

Changelog:

v1 --> v2:
   --Remove the patches which have been add to each arch tree individually.
      [01/11] arm64   ...Has been added to arm64 tree, Queued for 4.14
      [03/11] metag   ...Has been added to the -mm tree
      [05/11] powerpc ...Has been added to the powerpc tree
      [10/11] x86     ...Has been added to the tip sched/core

   --Rebase the remaining patches and repost.

Michael reports the parent_node() will never be invoked since the
Commit a7be6e5a7f8d ("mm: drop useless local parameters of
__register_one_node()") removes the last user of it. 

So we start removing it from the topology.h headers for each arch.

Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: linux-ia64@vger.kernel.org
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Cc: linux-s390@vger.kernel.org
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: linux-sh@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
Cc: Chris Metcalf <cmetcalf@mellanox.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arch@vger.kernel.org
Cc: akpm@linux-foundation.org

Dou Liyang (7):
  ia64: topology: Remove the unused parent_node() macro
  MIPS: numa: Remove the unused parent_node() macro
  s390/topology: Remove the unused parent_node() macro
  sh/numa: Remove the unused parent_node() macro
  sparc64/topology: Remove the unused parent_node() macro
  tile/topology: Remove the unused parent_node() macro
  asm-generic: numa: Remove the unused parent_node() macro

 arch/ia64/include/asm/topology.h                 | 7 -------
 arch/mips/include/asm/mach-ip27/topology.h       | 1 -
 arch/mips/include/asm/mach-loongson64/topology.h | 1 -
 arch/s390/include/asm/topology.h                 | 6 ------
 arch/sh/include/asm/topology.h                   | 1 -
 arch/sparc/include/asm/topology_64.h             | 2 --
 arch/tile/include/asm/topology.h                 | 6 ------
 include/asm-generic/topology.h                   | 3 ---
 8 files changed, 27 deletions(-)

-- 
2.5.5

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2 0/7] Remove the parent_node() for each arch
  2017-09-01  2:56 [PATCH v2 0/7] Remove the parent_node() for each arch Dou Liyang
@ 2017-09-01  2:56 ` Dou Liyang
  2017-09-01  2:56 ` [PATCH v2 2/7] MIPS: numa: Remove the unused parent_node() macro Dou Liyang
  1 sibling, 0 replies; 7+ messages in thread
From: Dou Liyang @ 2017-09-01  2:56 UTC (permalink / raw)
  To: akpm, linux-kernel
  Cc: Dou Liyang, Tony Luck, Fenghua Yu, linux-ia64, Ralf Baechle,
	James Hogan, linux-mips, Martin Schwidefsky, Heiko Carstens,
	Michael Holzheu, linux-s390, Yoshinori Sato, Rich Felker,
	linux-sh, David S. Miller, sparclinux, Chris Metcalf,
	Arnd Bergmann, linux-arch

Changelog:

v1 --> v2:
   --Remove the patches which have been add to each arch tree individually.
      [01/11] arm64   ...Has been added to arm64 tree, Queued for 4.14
      [03/11] metag   ...Has been added to the -mm tree
      [05/11] powerpc ...Has been added to the powerpc tree
      [10/11] x86     ...Has been added to the tip sched/core

   --Rebase the remaining patches and repost.

Michael reports the parent_node() will never be invoked since the
Commit a7be6e5a7f8d ("mm: drop useless local parameters of
__register_one_node()") removes the last user of it. 

So we start removing it from the topology.h headers for each arch.

Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: linux-ia64@vger.kernel.org
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Cc: linux-s390@vger.kernel.org
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: linux-sh@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
Cc: Chris Metcalf <cmetcalf@mellanox.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arch@vger.kernel.org
Cc: akpm@linux-foundation.org

Dou Liyang (7):
  ia64: topology: Remove the unused parent_node() macro
  MIPS: numa: Remove the unused parent_node() macro
  s390/topology: Remove the unused parent_node() macro
  sh/numa: Remove the unused parent_node() macro
  sparc64/topology: Remove the unused parent_node() macro
  tile/topology: Remove the unused parent_node() macro
  asm-generic: numa: Remove the unused parent_node() macro

 arch/ia64/include/asm/topology.h                 | 7 -------
 arch/mips/include/asm/mach-ip27/topology.h       | 1 -
 arch/mips/include/asm/mach-loongson64/topology.h | 1 -
 arch/s390/include/asm/topology.h                 | 6 ------
 arch/sh/include/asm/topology.h                   | 1 -
 arch/sparc/include/asm/topology_64.h             | 2 --
 arch/tile/include/asm/topology.h                 | 6 ------
 include/asm-generic/topology.h                   | 3 ---
 8 files changed, 27 deletions(-)

-- 
2.5.5

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2 2/7] MIPS: numa: Remove the unused parent_node() macro
  2017-09-01  2:56 [PATCH v2 0/7] Remove the parent_node() for each arch Dou Liyang
  2017-09-01  2:56 ` Dou Liyang
@ 2017-09-01  2:56 ` Dou Liyang
  2017-09-01  2:56   ` Dou Liyang
  2017-09-01  8:42   ` Ralf Baechle
  1 sibling, 2 replies; 7+ messages in thread
From: Dou Liyang @ 2017-09-01  2:56 UTC (permalink / raw)
  To: akpm, linux-kernel; +Cc: Dou Liyang, Ralf Baechle, James Hogan, linux-mips

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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 2/7] MIPS: numa: Remove the unused parent_node() macro
  2017-09-01  2:56 ` [PATCH v2 2/7] MIPS: numa: Remove the unused parent_node() macro Dou Liyang
@ 2017-09-01  2:56   ` Dou Liyang
  2017-09-01  8:42   ` Ralf Baechle
  1 sibling, 0 replies; 7+ messages in thread
From: Dou Liyang @ 2017-09-01  2:56 UTC (permalink / raw)
  To: akpm, linux-kernel; +Cc: Dou Liyang, Ralf Baechle, James Hogan, linux-mips

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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 2/7] MIPS: numa: Remove the unused parent_node() macro
  2017-09-01  2:56 ` [PATCH v2 2/7] MIPS: numa: Remove the unused parent_node() macro Dou Liyang
  2017-09-01  2:56   ` Dou Liyang
@ 2017-09-01  8:42   ` Ralf Baechle
  2017-09-01  8:54     ` Dou Liyang
  1 sibling, 1 reply; 7+ messages in thread
From: Ralf Baechle @ 2017-09-01  8:42 UTC (permalink / raw)
  To: Dou Liyang; +Cc: akpm, linux-kernel, James Hogan, linux-mips

On Fri, Sep 01, 2017 at 10:56:34AM +0800, Dou Liyang wrote:

> 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.

I already applied v1.

Thanks,

  Ralf

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 2/7] MIPS: numa: Remove the unused parent_node() macro
  2017-09-01  8:42   ` Ralf Baechle
@ 2017-09-01  8:54     ` Dou Liyang
  2017-09-01  8:54       ` Dou Liyang
  0 siblings, 1 reply; 7+ messages in thread
From: Dou Liyang @ 2017-09-01  8:54 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: akpm, linux-kernel, James Hogan, linux-mips

Hi Ralf,

At 09/01/2017 04:42 PM, Ralf Baechle wrote:
> On Fri, Sep 01, 2017 at 10:56:34AM +0800, Dou Liyang wrote:
>
>> 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.
>
> I already applied v1.
>

Thank you very much. :-)

Maybe I missed some message, so I thought it was not yet accepted.

please ignore this patch.

Thanks,
	dou
> Thanks,
>
>   Ralf
>
>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 2/7] MIPS: numa: Remove the unused parent_node() macro
  2017-09-01  8:54     ` Dou Liyang
@ 2017-09-01  8:54       ` Dou Liyang
  0 siblings, 0 replies; 7+ messages in thread
From: Dou Liyang @ 2017-09-01  8:54 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: akpm, linux-kernel, James Hogan, linux-mips

Hi Ralf,

At 09/01/2017 04:42 PM, Ralf Baechle wrote:
> On Fri, Sep 01, 2017 at 10:56:34AM +0800, Dou Liyang wrote:
>
>> 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.
>
> I already applied v1.
>

Thank you very much. :-)

Maybe I missed some message, so I thought it was not yet accepted.

please ignore this patch.

Thanks,
	dou
> Thanks,
>
>   Ralf
>
>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-09-01  8:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-01  2:56 [PATCH v2 0/7] Remove the parent_node() for each arch Dou Liyang
2017-09-01  2:56 ` Dou Liyang
2017-09-01  2:56 ` [PATCH v2 2/7] MIPS: numa: Remove the unused parent_node() macro Dou Liyang
2017-09-01  2:56   ` Dou Liyang
2017-09-01  8:42   ` Ralf Baechle
2017-09-01  8:54     ` Dou Liyang
2017-09-01  8:54       ` Dou Liyang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox