* [PATCH] avr32: Remove unused asm/numnodes.h
@ 2012-06-08 17:00 Paul Bolle
2012-06-26 7:32 ` Hans-Christian Egtvedt
0 siblings, 1 reply; 3+ messages in thread
From: Paul Bolle @ 2012-06-08 17:00 UTC (permalink / raw)
To: Haavard Skinnemoen, Hans-Christian Egtvedt; +Cc: linux-kernel
This is handled with config options now.
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
---
0) Previous, inspirational, patch:
30957a8 ("[SPARC64]: Remove unused asm-sparc64/numnodes.h")
1) Tested basically like this:
$ git grep -n "numnodes\.h"
$ git grep -n "define[[:space:]]*NODES_SHIFT\b"
arch/avr32/include/asm/numnodes.h:5:#define NODES_SHIFT 2
include/linux/numa.h:6:#define NODES_SHIFT CONFIG_NODES_SHIFT
include/linux/numa.h:8:#define NODES_SHIFT 0
$
arch/avr32/include/asm/numnodes.h | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
delete mode 100644 arch/avr32/include/asm/numnodes.h
diff --git a/arch/avr32/include/asm/numnodes.h b/arch/avr32/include/asm/numnodes.h
deleted file mode 100644
index 0b864d7..0000000
--- a/arch/avr32/include/asm/numnodes.h
+++ /dev/null
@@ -1,7 +0,0 @@
-#ifndef __ASM_AVR32_NUMNODES_H
-#define __ASM_AVR32_NUMNODES_H
-
-/* Max 4 nodes */
-#define NODES_SHIFT 2
-
-#endif /* __ASM_AVR32_NUMNODES_H */
--
1.7.7.6
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] avr32: Remove unused asm/numnodes.h
2012-06-08 17:00 [PATCH] avr32: Remove unused asm/numnodes.h Paul Bolle
@ 2012-06-26 7:32 ` Hans-Christian Egtvedt
2012-06-26 8:09 ` Paul Bolle
0 siblings, 1 reply; 3+ messages in thread
From: Hans-Christian Egtvedt @ 2012-06-26 7:32 UTC (permalink / raw)
To: Paul Bolle; +Cc: Haavard Skinnemoen, linux-kernel
Around Fri 08 Jun 2012 19:00:15 +0200 or thereabout, Paul Bolle wrote:
> This is handled with config options now.
>
Yes, but AVR32 doesn't have those bits in arch/avr32/Kconfig, hence removing
the NODES_SHIFT definition will reduce it to 0 in include/Linux/numa.h. I
suspect it is already done...
> Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
> ---
> 0) Previous, inspirational, patch:
> 30957a8 ("[SPARC64]: Remove unused asm-sparc64/numnodes.h")
>
> 1) Tested basically like this:
> $ git grep -n "numnodes\.h"
> $ git grep -n "define[[:space:]]*NODES_SHIFT\b"
> arch/avr32/include/asm/numnodes.h:5:#define NODES_SHIFT 2
> include/linux/numa.h:6:#define NODES_SHIFT CONFIG_NODES_SHIFT
> include/linux/numa.h:8:#define NODES_SHIFT 0
> $
>
> arch/avr32/include/asm/numnodes.h | 7 -------
> 1 files changed, 0 insertions(+), 7 deletions(-)
> delete mode 100644 arch/avr32/include/asm/numnodes.h
>
> diff --git a/arch/avr32/include/asm/numnodes.h b/arch/avr32/include/asm/numnodes.h
> deleted file mode 100644
> index 0b864d7..0000000
> --- a/arch/avr32/include/asm/numnodes.h
> +++ /dev/null
> @@ -1,7 +0,0 @@
> -#ifndef __ASM_AVR32_NUMNODES_H
> -#define __ASM_AVR32_NUMNODES_H
> -
> -/* Max 4 nodes */
> -#define NODES_SHIFT 2
> -
> -#endif /* __ASM_AVR32_NUMNODES_H */
--
mvh
Hans-Christian Egtvedt
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] avr32: Remove unused asm/numnodes.h
2012-06-26 7:32 ` Hans-Christian Egtvedt
@ 2012-06-26 8:09 ` Paul Bolle
0 siblings, 0 replies; 3+ messages in thread
From: Paul Bolle @ 2012-06-26 8:09 UTC (permalink / raw)
To: Hans-Christian Egtvedt; +Cc: Haavard Skinnemoen, linux-kernel
Hans-Christian,
On Tue, 2012-06-26 at 09:32 +0200, Hans-Christian Egtvedt wrote:
> Around Fri 08 Jun 2012 19:00:15 +0200 or thereabout, Paul Bolle wrote:
> > This is handled with config options now.
>
> Yes, but AVR32 doesn't have those bits in arch/avr32/Kconfig,
Correct. Currently only 11 of 26 architectures set the Kconfig symbol
NODES_SHIFT. avr32 is not one of those 11.
> hence removing
> the NODES_SHIFT definition will reduce it to 0 in include/Linux/numa.h. I
> suspect it is already done...
Sure, NODES_SHIFT will be defined as 0 in numa.h for avr32, because
CONFIG_NODES_SHIFT will never be defined for avr32.
Or do you mean that some file is actually using avr32's asm/numnodes.h?
How does that work?
Paul Bolle
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-26 8:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-08 17:00 [PATCH] avr32: Remove unused asm/numnodes.h Paul Bolle
2012-06-26 7:32 ` Hans-Christian Egtvedt
2012-06-26 8:09 ` Paul Bolle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®