This patch documents global variables exported from vmlinux.lds.
1) Add comments about usage guidelines for global variables exported
from vmlinux.lds.S.
2) Remove unused __initdata_begin[] and __initdata_end[].
Signed-off-by: Jiang Liu
Cc: Arnd Bergmann
Cc: linux-a...@vger.kernel.org
Cc:
Normalize global variables exported by vmlinux.lds to conform usage
guidelines from include/asm-generic/sections.h.
Use _text to mark the start of the kernel image including the head text,
and _stext to mark the start of the .text section.
Signed-off-by: Jiang Liu
Cc: Haavard Skinnemoen
Cc:
* Russ Anderson wrote:
> --- linux.orig/mm/page_alloc.c2013-03-19 16:09:03.736450861 -0500
> +++ linux/mm/page_alloc.c 2013-03-22 17:07:43.895405617 -0500
> @@ -4161,10 +4161,23 @@ int __meminit __early_pfn_to_nid(unsigne
> {
> unsigned long start_pfn, end_pfn;
> int i,
Prepare for removing num_physpages.
Signed-off-by: Jiang Liu
Cc: Wen Congyang
Cc: Tang Chen
Cc: Yasuaki Ishimatsu
Cc: linux...@kvack.org
Cc: linux-kernel@vger.kernel.org
---
mm/memory_hotplug.c |4
1 file changed, 4 deletions(-)
diff --git a/mm/memory_hotplug.c
Now all references to num_physpages have been removed, so kill it.
Signed-off-by: Jiang Liu
Cc: Mel Gorman
Cc: Michel Lespinasse
Cc: Rik van Riel
Cc: Jiang Liu
Cc: Hugh Dickins
Cc: David Rientjes
Cc: Al Viro
Cc: Konstantin Khlebnikov
Cc: linux...@kvack.org
Cc:
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Chris Zankel
Cc: Max Filippov
Cc: Geert Uytterhoeven
Cc: linux-xte...@linux-xtensa.org
Cc: linux-kernel@vger.kernel.org
---
arch/xtensa/mm/init.c | 27 ++-
1 file changed, 2
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: x...@kernel.org
Cc: Andreas Herrmann
Cc: Tang Chen
Cc: Wen Congyang
Cc: Jianguo Wu
Cc: linux-kernel@vger.kernel.org
---
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Jeff Dike
Cc: Richard Weinberger
Cc: user-mode-linux-de...@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org
---
arch/um/kernel/mem.c |4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Guan Xuetao
Cc: Michal Hocko
Cc: David Rientjes
Cc: linux-kernel@vger.kernel.org
---
arch/unicore32/mm/init.c | 49 ++
1 file changed, 2 insertions(+), 47
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Richard Kuo
Cc: linux-hexa...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/hexagon/mm/init.c |3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/hexagon/mm/init.c
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Geert Uytterhoeven
Cc: Greg Ungerer
Cc: linux-m...@lists.linux-m68k.org
Cc: linux-kernel@vger.kernel.org
---
arch/m68k/mm/init.c | 31 ++-
1 file changed, 2 insertions(+), 29
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Chen Liqin
Cc: Lennox Wu
Cc: linux-kernel@vger.kernel.org
---
arch/score/mm/init.c | 26 ++
1 file changed, 2 insertions(+), 24 deletions(-)
diff --git a/arch/score/mm/init.c
Prepare for removing num_physpages.
Signed-off-by: Jiang Liu
Cc: Wen Congyang
Cc: Tang Chen
Cc: Yasuaki Ishimatsu
Cc: linux...@kvack.org
Cc: linux-kernel@vger.kernel.org
---
mm/memory_hotplug.c |4
1 file changed, 4 deletions(-)
diff --git a/mm/memory_hotplug.c
Now all references to num_physpages have been removed, so kill it.
Signed-off-by: Jiang Liu
Cc: Mel Gorman
Cc: Michel Lespinasse
Cc: Rik van Riel
Cc: Jiang Liu
Cc: Hugh Dickins
Cc: David Rientjes
Cc: Al Viro
Cc: Konstantin Khlebnikov
Cc: linux...@kvack.org
Cc:
The global variable num_physpages is scheduled to be removed, so use
totalram_pages instead of num_physpages at runtime.
Signed-off-by: Jiang Liu
Cc: Miklos Szeredi
Cc: "David S. Miller"
Cc: Alexey Kuznetsov
Cc: James Morris
Cc: Hideaki YOSHIFUJI
Cc: Patrick McHardy
Cc:
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Chris Zankel
Cc: Max Filippov
Cc: Geert Uytterhoeven
Cc: linux-xte...@linux-xtensa.org
Cc: linux-kernel@vger.kernel.org
---
arch/xtensa/mm/init.c | 27 ++-
1 file changed, 2
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: x...@kernel.org
Cc: Andreas Herrmann
Cc: Tang Chen
Cc: Wen Congyang
Cc: Jianguo Wu
Cc: linux-kernel@vger.kernel.org
---
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Chris Zankel
Cc: Max Filippov
Cc: Geert Uytterhoeven
Cc: linux-xte...@linux-xtensa.org
Cc: linux-kernel@vger.kernel.org
---
arch/xtensa/mm/init.c | 27 ++-
1 file changed, 2
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: x...@kernel.org
Cc: Andreas Herrmann
Cc: Tang Chen
Cc: Wen Congyang
Cc: Jianguo Wu
Cc: linux-kernel@vger.kernel.org
---
>> I read the code as lockdep_assert(memcg_cache_mutex), and then later on
>> mutex_lock(_mutex). But reading again, that was a just an
>> rcu_read_lock(). Good thing it is Friday
>>
>> You guys can add my Acked-by, and thanks again
>
> Li, are you ok to take the page via your tree?
>
I don't
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Guan Xuetao
Cc: Michal Hocko
Cc: David Rientjes
Cc: linux-kernel@vger.kernel.org
---
arch/unicore32/mm/init.c | 49 ++
1 file changed, 2 insertions(+), 47
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Guan Xuetao
Cc: Michal Hocko
Cc: David Rientjes
Cc: linux-kernel@vger.kernel.org
---
arch/unicore32/mm/init.c | 49 ++
1 file changed, 2 insertions(+), 47
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Jeff Dike
Cc: Richard Weinberger
Cc: user-mode-linux-de...@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org
---
arch/um/kernel/mem.c |4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Jeff Dike
Cc: Richard Weinberger
Cc: user-mode-linux-de...@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org
---
arch/um/kernel/mem.c |4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Chris Metcalf
Cc: Bjorn Helgaas
Cc: "David S. Miller"
Cc: Wen Congyang
Cc: linux-kernel@vger.kernel.org
---
arch/tile/kernel/setup.c | 16
arch/tile/mm/init.c | 15
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Chris Metcalf
Cc: Bjorn Helgaas
Cc: "David S. Miller"
Cc: Wen Congyang
Cc: linux-kernel@vger.kernel.org
---
arch/tile/kernel/setup.c | 16
arch/tile/mm/init.c | 15
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: "David S. Miller"
Cc: Sam Ravnborg
Cc: Yasuaki Ishimatsu
Cc: Tang Chen
Cc: sparcli...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/sparc/kernel/leon_smp.c |3 ---
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: "David S. Miller"
Cc: Sam Ravnborg
Cc: Yasuaki Ishimatsu
Cc: Tang Chen
Cc: sparcli...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/sparc/kernel/leon_smp.c |3 ---
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Paul Mundt
Cc: Wen Congyang
Cc: Tang Chen
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/sh/mm/init.c | 25 -
1 file changed, 4 insertions(+), 21
>> Thanks for identifying and fixing this.
>>
>> Li is right. The cache name will live long, but this is because the
>> slab/slub caches will strdup it internally. So the actual memcg
>> allocation is short lived.
>
> OK, I have totally missed that. Sorry about the confusion. Then all the
> churn
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Paul Mundt
Cc: Wen Congyang
Cc: Tang Chen
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/sh/mm/init.c | 25 -
1 file changed, 4 insertions(+), 21
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Martin Schwidefsky
Cc: Heiko Carstens
Cc: linux...@de.ibm.com
Cc: linux-s...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/s390/mm/init.c | 17 ++---
1 file changed, 2
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Chen Liqin
Cc: Lennox Wu
Cc: linux-kernel@vger.kernel.org
---
arch/score/mm/init.c | 26 ++
1 file changed, 2 insertions(+), 24 deletions(-)
diff --git a/arch/score/mm/init.c
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Benjamin Herrenschmidt
Cc: Paul Mackerras
Cc: linuxppc-...@lists.ozlabs.org
Cc: linux-kernel@vger.kernel.org
---
arch/powerpc/mm/mem.c | 56 +++--
1 file
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Martin Schwidefsky
Cc: Heiko Carstens
Cc: linux...@de.ibm.com
Cc: linux-s...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/s390/mm/init.c | 17 ++---
1 file changed, 2
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: "James E.J. Bottomley"
Cc: Helge Deller
Cc: Thomas Gleixner
Cc: Michal Hocko
Cc: David Rientjes
Cc: linux-par...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/parisc/mm/init.c | 46
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Benjamin Herrenschmidt
Cc: Paul Mackerras
Cc: linuxppc-...@lists.ozlabs.org
Cc: linux-kernel@vger.kernel.org
---
arch/powerpc/mm/mem.c | 56 +++--
1 file
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: "James E.J. Bottomley"
Cc: Helge Deller
Cc: Thomas Gleixner
Cc: Michal Hocko
Cc: David Rientjes
Cc: linux-par...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/parisc/mm/init.c | 46
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Jonas Bonn
Cc: David Howells
Cc: Arnd Bergmann
Cc: li...@lists.openrisc.net
Cc: linux-kernel@vger.kernel.org
---
arch/openrisc/mm/init.c | 44
1 file
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Jonas Bonn
Cc: David Howells
Cc: Arnd Bergmann
Cc: li...@lists.openrisc.net
Cc: linux-kernel@vger.kernel.org
---
arch/openrisc/mm/init.c | 44
1 file
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: David Howells
Cc: Koichi Yasutake
Cc: linux-am33-l...@redhat.com
Cc: linux-kernel@vger.kernel.org
---
arch/mn10300/mm/init.c | 26 ++
1 file changed, 2 insertions(+), 24
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: David Howells
Cc: Koichi Yasutake
Cc: linux-am33-l...@redhat.com
Cc: linux-kernel@vger.kernel.org
---
arch/mn10300/mm/init.c | 26 ++
1 file changed, 2 insertions(+), 24
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Ralf Baechle
Cc: David Daney
Cc: Arnd Bergmann
Cc: Jiri Kosina
Cc: John Crispin
Cc: Greg Kroah-Hartman
Cc: Minchan Kim
Cc: linux-m...@linux-mips.org
Cc: linux-kernel@vger.kernel.org
---
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Ralf Baechle
Cc: David Daney
Cc: Arnd Bergmann
Cc: Jiri Kosina
Cc: John Crispin
Cc: Greg Kroah-Hartman
Cc: Minchan Kim
Cc: linux-m...@linux-mips.org
Cc: linux-kernel@vger.kernel.org
---
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Michal Simek
Cc: microblaze-ucli...@itee.uq.edu.au
Cc: linux-kernel@vger.kernel.org
---
arch/microblaze/mm/init.c | 51 ++---
1 file changed, 6 insertions(+), 45
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Michal Simek
Cc: microblaze-ucli...@itee.uq.edu.au
Cc: linux-kernel@vger.kernel.org
---
arch/microblaze/mm/init.c | 51 ++---
1 file changed, 6 insertions(+), 45
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Geert Uytterhoeven
Cc: Greg Ungerer
Cc: linux-m...@lists.linux-m68k.org
Cc: linux-kernel@vger.kernel.org
---
arch/m68k/mm/init.c | 31 ++-
1 file changed, 2 insertions(+), 29
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Hirokazu Takata
Cc: linux-m...@ml.linux-m32r.org
Cc: linux-m32r...@ml.linux-m32r.org
Cc: linux-kernel@vger.kernel.org
---
arch/m32r/mm/discontig.c |6 +-
arch/m32r/mm/init.c | 49
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Hirokazu Takata
Cc: linux-m...@ml.linux-m32r.org
Cc: linux-m32r...@ml.linux-m32r.org
Cc: linux-kernel@vger.kernel.org
---
arch/m32r/mm/discontig.c |6 +-
arch/m32r/mm/init.c | 49
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Tony Luck
Cc: Fenghua Yu
Cc: Andrew Morton
Cc: Zhang Yanfei
Cc: linux-i...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/ia64/mm/contig.c| 11 ---
arch/ia64/mm/discontig.c |
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Tony Luck
Cc: Fenghua Yu
Cc: Andrew Morton
Cc: Zhang Yanfei
Cc: linux-i...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/ia64/mm/contig.c| 11 ---
arch/ia64/mm/discontig.c |
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Richard Kuo
Cc: linux-hexa...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/hexagon/mm/init.c |3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/hexagon/mm/init.c
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Yoshinori Sato
Cc: Geert Uytterhoeven
Cc: linux-kernel@vger.kernel.org
---
arch/h8300/mm/init.c | 34 --
1 file changed, 8 insertions(+), 26 deletions(-)
diff --git
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Yoshinori Sato
Cc: Geert Uytterhoeven
Cc: linux-kernel@vger.kernel.org
---
arch/h8300/mm/init.c | 34 --
1 file changed, 8 insertions(+), 26 deletions(-)
diff --git
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: David Howells
Cc: Andi Kleen
Cc: Geert Uytterhoeven
Cc: Greg Kroah-Hartman
Cc: linux-kernel@vger.kernel.org
---
arch/frv/kernel/setup.c | 14 +++---
arch/frv/mm/init.c | 49
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Mikael Starvik
Cc: Jesper Nilsson
Cc: linux-cris-ker...@axis.com
Cc: linux-kernel@vger.kernel.org
---
arch/cris/mm/init.c | 33 ++---
1 file changed, 2 insertions(+), 31
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: David Howells
Cc: Andi Kleen
Cc: Geert Uytterhoeven
Cc: Greg Kroah-Hartman
Cc: linux-kernel@vger.kernel.org
---
arch/frv/kernel/setup.c | 14 +++---
arch/frv/mm/init.c | 49
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Mark Salter
Cc: Aurelien Jacquiot
Cc: linux-c6x-...@linux-c6x.org
Cc: linux-kernel@vger.kernel.org
---
arch/c6x/mm/init.c | 11 +--
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Mikael Starvik
Cc: Jesper Nilsson
Cc: linux-cris-ker...@axis.com
Cc: linux-kernel@vger.kernel.org
---
arch/cris/mm/init.c | 33 ++---
1 file changed, 2 insertions(+), 31
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Mark Salter
Cc: Aurelien Jacquiot
Cc: linux-c6x-...@linux-c6x.org
Cc: linux-kernel@vger.kernel.org
---
arch/c6x/mm/init.c | 11 +--
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Mike Frysinger
Cc: Bob Liu
Cc: uclinux-dist-de...@blackfin.uclinux.org
Cc: linux-kernel@vger.kernel.org
---
arch/blackfin/mm/init.c | 38 ++
1 file changed, 6
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Mike Frysinger
Cc: Bob Liu
Cc: uclinux-dist-de...@blackfin.uclinux.org
Cc: linux-kernel@vger.kernel.org
---
arch/blackfin/mm/init.c | 38 ++
1 file changed, 6
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Haavard Skinnemoen
Cc: Hans-Christian Egtvedt
Cc: linux-kernel@vger.kernel.org (open list)
---
arch/avr32/mm/init.c | 29 -
1 file changed, 4 insertions(+), 25 deletions(-)
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Haavard Skinnemoen
Cc: Hans-Christian Egtvedt
Cc: linux-kernel@vger.kernel.org (open list)
---
arch/avr32/mm/init.c | 29 -
1 file changed, 4 insertions(+), 25 deletions(-)
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Russell King
Cc: Catalin Marinas
Cc: Will Deacon
Cc: linux-arm-ker...@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
---
arch/arm64/mm/init.c | 48 +++-
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Russell King
Cc: Catalin Marinas
Cc: Will Deacon
Cc: linux-arm-ker...@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
---
arch/arm64/mm/init.c | 48 +++-
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Russell King
Cc: Catalin Marinas
Cc: Will Deacon
Cc: linux-arm-ker...@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
---
arch/arm/mm/init.c | 47 ++-
1
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Russell King
Cc: Catalin Marinas
Cc: Will Deacon
Cc: linux-arm-ker...@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
---
arch/arm/mm/init.c | 47 ++-
1
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Richard Henderson
Cc: Ivan Kokshaysky
Cc: Matt Turner
Cc: David Howells
Cc: linux-al...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/alpha/mm/init.c | 32 ++--
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Richard Henderson
Cc: Ivan Kokshaysky
Cc: Matt Turner
Cc: David Howells
Cc: linux-al...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/alpha/mm/init.c | 32 ++--
The global variable num_physpages is scheduled to be removed, so use
totalram_pages instead of num_physpages at runtime.
Signed-off-by: Jiang Liu
Cc: Miklos Szeredi
Cc: "David S. Miller"
Cc: Alexey Kuznetsov
Cc: James Morris
Cc: Hideaki YOSHIFUJI
Cc: Patrick McHardy
Cc:
Introduce helper function mem_init_print_info() to simplify mem_init()
across different architectures, which also unifies the format and
information printed.
Function mem_init_print_info() calculates memory statistics information
without walking each page, so it should be a little faster on some
Normalize global variables exported by vmlinux.lds to conform usage
guidelines from include/asm-generic/sections.h.
1) Use _text to mark the start of the kernel image including the head
text, and _stext to mark the start of the .text section.
2) Export mandatory global variables __bss_stop.
3)
Normalize global variables exported by vmlinux.lds to conform usage
guidelines from include/asm-generic/sections.h.
1) Use _text to mark the start of the kernel image including the head
text, and _stext to mark the start of the .text section.
2) Export mandatory global variables __init_begin and
Generate mandatory global variables _sdata in file vmlinux.lds.
Signed-off-by: Jiang Liu
Cc: Chen Liqin
Cc: Lennox Wu
Cc: linux-kernel@vger.kernel.org
---
arch/score/kernel/vmlinux.lds.S |1 +
1 file changed, 1 insertion(+)
diff --git a/arch/score/kernel/vmlinux.lds.S
The original goal of this patchset is to fix the bug reported by
https://bugzilla.kernel.org/show_bug.cgi?id=53501
Now it has also been expanded to reduce common code used by memory
initializion.
This is the last part, previous three patch sets could be accessed at:
Normalize global variables exported by vmlinux.lds to conform usage
guidelines from include/asm-generic/sections.h.
Use _text to mark the start of the kernel image including the head text,
and _stext to mark the start of the .text section.
This patch also fixes possible bugs due to current
Fredrik Tolf wrote:
> It is worth noting, also, that this seems to be a situation
> introduced somewhere between 2.6.26 and 2.6.32, because I started
> noticing it when I upgraded from Debian 5.0 to 6.0. I've since tried
> it on 3.2.0, 3.5.4 and 3.7.1, and it appears in every version.
> However,
On Sat, Mar 23, 2013 at 01:57:01PM -0400, Corey Richardson wrote:
> With the attached config, I get the following build failure:
>
> LD init/built-in.o
> drivers/built-in.o:clk-lpt.c:function v4l2_device_unregister: error:
> undefined reference to 'i2c_unregister_device'
I get following
Correct spelling typos.
Signed-off-by: Masanari Iida
---
Documentation/DocBook/media/dvb/dvbproperty.xml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Documentation/DocBook/media/dvb/dvbproperty.xml
b/Documentation/DocBook/media/dvb/dvbproperty.xml
index
fix for incorrect assignment of signed expression to unsigned variable.
Signed-off-by: Kumar Amit Mehta
---
drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
fix for incorrect assignment of signed expression to unsigned variable.
Signed-off-by: Kumar Amit Mehta gmate.a...@gmail.com
---
drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git
Correct spelling typos.
Signed-off-by: Masanari Iida standby2...@gmail.com
---
Documentation/DocBook/media/dvb/dvbproperty.xml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Documentation/DocBook/media/dvb/dvbproperty.xml
On Sat, Mar 23, 2013 at 01:57:01PM -0400, Corey Richardson wrote:
With the attached config, I get the following build failure:
LD init/built-in.o
drivers/built-in.o:clk-lpt.c:function v4l2_device_unregister: error:
undefined reference to 'i2c_unregister_device'
I get following with
Fredrik Tolf fred...@dolda2000.com wrote:
It is worth noting, also, that this seems to be a situation
introduced somewhere between 2.6.26 and 2.6.32, because I started
noticing it when I upgraded from Debian 5.0 to 6.0. I've since tried
it on 3.2.0, 3.5.4 and 3.7.1, and it appears in every
The original goal of this patchset is to fix the bug reported by
https://bugzilla.kernel.org/show_bug.cgi?id=53501
Now it has also been expanded to reduce common code used by memory
initializion.
This is the last part, previous three patch sets could be accessed at:
Normalize global variables exported by vmlinux.lds to conform usage
guidelines from include/asm-generic/sections.h.
Use _text to mark the start of the kernel image including the head text,
and _stext to mark the start of the .text section.
This patch also fixes possible bugs due to current
Generate mandatory global variables _sdata in file vmlinux.lds.
Signed-off-by: Jiang Liu jiang@huawei.com
Cc: Chen Liqin liqin.c...@sunplusct.com
Cc: Lennox Wu lennox...@gmail.com
Cc: linux-kernel@vger.kernel.org
---
arch/score/kernel/vmlinux.lds.S |1 +
1 file changed, 1 insertion(+)
Normalize global variables exported by vmlinux.lds to conform usage
guidelines from include/asm-generic/sections.h.
1) Use _text to mark the start of the kernel image including the head
text, and _stext to mark the start of the .text section.
2) Export mandatory global variables __init_begin and
Normalize global variables exported by vmlinux.lds to conform usage
guidelines from include/asm-generic/sections.h.
1) Use _text to mark the start of the kernel image including the head
text, and _stext to mark the start of the .text section.
2) Export mandatory global variables __bss_stop.
3)
Introduce helper function mem_init_print_info() to simplify mem_init()
across different architectures, which also unifies the format and
information printed.
Function mem_init_print_info() calculates memory statistics information
without walking each page, so it should be a little faster on some
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu jiang@huawei.com
Cc: Richard Henderson r...@twiddle.net
Cc: Ivan Kokshaysky i...@jurassic.park.msu.ru
Cc: Matt Turner matts...@gmail.com
Cc: David Howells dhowe...@redhat.com
Cc: linux-al...@vger.kernel.org
The global variable num_physpages is scheduled to be removed, so use
totalram_pages instead of num_physpages at runtime.
Signed-off-by: Jiang Liu jiang@huawei.com
Cc: Miklos Szeredi mik...@szeredi.hu
Cc: David S. Miller da...@davemloft.net
Cc: Alexey Kuznetsov kuz...@ms2.inr.ac.ru
Cc: James
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu jiang@huawei.com
Cc: Richard Henderson r...@twiddle.net
Cc: Ivan Kokshaysky i...@jurassic.park.msu.ru
Cc: Matt Turner matts...@gmail.com
Cc: David Howells dhowe...@redhat.com
Cc: linux-al...@vger.kernel.org
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu jiang@huawei.com
Cc: Russell King li...@arm.linux.org.uk
Cc: Catalin Marinas catalin.mari...@arm.com
Cc: Will Deacon will.dea...@arm.com
Cc: linux-arm-ker...@lists.infradead.org
Cc:
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu jiang@huawei.com
Cc: Russell King li...@arm.linux.org.uk
Cc: Catalin Marinas catalin.mari...@arm.com
Cc: Will Deacon will.dea...@arm.com
Cc: linux-arm-ker...@lists.infradead.org
Cc:
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu jiang@huawei.com
Cc: Russell King li...@arm.linux.org.uk
Cc: Catalin Marinas catalin.mari...@arm.com
Cc: Will Deacon will.dea...@arm.com
Cc: linux-arm-ker...@lists.infradead.org
Cc:
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu jiang@huawei.com
Cc: Russell King li...@arm.linux.org.uk
Cc: Catalin Marinas catalin.mari...@arm.com
Cc: Will Deacon will.dea...@arm.com
Cc: linux-arm-ker...@lists.infradead.org
Cc:
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu jiang@huawei.com
Cc: Haavard Skinnemoen hskinnem...@gmail.com
Cc: Hans-Christian Egtvedt egtv...@samfundet.no
Cc: linux-kernel@vger.kernel.org (open list)
---
arch/avr32/mm/init.c | 29
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu jiang@huawei.com
Cc: Haavard Skinnemoen hskinnem...@gmail.com
Cc: Hans-Christian Egtvedt egtv...@samfundet.no
Cc: linux-kernel@vger.kernel.org (open list)
---
arch/avr32/mm/init.c | 29
301 - 400 of 762 matches
Mail list logo