mm: fix undefined reference to `.kernel_map_pages' on PPC builds
Subsystems (2)
PATCH 2/2 mm: fix undefined reference to `.kernel_map_pages' on PPC builds
It's possible to configure DEBUG_PAGEALLOC without PAGE_POISONING on ppc. Fix building the generic kernel_map_pages() implementation in this case:
LD init/built-in.omm/built-in.o: In function `free_pages_prepare':mm/page_alloc.c:770: undefined reference to .kernel_map_pages' mm/built-in.o: In function prep_new_page':mm/page_alloc.c:933: undefined reference to .kernel_map_pages' mm/built-in.o: In function map_pages':mm/compaction.c:61: undefined reference to `.kernel_map_pages'
make: *** [vmlinux] Error 1
--- mm/Makefile | 1 + 1 file changed, 1 insertion(+)
mm/Makefile +1 -0
@@ -46,6 +46,7 @@ obj-$(CONFIG_SLOB) += slob.o obj-$(CONFIG_MMU_NOTIFIER) += mmu_notifier.o obj-$(CONFIG_KSM) += ksm.o obj-$(CONFIG_PAGE_POISONING) += debug-pagealloc.o +obj-$(CONFIG_DEBUG_PAGEALLOC) += debug-pagealloc.o obj-$(CONFIG_SLAB) += slab.o obj-$(CONFIG_SLUB) += slub.o obj-$(CONFIG_KMEMCHECK) += kmemcheck.o
Signature · 7 lines
2.2.2 -- 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/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 23 lines · Kim Phillips
It's possible to configure
DEBUG_PAGEALLOCwithoutPAGE_POISONINGon ppc. Fix building the generickernel_map_pages()implementation in this case:LD
init/built-in.omm/built-in.o: In function `free_pages_prepare':mm/page_alloc.c:770: undefined reference to.kernel_map_pages' mm/built-in.o: In functionprep_new_page':mm/page_alloc.c:933: undefined reference to.kernel_map_pages' mm/built-in.o: In functionmap_pages':mm/compaction.c:61: undefined reference to `.kernel_map_pages'
make: *** [vmlinux] Error 1Signed-off-by Kim Phillips <[email protected]>--- mm/Makefile | 1 + 1 file changed, 1 insertion(+)mm/Makefile +0
-0
mm/Makefile obj-$(CONFIG_SLOB) += slob.o · line 49
Quoted 4 lines
mm/Makefile +1
-0@@ -46,6 +46,7 @@ obj-$(CONFIG_SLOB) += slob.o obj-$(CONFIG_MMU_NOTIFIER) += mmu_notifier.o obj-$(CONFIG_KSM) += ksm.o obj-$(CONFIG_PAGE_POISONING) += debug-pagealloc.o +obj-$(CONFIG_DEBUG_PAGEALLOC) += debug-pagealloc.o
Does it work correctly to list the same object file twice? Doesn't seem like it would. Shouldn't this do something like the following instead:
ifneq ($(CONFIG_DEBUG_PAGEALLOC)$(CONFIG_PAGE_POISONING),) obj-y += debug-pagealloc.o
endif
?
Quoted 6 lines
mm/Makefile +0
-0obj-$(CONFIG_SLAB) += slab.o obj-$(CONFIG_SLUB) += slub.o obj-$(CONFIG_KMEMCHECK) += kmemcheck.oSignature · 1 line
2.2.2
Andrew Morton
maintainerQuoted 32 lines · On Tue, 20 Jan 2015 15:01:50 -0800 [email protected] wrote:
Quoted 23 lines · Kim Phillips
It's possible to configure
DEBUG_PAGEALLOCwithoutPAGE_POISONINGon ppc. Fix building the generickernel_map_pages()implementation in this case:LD
init/built-in.omm/built-in.o: In function `free_pages_prepare':mm/page_alloc.c:770: undefined reference to.kernel_map_pages' mm/built-in.o: In functionprep_new_page':mm/page_alloc.c:933: undefined reference to.kernel_map_pages' mm/built-in.o: In functionmap_pages':mm/compaction.c:61: undefined reference to `.kernel_map_pages'
make: *** [vmlinux] Error 1Signed-off-by Kim Phillips <[email protected]>--- mm/Makefile | 1 + 1 file changed, 1 insertion(+)mm/Makefile +0
-0mm/Makefile obj-$(CONFIG_SLOB) += slob.o · line 49
Quoted 4 lines
mm/Makefile +1
-0@@ -46,6 +46,7 @@ obj-$(CONFIG_SLOB) += slob.o obj-$(CONFIG_MMU_NOTIFIER) += mmu_notifier.o obj-$(CONFIG_KSM) += ksm.o obj-$(CONFIG_PAGE_POISONING) += debug-pagealloc.o +obj-$(CONFIG_DEBUG_PAGEALLOC) += debug-pagealloc.oDoes it work correctly to list the same object file twice? Doesn't seem like it would. Shouldn't this do something like the following instead:
Quoted 4 lines
ifneq ($(CONFIG_DEBUG_PAGEALLOC)$(CONFIG_PAGE_POISONING),) obj-y += debug-pagealloc.o
endif
I expect it's a Kconfig problem. DEBUG_PAGEALLOC should be selecting PAGE_POISONING.
config DEBUG_PAGEALLOC
bool "Debug page memory allocations"
depends on DEBUG_KERNEL
depends on !HIBERNATION || ARCH_SUPPORTS_DEBUG_PAGEALLOC && !PPC && !SPARC depends on !KMEMCHECK
select PAGE_EXTENSION
select PAGE_POISONING if !ARCH_SUPPORTS_DEBUG_PAGEALLOC
Culprits cc'ed!
--
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/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
2015-01-21 9:07 GMT+09:00 Andrew Morton <[email protected]>:
Quoted 7 lines · On Tue, 20 Jan 2015 15:01:50 -0800 [email protected] wrote:
Quoted 6 lines · Kim Phillips
Quoted 4 lines
It's possible to configure
DEBUG_PAGEALLOCwithoutPAGE_POISONINGon ppc. Fix building the generickernel_map_pages()implementation in this case:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
LD
init/built-in.omm/built-in.o: In function `free_pages_prepare':mm/page_alloc.c:770: undefined reference to.kernel_map_pages' mm/built-in.o: In functionprep_new_page':mm/page_alloc.c:933: undefined reference to.kernel_map_pages' mm/built-in.o: In functionmap_pages':mm/compaction.c:61: undefined reference to `.kernel_map_pages'
make: *** [vmlinux] Error 1
kernel_map_pages() is static inline function since commit 031bc5743f15 ("mm/debug-pagealloc: make debug-pagealloc boottime configurable").
But there is old declaration in 'arch/powerpc/include/asm/cacheflush.h'. Removing it or changing s/kernel_map_pages/__kernel_map_pages/ in this header file or something can fix this problem?
The architecture which has ARCH_SUPPORTS_DEBUG_PAGEALLOC including PPC should not build mm/debug-pagealloc.o
--
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/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 20 lines · Akinobu Mita
2015-01-21 9:07 GMT+09:00 Andrew Morton <[email protected]>:
Quoted 7 lines · On Tue, 20 Jan 2015 15:01:50 -0800 [email protected] wrote:
Quoted 6 lines · Kim Phillips
Quoted 4 lines
It's possible to configure
DEBUG_PAGEALLOCwithoutPAGE_POISONINGon ppc. Fix building the generickernel_map_pages()implementation in this case:Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
LD
init/built-in.omm/built-in.o: In function `free_pages_prepare':mm/page_alloc.c:770: undefined reference to.kernel_map_pages' mm/built-in.o: In functionprep_new_page':mm/page_alloc.c:933: undefined reference to.kernel_map_pages' mm/built-in.o: In functionmap_pages':mm/compaction.c:61: undefined reference to `.kernel_map_pages'
make: *** [vmlinux] Error 1
kernel_map_pages()is static inline function since commit031bc5743f15("mm/debug-pagealloc: make debug-pagealloc boottime configurable").
Quoted 6 lines
But there is old declaration in '
arch/powerpc/include/asm/cacheflush.h'. Removing it or changing s/kernel_map_pages/__kernel_map_pages/ in this header file or something can fix this problem?The architecture which has
ARCH_SUPPORTS_DEBUG_PAGEALLOCincluding PPC should not buildmm/debug-pagealloc.o
Yes, architecture with ARCH_SUPPORTS_DEBUG_PAGEALLOC should not build mm/debug-pagealloc.o. I attach the patch to remove old declaration. I hope it will fix Kim's problem.
-------------->8------------------
Quoted 50 lines · On Thu, 22 Jan 2015 10:45:51 +0900 Joonsoo Kim <[email protected]> wrote:
Quoted 20 lines · Akinobu Mita
2015-01-21 9:07 GMT+09:00 Andrew Morton <[email protected]>:
Quoted 7 lines · On Tue, 20 Jan 2015 15:01:50 -0800 [email protected] wrote:
Quoted 6 lines · Kim Phillips
Quoted 4 lines
It's possible to configure
DEBUG_PAGEALLOCwithoutPAGE_POISONINGon ppc. Fix building the generickernel_map_pages()implementation in this case:Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
LD
init/built-in.omm/built-in.o: In function `free_pages_prepare':mm/page_alloc.c:770: undefined reference to.kernel_map_pages' mm/built-in.o: In functionprep_new_page':mm/page_alloc.c:933: undefined reference to.kernel_map_pages' mm/built-in.o: In functionmap_pages':mm/compaction.c:61: undefined reference to `.kernel_map_pages'
make: *** [vmlinux] Error 1
kernel_map_pages()is static inline function since commit031bc5743f15("mm/debug-pagealloc: make debug-pagealloc boottime configurable").Quoted 6 lines
But there is old declaration in '
arch/powerpc/include/asm/cacheflush.h'. Removing it or changing s/kernel_map_pages/__kernel_map_pages/ in this header file or something can fix this problem?The architecture which has
ARCH_SUPPORTS_DEBUG_PAGEALLOCincluding PPC should not buildmm/debug-pagealloc.oYes, architecture with
ARCH_SUPPORTS_DEBUG_PAGEALLOCshould not buildmm/debug-pagealloc.o. I attach the patch to remove old declaration. I hope it will fix Kim's problem.-------------->8------------------
From7cb9d1ed8a785df152cb8934e187031c8ebd1bb2Mon Sep 17 00:00:00 2001
From: Joonsoo Kim <[email protected]>
Date: Thu, 22 Jan 2015 10:28:58 +0900
Subject: [PATCH]mm/debug_pagealloc: fix build failure on ppc and some other
archsKim Phillips reported following build failure.
LD
init/built-in.o
mm/built-in.o: In function `free_pages_prepare':
mm/page_alloc.c:770: undefined reference to.kernel_map_pages' mm/built-in.o: In functionprep_new_page':
mm/page_alloc.c:933: undefined reference to.kernel_map_pages' mm/built-in.o: In functionmap_pages':
mm/compaction.c:61: undefined reference to `.kernel_map_pages'
make: *** [vmlinux] Error 1
Quoted 8 lines
Reason for this problem is that commit
031bc5743f15("mm/debug-pagealloc: make debug-pagealloc boottime configurable") forgot to remove old declaration ofkernel_map_pages()in some architectures. This patch removes them to fix build failure.Reported-by Kim Phillips <[email protected]>Signed-off-by Joonsoo Kim <[email protected]>---
Thanks. Now I get this:
LD init/built-in.omm/built-in.o: In function `kernel_map_pages':include/linux/mm.h:2076: undefined reference to .__kernel_map_pages' include/linux/mm.h:2076: undefined reference to .__kernel_map_pages' include/linux/mm.h:2076: undefined reference to `.__kernel_map_pages' Makefile:925: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
but, AFAICT, that's not because this patch is invalid: it's because __kernel_map_pages() isn't implemented in arch/powerpc/mm/pgtable_64.c, i.e., for non-PPC_STD_MMU_64 PPC64 machines.
Kim
--
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/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
2015-01-23 5:41 GMT+09:00 Kim Phillips <[email protected]>:
Quoted 72 lines
Quoted 50 lines · On Thu, 22 Jan 2015 10:45:51 +0900 Joonsoo Kim <[email protected]> wrote:
Quoted 20 lines · Akinobu Mita
2015-01-21 9:07 GMT+09:00 Andrew Morton <[email protected]>:
Quoted 7 lines · On Tue, 20 Jan 2015 15:01:50 -0800 [email protected] wrote:
Quoted 6 lines · Kim Phillips
Quoted 4 lines
It's possible to configure
DEBUG_PAGEALLOCwithoutPAGE_POISONINGon ppc. Fix building the generickernel_map_pages()implementation in this case:Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
LD
init/built-in.omm/built-in.o: In function `free_pages_prepare':mm/page_alloc.c:770: undefined reference to.kernel_map_pages' mm/built-in.o: In functionprep_new_page':mm/page_alloc.c:933: undefined reference to.kernel_map_pages' mm/built-in.o: In functionmap_pages':mm/compaction.c:61: undefined reference to `.kernel_map_pages'
make: *** [vmlinux] Error 1
kernel_map_pages()is static inline function since commit031bc5743f15("mm/debug-pagealloc: make debug-pagealloc boottime configurable").Quoted 6 lines
But there is old declaration in '
arch/powerpc/include/asm/cacheflush.h'. Removing it or changing s/kernel_map_pages/__kernel_map_pages/ in this header file or something can fix this problem?The architecture which has
ARCH_SUPPORTS_DEBUG_PAGEALLOCincluding PPC should not buildmm/debug-pagealloc.oYes, architecture with
ARCH_SUPPORTS_DEBUG_PAGEALLOCshould not buildmm/debug-pagealloc.o. I attach the patch to remove old declaration. I hope it will fix Kim's problem.-------------->8------------------
From7cb9d1ed8a785df152cb8934e187031c8ebd1bb2Mon Sep 17 00:00:00 2001
From: Joonsoo Kim <[email protected]>
Date: Thu, 22 Jan 2015 10:28:58 +0900
Subject: [PATCH]mm/debug_pagealloc: fix build failure on ppc and some other
archsKim Phillips reported following build failure.
LD
init/built-in.o
mm/built-in.o: In function `free_pages_prepare':
mm/page_alloc.c:770: undefined reference to.kernel_map_pages' mm/built-in.o: In functionprep_new_page':
mm/page_alloc.c:933: undefined reference to.kernel_map_pages' mm/built-in.o: In functionmap_pages':
mm/compaction.c:61: undefined reference to `.kernel_map_pages'
make: *** [vmlinux] Error 1Quoted 8 lines
Reason for this problem is that commit
031bc5743f15("mm/debug-pagealloc: make debug-pagealloc boottime configurable") forgot to remove old declaration ofkernel_map_pages()in some architectures. This patch removes them to fix build failure.Reported-by Kim Phillips <[email protected]>Signed-off-by Joonsoo Kim <[email protected]>---
Thanks. Now I get this:
LD
init/built-in.omm/built-in.o: In function `kernel_map_pages':include/linux/mm.h:2076: undefined reference to.__kernel_map_pages' include/linux/mm.h:2076: undefined reference to.__kernel_map_pages'include/linux/mm.h:2076: undefined reference to `.__kernel_map_pages' Makefile:925: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
Quoted 4 lines
but, AFAICT, that's not because this patch is invalid: it's because
__kernel_map_pages()isn't implemented inarch/powerpc/mm/pgtable_64.c, i.e., for non-PPC_STD_MMU_64 PPC64 machines.
Then, in order to use generic __kernel_map_pages() in mm/debug-pagealloc.c, CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC shouldn't be selected in arch/powerpc/Kconfig, when CONFIG_PPC_STD_MMU_64 isn't defined.
--
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/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 11 lines · On Fri, 23 Jan 2015 08:49:36 +0900 Akinobu Mita <[email protected]> wrote:
2015-01-23 5:41 GMT+09:00 Kim Phillips <[email protected]>:
Quoted 10 lines
Thanks. Now I get this:
LD
init/built-in.omm/built-in.o: In function `kernel_map_pages':include/linux/mm.h:2076: undefined reference to.__kernel_map_pages' include/linux/mm.h:2076: undefined reference to.__kernel_map_pages'include/linux/mm.h:2076: undefined reference to `.__kernel_map_pages' Makefile:925: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
Quoted 8 lines
Quoted 4 lines
but, AFAICT, that's not because this patch is invalid: it's because
__kernel_map_pages()isn't implemented inarch/powerpc/mm/pgtable_64.c, i.e., for non-PPC_STD_MMU_64 PPC64 machines.Then, in order to use generic
__kernel_map_pages()inmm/debug-pagealloc.c,CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOCshouldn't be selected inarch/powerpc/Kconfig, whenCONFIG_PPC_STD_MMU_64isn't defined.
Thanks. I'm still build-testing this now:
Michael Ellerman
reviewerQuoted 31 lines · Kim Phillips
Quoted 11 lines · On Fri, 23 Jan 2015 08:49:36 +0900 Akinobu Mita <[email protected]> wrote:
2015-01-23 5:41 GMT+09:00 Kim Phillips <[email protected]>:
Quoted 10 lines
Thanks. Now I get this:
LD
init/built-in.omm/built-in.o: In function `kernel_map_pages':include/linux/mm.h:2076: undefined reference to.__kernel_map_pages' include/linux/mm.h:2076: undefined reference to.__kernel_map_pages'include/linux/mm.h:2076: undefined reference to `.__kernel_map_pages' Makefile:925: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1Quoted 8 lines
Quoted 4 lines
but, AFAICT, that's not because this patch is invalid: it's because
__kernel_map_pages()isn't implemented inarch/powerpc/mm/pgtable_64.c, i.e., for non-PPC_STD_MMU_64 PPC64 machines.Then, in order to use generic
__kernel_map_pages()inmm/debug-pagealloc.c,CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOCshouldn't be selected inarch/powerpc/Kconfig, whenCONFIG_PPC_STD_MMU_64isn't defined.Thanks. I'm still build-testing this now:
From
082911ee947246ff962ef21863c45ec467455c40Mon Sep 17 00:00:00 2001
From: Kim Phillips <[email protected]>
Date: Thu, 22 Jan 2015 20:42:40 -0600
Subject: [PATCH v2] mm: fix undefined reference to `.__kernel_map_pages' on FSL
PPC64
Quoted 3 lines
arch/powerpchas__kernel_map_pagesimplementations inmm/pgtable_32.c, andmm/hash_utils_64.c, of which the former is built for PPC32, and the latter PPC64's withoutPPC_STD_MMU.
That last part is wrong.
hash_utils_64.c is built for CONFIG_PPC_STD_MMU_64, which is:
config PPC_STD_MMU_64
def_bool y depends on PPC_STD_MMU && PPC64
The problem is when you have PPC64 && !PPC_STD_MMU.
cheers
PATCH v3 1/1 powerpc/mm: fix undefined reference to `.__kernel_map_pages' on FSL PPC64
arch/powerpc has __kernel_map_pages implementations in mm/pgtable_32.c, and mm/hash_utils_64.c, of which the former is built for PPC32, and the latter for PPC64 machines with PPC_STD_MMU. Fix arch/powerpc/Kconfig to not select ARCH_SUPPORTS_DEBUG_PAGEALLOC when CONFIG_PPC_STD_MMU_64 isn't defined, i.e., for 64-bit book3e builds to use the generic __kernel_map_pages() in mm/debug-pagealloc.c.
LD init/built-in.omm/built-in.o: In function `kernel_map_pages':include/linux/mm.h:2076: undefined reference to .__kernel_map_pages' include/linux/mm.h:2076: undefined reference to .__kernel_map_pages' include/linux/mm.h:2076: undefined reference to `.__kernel_map_pages' Makefile:925: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
---
v3:
- fix wording for hash_utils_64.c implementation pointed out by Michael Ellerman
- changed designation from 'mm:' to 'powerpc/mm:', as I think this now belongs in ppc-land
v2:
- corrected SUPPORTS_DEBUG_PAGEALLOC selection to enable non-STD_MMU_64 builds to use the generic __kernel_map_pages().
depends on:
From: Joonsoo Kim <[email protected]>
Date: Thu, 22 Jan 2015 10:28:58 +0900
Subject: [PATCH] mm/debug_pagealloc: fix build failure on ppc and some other archs
arch/powerpc/Kconfig | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/Kconfig +1 -0
@@ -256,6 +256,7 @@ config PPC_OF_PLATFORM_PCI default n config ARCH_SUPPORTS_DEBUG_PAGEALLOC + depends on PPC32 || PPC_STD_MMU_64 def_bool y config ARCH_SUPPORTS_UPROBES
Signature · 7 lines
2.2.2 -- 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/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Michael Ellerman
reviewerRe: [PATCH v3] powerpc/mm: fix undefined reference to `.__kernel_map_pages' on FSL PPC64
Quoted 23 lines · Kim Phillips
arch/powerpchas__kernel_map_pagesimplementations inmm/pgtable_32.c, andmm/hash_utils_64.c, of which the former is built for PPC32, and the latter for PPC64 machines withPPC_STD_MMU. Fixarch/powerpc/Kconfigto not selectARCH_SUPPORTS_DEBUG_PAGEALLOCwhenCONFIG_PPC_STD_MMU_64isn't defined, i.e., for 64-bit book3e builds to use the generic__kernel_map_pages()inmm/debug-pagealloc.c.LD
init/built-in.omm/built-in.o: In function `kernel_map_pages':include/linux/mm.h:2076: undefined reference to.__kernel_map_pages' include/linux/mm.h:2076: undefined reference to.__kernel_map_pages'include/linux/mm.h:2076: undefined reference to `.__kernel_map_pages' Makefile:925: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1Signed-off-by Kim Phillips <[email protected]>---
v3:
- fix wording forhash_utils_64.cimplementation pointed out by Michael Ellerman
- changed designation from 'mm:' to 'powerpc/mm:', as I think this now belongs in ppc-land
Quoted 3 lines
v2:
- correctedSUPPORTS_DEBUG_PAGEALLOCselection to enable non-STD_MMU_64 builds to use the generic__kernel_map_pages().
I'd be happy to take this through the powerpc tree for 3.20, but for this:
Quoted 4 lines
depends on:
From: Joonsoo Kim <[email protected]>
Date: Thu, 22 Jan 2015 10:28:58 +0900
Subject: [PATCH]mm/debug_pagealloc: fix build failure on ppc and some other archs
I don't have that patch in my tree.
But in what way does this patch depend on that one?
It looks to me like it'd be safe to take this on its own, or am I wrong?
cheers
Re: [PATCH v3] powerpc/mm: fix undefined reference to `.__kernel_map_pages' on FSL PPC64
2015-01-28 10:01 GMT+09:00 Michael Ellerman <[email protected]>:
Quoted 35 lines · Kim Phillips
Quoted 23 lines
arch/powerpchas__kernel_map_pagesimplementations inmm/pgtable_32.c, andmm/hash_utils_64.c, of which the former is built for PPC32, and the latter for PPC64 machines withPPC_STD_MMU. Fixarch/powerpc/Kconfigto not selectARCH_SUPPORTS_DEBUG_PAGEALLOCwhenCONFIG_PPC_STD_MMU_64isn't defined, i.e., for 64-bit book3e builds to use the generic__kernel_map_pages()inmm/debug-pagealloc.c.LD
init/built-in.omm/built-in.o: In function `kernel_map_pages':include/linux/mm.h:2076: undefined reference to.__kernel_map_pages' include/linux/mm.h:2076: undefined reference to.__kernel_map_pages'include/linux/mm.h:2076: undefined reference to `.__kernel_map_pages' Makefile:925: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1Signed-off-by Kim Phillips <[email protected]>---
v3:
- fix wording forhash_utils_64.cimplementation pointed out by Michael Ellerman
- changed designation from 'mm:' to 'powerpc/mm:', as I think this now belongs in ppc-landQuoted 3 lines
v2:
- correctedSUPPORTS_DEBUG_PAGEALLOCselection to enable non-STD_MMU_64 builds to use the generic__kernel_map_pages().I'd be happy to take this through the powerpc tree for 3.20, but for this:
Quoted 4 lines
depends on:
From: Joonsoo Kim <[email protected]>
Date: Thu, 22 Jan 2015 10:28:58 +0900
Subject: [PATCH]mm/debug_pagealloc: fix build failure on ppc and some other archs
Quoted 6 lines
I don't have that patch in my tree.
But in what way does this patch depend on that one?
It looks to me like it'd be safe to take this on its own, or am I wrong?
Hello,
These two patches are merged to Andrew's tree now.
Thanks.
--
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/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Andrew Morton
maintainerRe: [PATCH v3] powerpc/mm: fix undefined reference to `.__kernel_map_pages' on FSL PPC64
Quoted 38 lines · On Wed, 28 Jan 2015 10:33:59 +0900 Joonsoo Kim <[email protected]> wrote:
2015-01-28 10:01 GMT+09:00 Michael Ellerman <[email protected]>:
Quoted 37 lines · Kim Phillips
Quoted 23 lines
arch/powerpchas__kernel_map_pagesimplementations inmm/pgtable_32.c, andmm/hash_utils_64.c, of which the former is built for PPC32, and the latter for PPC64 machines withPPC_STD_MMU. Fixarch/powerpc/Kconfigto not selectARCH_SUPPORTS_DEBUG_PAGEALLOCwhenCONFIG_PPC_STD_MMU_64isn't defined, i.e., for 64-bit book3e builds to use the generic__kernel_map_pages()inmm/debug-pagealloc.c.LD
init/built-in.omm/built-in.o: In function `kernel_map_pages':include/linux/mm.h:2076: undefined reference to.__kernel_map_pages' include/linux/mm.h:2076: undefined reference to.__kernel_map_pages'include/linux/mm.h:2076: undefined reference to `.__kernel_map_pages' Makefile:925: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1Signed-off-by Kim Phillips <[email protected]>---
v3:
- fix wording forhash_utils_64.cimplementation pointed out by Michael Ellerman
- changed designation from 'mm:' to 'powerpc/mm:', as I think this now belongs in ppc-landQuoted 3 lines
v2:
- correctedSUPPORTS_DEBUG_PAGEALLOCselection to enable non-STD_MMU_64 builds to use the generic__kernel_map_pages().I'd be happy to take this through the powerpc tree for 3.20, but for this:
Quoted 4 lines
depends on:
From: Joonsoo Kim <[email protected]>
Date: Thu, 22 Jan 2015 10:28:58 +0900
Subject: [PATCH]mm/debug_pagealloc: fix build failure on ppc and some other archsI don't have that patch in my tree.
Quoted 8 lines
Quoted 4 lines
But in what way does this patch depend on that one?
It looks to me like it'd be safe to take this on its own, or am I wrong?
Hello,
These two patches are merged to Andrew's tree now.
That didn't answer either of Michael's questions ;)
Yes, I think they're independent. I was holding off on the powerpc one, waiting to see if it popped up in linux-next via your tree. I can merge both if you like?
--
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/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Michael Ellerman
reviewerRe: [PATCH v3] powerpc/mm: fix undefined reference to `.__kernel_map_pages' on FSL PPC64
Quoted 21 lines · Andrew Morton
Quoted 19 lines · On Wed, 28 Jan 2015 10:33:59 +0900 Joonsoo Kim <[email protected]> wrote:
2015-01-28 10:01 GMT+09:00 Michael Ellerman <[email protected]>:
Quoted 10 lines · Kim Phillips
Quoted 1 line
arch/powerpchas__kernel_map_pagesimplementations inmm/pgtable_32.c, andI'd be happy to take this through the powerpc tree for 3.20, but for this:
Quoted 4 lines
depends on:
From: Joonsoo Kim <[email protected]>
Date: Thu, 22 Jan 2015 10:28:58 +0900
Subject: [PATCH]mm/debug_pagealloc: fix build failure on ppc and some other archsQuoted 5 lines
I don't have that patch in my tree.
But in what way does this patch depend on that one?
It looks to me like it'd be safe to take this on its own, or am I wrong?
Hello,
Quoted 7 lines
Quoted 1 line
These two patches are merged to Andrew's tree now.
That didn't answer either of Michael's questions ;)
Yes, I think they're independent. I was holding off on the powerpc one, waiting to see if it popped up in linux-next via your tree. I can merge both if you like?
Right, I didn't think I'd seen it in your tree :)
I'm happy to take this one, saves a possible merge conflict.
cheers
Re: [PATCH v3] powerpc/mm: fix undefined reference to `.__kernel_map_pages' on FSL PPC64
Quoted 20 lines · On Wed, 28 Jan 2015 14:22:02 +1100 Michael Ellerman <[email protected]> wrote:
Quoted 19 lines · Andrew Morton
Quoted 17 lines · On Wed, 28 Jan 2015 10:33:59 +0900 Joonsoo Kim <[email protected]> wrote:
2015-01-28 10:01 GMT+09:00 Michael Ellerman <[email protected]>:
Quoted 15 lines · Kim Phillips
Quoted 1 line
arch/powerpchas__kernel_map_pagesimplementations inmm/pgtable_32.c, andI'd be happy to take this through the powerpc tree for 3.20, but for this:
Quoted 4 lines
depends on:
From: Joonsoo Kim <[email protected]>
Date: Thu, 22 Jan 2015 10:28:58 +0900
Subject: [PATCH]mm/debug_pagealloc: fix build failure on ppc and some other archsI don't have that patch in my tree.
But in what way does this patch depend on that one?
It looks to me like it'd be safe to take this on its own, or am I wrong?
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Hello,
These two patches are merged to Andrew's tree now.
That didn't answer either of Michael's questions ;)
Yes, I think they're independent. I was holding off on the powerpc
sorry - my bad, they are indeed completely independent.
Quoted 6 lines
Quoted 2 lines
one, waiting to see if it popped up in linux-next via your tree. I can merge both if you like?
Right, I didn't think I'd seen it in your tree :)
I'm happy to take this one, saves a possible merge conflict.
I'm fine either way (I work on linux-next).
Kim
--
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/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Michael Ellerman
reviewerRe: [PATCH v3] powerpc/mm: fix undefined reference to `.__kernel_map_pages' on FSL PPC64
Quoted 25 lines · Kim Phillips
Quoted 22 lines · On Wed, 28 Jan 2015 14:22:02 +1100 Michael Ellerman <[email protected]> wrote:
Quoted 21 lines · Andrew Morton
Quoted 19 lines · On Wed, 28 Jan 2015 10:33:59 +0900 Joonsoo Kim <[email protected]> wrote:
2015-01-28 10:01 GMT+09:00 Michael Ellerman <[email protected]>:
Quoted 10 lines · Kim Phillips
Quoted 1 line
arch/powerpchas__kernel_map_pagesimplementations inmm/pgtable_32.c, andI'd be happy to take this through the powerpc tree for 3.20, but for this:
Quoted 4 lines
depends on:
From: Joonsoo Kim <[email protected]>
Date: Thu, 22 Jan 2015 10:28:58 +0900
Subject: [PATCH]mm/debug_pagealloc: fix build failure on ppc and some other archsQuoted 5 lines
I don't have that patch in my tree.
But in what way does this patch depend on that one?
It looks to me like it'd be safe to take this on its own, or am I wrong?
Hello,
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
These two patches are merged to Andrew's tree now.
That didn't answer either of Michael's questions ;)
Yes, I think they're independent. I was holding off on the powerpc
sorry - my bad, they are indeed completely independent.
No worries.
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
one, waiting to see if it popped up in linux-next via your tree. I can merge both if you like?
Right, I didn't think I'd seen it in your tree :)
I'm happy to take this one, saves a possible merge conflict.
I'm fine either way (I work on linux-next).
Cool. It's in my next as of now, so should be in linux-next tomorrow (30th).
cheers
Kim Phillips
Acked-byQuoted 17 lines · On Thu, 22 Jan 2015 10:45:51 +0900 Joonsoo Kim <[email protected]> wrote:
From
7cb9d1ed8a785df152cb8934e187031c8ebd1bb2Mon Sep 17 00:00:00 2001
From: Joonsoo Kim <[email protected]>
Date: Thu, 22 Jan 2015 10:28:58 +0900
Subject: [PATCH]mm/debug_pagealloc: fix build failure on ppc and some other
archsKim Phillips reported following build failure.
LD
init/built-in.o
mm/built-in.o: In function `free_pages_prepare':
mm/page_alloc.c:770: undefined reference to.kernel_map_pages' mm/built-in.o: In functionprep_new_page':
mm/page_alloc.c:933: undefined reference to.kernel_map_pages' mm/built-in.o: In functionmap_pages':
mm/compaction.c:61: undefined reference to `.kernel_map_pages'
make: *** [vmlinux] Error 1
Quoted 8 lines
Reason for this problem is that commit
031bc5743f15("mm/debug-pagealloc: make debug-pagealloc boottime configurable") forgot to remove old declaration ofkernel_map_pages()in some architectures. This patch removes them to fix build failure.Reported-by Kim Phillips <[email protected]>Signed-off-by Joonsoo Kim <[email protected]>---
Thanks,
Kim
--
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/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 50 lines · Joonsoo Kim
Quoted 20 lines · Akinobu Mita
2015-01-21 9:07 GMT+09:00 Andrew Morton <[email protected]>:
Quoted 7 lines · On Tue, 20 Jan 2015 15:01:50 -0800 [email protected] wrote:
Quoted 6 lines · Kim Phillips
Quoted 4 lines
It's possible to configure
DEBUG_PAGEALLOCwithoutPAGE_POISONINGon ppc. Fix building the generickernel_map_pages()implementation in this case:Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
LD
init/built-in.omm/built-in.o: In function `free_pages_prepare':mm/page_alloc.c:770: undefined reference to.kernel_map_pages' mm/built-in.o: In functionprep_new_page':mm/page_alloc.c:933: undefined reference to.kernel_map_pages' mm/built-in.o: In functionmap_pages':mm/compaction.c:61: undefined reference to `.kernel_map_pages'
make: *** [vmlinux] Error 1
kernel_map_pages()is static inline function since commit031bc5743f15("mm/debug-pagealloc: make debug-pagealloc boottime configurable").Quoted 6 lines
But there is old declaration in '
arch/powerpc/include/asm/cacheflush.h'. Removing it or changing s/kernel_map_pages/__kernel_map_pages/ in this header file or something can fix this problem?The architecture which has
ARCH_SUPPORTS_DEBUG_PAGEALLOCincluding PPC should not buildmm/debug-pagealloc.oYes, architecture with
ARCH_SUPPORTS_DEBUG_PAGEALLOCshould not buildmm/debug-pagealloc.o. I attach the patch to remove old declaration. I hope it will fix Kim's problem.-------------->8------------------
Quoted 1 line
From
7cb9d1ed8a785df152cb8934e187031c8ebd1bb2Mon Sep 17 00:00:00 2001From: Joonsoo Kim <[email protected]>
Date: Thu, 22 Jan 2015 10:28:58 +0900
Subject: [PATCH]mm/debug_pagealloc: fix build failure on ppc and some other
archsKim Phillips reported following build failure.
LD
init/built-in.o
mm/built-in.o: In function `free_pages_prepare':
mm/page_alloc.c:770: undefined reference to.kernel_map_pages' mm/built-in.o: In functionprep_new_page':
mm/page_alloc.c:933: undefined reference to.kernel_map_pages' mm/built-in.o: In functionmap_pages':
mm/compaction.c:61: undefined reference to `.kernel_map_pages'
make: *** [vmlinux] Error 1
Quoted 7 lines
Reason for this problem is that commit
031bc5743f15("mm/debug-pagealloc: make debug-pagealloc boottime configurable") forgot to remove old declaration ofkernel_map_pages()in some architectures. This patch removes them to fix build failure.Reported-by Kim Phillips <[email protected]>Signed-off-by Joonsoo Kim <[email protected]>
Hello, Andrew.
Could you take this patch?
This patch is also needed to fix build failure.
Thanks.
--
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/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>