mm: Move definition of MIN_MEMORY_BLOCK_SIZE to a header
Subsystems (6)
PATCH 1/2 mm: Move definition of MIN_MEMORY_BLOCK_SIZE to a header
The macro MIN_MEMORY_BLOCK_SIZE is currently defined twice in two .c files, and I need it in a third one to fix a powerpc bug, so let's first move it into a header
---
Ingo, Thomas: Who needs to ack the x86 bit ? I'd like to send that to Linus asap with the powerpc fix.
arch/x86/mm/init_64.c +1 -2
@@ -28,6 +28,7 @@#include <linux/poison.h> #include <linux/dma-mapping.h> #include <linux/module.h> +#include <linux/memory.h> #include <linux/memory_hotplug.h> #include <linux/nmi.h> #include <linux/gfp.h>
@@ -895,8 +896,6 @@ const char *arch_vma_name(struct vm_area_struct *vma) }#ifdef CONFIG_X86_UV -#define MIN_MEMORY_BLOCK_SIZE (1 << SECTION_SIZE_BITS) -unsigned long memory_block_size_bytes (void ) {if (is_uv_system ()) {
drivers/base/memory.c +0 -1
@@ -30,7 +30,6 @@static DEFINE_MUTEX (mem_sysfs_mutex);#define MEMORY_CLASS_NAME "memory" -#define MIN_MEMORY_BLOCK_SIZE (1 << SECTION_SIZE_BITS)static int sections_per_block;
include/linux/memory.h +2 -0
@@ -20,6 +20,8 @@#include <linux/compiler.h> #include <linux/mutex.h> +#define MIN_MEMORY_BLOCK_SIZE (1 << SECTION_SIZE_BITS) +struct memory_block {unsigned long start_section_nr;unsigned long end_section_nr;
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 9 lines · Benjamin Herrenschmidt
The macro
MIN_MEMORY_BLOCK_SIZEis currently defined twice in two .c files, and I need it in a third one to fix a powerpc bug, so let's first move it into a headerSigned-off-by Benjamin Herrenschmidt <[email protected]>---
Ingo, Thomas: Who needs to ack the x86 bit ? I'd like to send that to Linus asap with the powerpc fix.
Anybody ? Allo ?
I'm happy to send that to Linus myself but I'd like at least on or two acks :-)
Cheers,
Ben.
Quoted 39 lines
arch/x86/mm/init_64.c +1
-2@@ -28,6 +28,7 @@#include <linux/poison.h> #include <linux/dma-mapping.h> #include <linux/module.h> +#include <linux/memory.h> #include <linux/memory_hotplug.h> #include <linux/nmi.h> #include <linux/gfp.h> @@ -895,8 +896,6 @@ const char *arch_vma_name(struct vm_area_struct *vma) }#ifdef CONFIG_X86_UV -#define MIN_MEMORY_BLOCK_SIZE (1 << SECTION_SIZE_BITS) -unsigned long memory_block_size_bytes (void ) {if (is_uv_system ()) {drivers/base/memory.c +0
-1@@ -30,7 +30,6 @@static DEFINE_MUTEX (mem_sysfs_mutex);#define MEMORY_CLASS_NAME "memory" -#define MIN_MEMORY_BLOCK_SIZE (1 << SECTION_SIZE_BITS)static int sections_per_block;include/linux/memory.h +0
-0
include/linux/memory.h line 27
Quoted 8 lines
include/linux/memory.h +2
-0@@ -20,6 +20,8 @@#include <linux/compiler.h> #include <linux/mutex.h> +#define MIN_MEMORY_BLOCK_SIZE (1 << SECTION_SIZE_BITS) +struct memory_block {unsigned long start_section_nr;unsigned long end_section_nr;
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 9 lines · Benjamin Herrenschmidt
The macro
MIN_MEMORY_BLOCK_SIZEis currently defined twice in two .c files, and I need it in a third one to fix a powerpc bug, so let's first move it into a headerSigned-off-by Benjamin Herrenschmidt <[email protected]>---
Ingo, Thomas: Who needs to ack the x86 bit ? I'd like to send that to Linus asap with the powerpc fix.
(btw., you can consider obvious cleanups as being implicitly acked by me and don't need to block fixes on me.)
Thanks,
Ingo
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 9 lines · Ingo Molnar
Quoted 7 lines · Benjamin Herrenschmidt
The macro
MIN_MEMORY_BLOCK_SIZEis currently defined twice in two .c files, and I need it in a third one to fix a powerpc bug, so let's first move it into a headerSigned-off-by Benjamin Herrenschmidt <[email protected]>---
Quoted 7 lines
Quoted 2 lines
Ingo, Thomas: Who needs to ack the x86 bit ? I'd like to send that to Linus asap with the powerpc fix.
Acked-by Ingo Molnar <[email protected]>(btw., you can consider obvious cleanups as being implicitly acked by me and don't need to block fixes on me.)
Ok thanks !
Cheers,
Ben.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>