[PATCH 05/11] powerpc/topology: Remove the unused parent_node() macro

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE3272d

Revision v1 of 2 in this series.

5 messages, 3 authors, 2017-08-18 · open the first message on its own page

[PATCH 05/11] powerpc/topology: Remove the unused parent_node() macro

From: Dou Liyang <hidden>
Date: 2017-07-26 13:35:05

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

The parent_node() macro in POWERPC platform is unnecessary.

Remove it for cleanup.

Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Dou Liyang <redacted>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <redacted>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org
---
 arch/powerpc/include/asm/topology.h | 2 --
 1 file changed, 2 deletions(-)
diff --git a/arch/powerpc/include/asm/topology.h b/arch/powerpc/include/asm/topology.h
index dc4e159..2d84bca 100644
--- a/arch/powerpc/include/asm/topology.h
+++ b/arch/powerpc/include/asm/topology.h
@@ -16,8 +16,6 @@ struct device_node;
 
 #include <asm/mmzone.h>
 
-#define parent_node(node)	(node)
-
 #define cpumask_of_node(node) ((node) == -1 ?				\
 			       cpu_all_mask :				\
 			       node_to_cpumask_map[node])
-- 
2.5.5

Re: [PATCH 05/11] powerpc/topology: Remove the unused parent_node() macro

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2017-07-27 02:21:50

Dou Liyang [off-list ref] writes:
Commit a7be6e5a7f8d ("mm: drop useless local parameters of
__register_one_node()") removes the last user of parent_node().

The parent_node() macro in POWERPC platform is unnecessary.

Remove it for cleanup.

Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Dou Liyang <redacted>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <redacted>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org
---
 arch/powerpc/include/asm/topology.h | 2 --
 1 file changed, 2 deletions(-)
Thanks for doing this series.

Acked-by: Michael Ellerman <mpe@ellerman.id.au>

cheers

Re: [PATCH 05/11] powerpc/topology: Remove the unused parent_node() macro

From: Dou Liyang <hidden>
Date: 2017-07-27 02:49:36

Hi Michael,

At 07/27/2017 10:21 AM, Michael Ellerman wrote:
Dou Liyang [off-list ref] writes:
quoted
Commit a7be6e5a7f8d ("mm: drop useless local parameters of
__register_one_node()") removes the last user of parent_node().

The parent_node() macro in POWERPC platform is unnecessary.

Remove it for cleanup.

Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Dou Liyang <redacted>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <redacted>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org
---
 arch/powerpc/include/asm/topology.h | 2 --
 1 file changed, 2 deletions(-)
Thanks for doing this series.
It's my pleasure. :)

Sincerely,

	dou
Acked-by: Michael Ellerman <mpe@ellerman.id.au>

cheers

Re: [PATCH 05/11] powerpc/topology: Remove the unused parent_node() macro

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2017-08-16 11:13:30

Dou Liyang [off-list ref] writes:
Hi Michael,

At 07/27/2017 10:21 AM, Michael Ellerman wrote:
quoted
Dou Liyang [off-list ref] writes:
quoted
Commit a7be6e5a7f8d ("mm: drop useless local parameters of
__register_one_node()") removes the last user of parent_node().

The parent_node() macro in POWERPC platform is unnecessary.

Remove it for cleanup.

Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Dou Liyang <redacted>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <redacted>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org
---
 arch/powerpc/include/asm/topology.h | 2 --
 1 file changed, 2 deletions(-)
Thanks for doing this series.
It's my pleasure. :)
Seems other arch maintainers are merging these patches individually, so
I grabbed this one and put it in the powerpc tree.

cheers

Re: [05/11] powerpc/topology: Remove the unused parent_node() macro

From: Michael Ellerman <hidden>
Date: 2017-08-18 12:50:59

On Wed, 2017-07-26 at 13:34:30 UTC, Dou Liyang wrote:
Commit a7be6e5a7f8d ("mm: drop useless local parameters of
__register_one_node()") removes the last user of parent_node().

The parent_node() macro in POWERPC platform is unnecessary.

Remove it for cleanup.

Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Dou Liyang <redacted>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <redacted>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/7baebe54a64af44dc34d0bd51462f0

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help