"Pick the right alignment default when creating dax devices" failed to build on powerpc
The linux-next commit "libnvdimm/dax: Pick the right alignment default when creating dax devices" causes powerpc failed to build with this config. Reverted it fixed the issue.
ERROR: "hash__has_transparent_hugepage" [drivers/nvdimm/libnvdimm.ko] undefined!
ERROR: "radix__has_transparent_hugepage" [drivers/nvdimm/libnvdimm.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:93: __modpost] Error 1
make: *** [Makefile:1305: modules] Error 2
[1] https://patchwork.kernel.org/patch/11133445/
[2] https://raw.githubusercontent.com/cailca/linux-mm/master/powerpc.config
Quoted 4 lines · Qian Cai
The linux-next commit "libnvdimm/dax: Pick the right alignment default when creating dax devices" causes powerpc failed to build with this config. Reverted it fixed the issue.
Quoted 8 lines
ERROR: "
hash__has_transparent_hugepage" [drivers/nvdimm/libnvdimm.ko] undefined!
ERROR: "radix__has_transparent_hugepage" [drivers/nvdimm/libnvdimm.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:93:__modpost] Error 1
make: *** [Makefile:1305: modules] Error 2[1] https://patchwork.kernel.org/patch/11133445/
[2] https://raw.githubusercontent.com/cailca/linux-mm/master/powerpc.config
Sorry for breaking the build. How about?
commit ea15fd8b5489e2c8e9f1b96d67248a7428ffb74a
Author: Aneesh Kumar K.V <[email protected]> Date: Fri Sep 20 19:47:56 2019 +0530
powerpc/book3s/nvdimm: Fix build error with nvdimm kernel module
Fix the below comiple error.
ERROR: "hash__has_transparent_hugepage" [drivers/nvdimm/libnvdimm.ko] undefined!
ERROR: "radix__has_transparent_hugepage" [drivers/nvdimm/libnvdimm.ko] undefined!
arch/powerpc/include/asm/book3s/64/radix.h +7 -1
@@ -254,7 +254,13 @@ extern void radix__pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp,extern pgtable_t radix__pgtable_trans_huge_withdraw (struct mm_struct *mm,pmd_t *pmdp);extern pmd_t radix__pmdp_huge_get_and_clear (struct mm_struct *mm,unsigned long addr,pmd_t *pmdp); -extern int radix__has_transparent_hugepage (void ); +static inline int radix__has_transparent_hugepage (void ) +{ +/* For radix 2M at PMD level means thp */ +if (mmu_psize_defs[MMU_PAGE_2M ].shift ==PMD_SHIFT ) +return 1 ; +return 0 ; +}#endif extern int __meminit radix__vmemmap_create_mapping(unsigned long start,
arch/powerpc/mm/book3s64/hash_pgtable.c +2 -0
@@ -406,6 +406,8 @@ int hash__has_transparent_hugepage(void) return 1; } +EXPORT_SYMBOL_GPL (hash__has_transparent_hugepage); +#endif /* CONFIG_TRANSPARENT_HUGEPAGE */ #ifdef CONFIG_STRICT_KERNEL_RWX
arch/powerpc/mm/book3s64/radix_pgtable.c +0 -7
@@ -1057,13 +1057,6 @@ pmd_t radix__pmdp_huge_get_and_clear(struct mm_struct *mm,return old_pmd; } -int radix__has_transparent_hugepage (void ) -{ -/* For radix 2M at PMD level means thp */ -if (mmu_psize_defs[MMU_PAGE_2M ].shift ==PMD_SHIFT ) -return 1 ; -return 0 ; -}#endif /* CONFIG_TRANSPARENT_HUGEPAGE */ void radix__ptep_set_access_flags(struct vm_area_struct *vma, pte_t *ptep,
Quoted 12 lines · Aneesh Kumar K.V
Quoted 10 lines · Qian Cai
The linux-next commit "libnvdimm/dax: Pick the right alignment default when creating dax devices" causes powerpc failed to build with this config. Reverted it fixed the issue.
ERROR: "
hash__has_transparent_hugepage" [drivers/nvdimm/libnvdimm.ko] undefined!
ERROR: "radix__has_transparent_hugepage" [drivers/nvdimm/libnvdimm.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:93:__modpost] Error 1
make: *** [Makefile:1305: modules] Error 2
Quoted 4 lines
Quoted 2 lines
[1] https://patchwork.kernel.org/patch/11133445/
[2] https://raw.githubusercontent.com/cailca/linux-mm/master/powerpc.configSorry for breaking the build. How about?
It works fine.
Quoted 64 lines
commit
ea15fd8b5489e2c8e9f1b96d67248a7428ffb74aAuthor: Aneesh Kumar K.V <[email protected]> Date: Fri Sep 20 19:47:56 2019 +0530powerpc/book3s/nvdimm: Fix build error with nvdimm kernel module
Fix the below comiple error.
ERROR: "
hash__has_transparent_hugepage" [drivers/nvdimm/libnvdimm.ko] undefined!
ERROR: "radix__has_transparent_hugepage" [drivers/nvdimm/libnvdimm.ko] undefined!Signed-off-by Aneesh Kumar K.V <[email protected]>arch/powerpc/include/asm/book3s/64/radix.h +7
-1@@ -254,7 +254,13 @@ extern void radix__pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp,extern pgtable_t radix__pgtable_trans_huge_withdraw (struct mm_struct *mm,pmd_t *pmdp);extern pmd_t radix__pmdp_huge_get_and_clear (struct mm_struct *mm,unsigned long addr,pmd_t *pmdp); -extern int radix__has_transparent_hugepage (void ); +static inline int radix__has_transparent_hugepage (void ) +{ +/* For radix 2M at PMD level means thp */ +if (mmu_psize_defs[MMU_PAGE_2M ].shift ==PMD_SHIFT ) +return 1 ; +return 0 ; +}#endif extern int __meminit radix__vmemmap_create_mapping(unsigned long start,arch/powerpc/mm/book3s64/hash_pgtable.c +2
-0@@ -406,6 +406,8 @@ int hash__has_transparent_hugepage(void) return 1; } +EXPORT_SYMBOL_GPL (hash__has_transparent_hugepage); +#endif /* CONFIG_TRANSPARENT_HUGEPAGE */ #ifdef CONFIG_STRICT_KERNEL_RWX arch/powerpc/mm/book3s64/radix_pgtable.c +0
-7@@ -1057,13 +1057,6 @@ pmd_t radix__pmdp_huge_get_and_clear(struct mm_struct *mm,return old_pmd; } -int radix__has_transparent_hugepage (void ) -{ -/* For radix 2M at PMD level means thp */ -if (mmu_psize_defs[MMU_PAGE_2M ].shift ==PMD_SHIFT ) -return 1 ; -return 0 ; -}#endif /* CONFIG_TRANSPARENT_HUGEPAGE */ void radix__ptep_set_access_flags(struct vm_area_struct *vma, pte_t *ptep,
Quoted 14 lines · Qian Cai
Quoted 12 lines · Aneesh Kumar K.V
Quoted 10 lines · Qian Cai
The linux-next commit "libnvdimm/dax: Pick the right alignment default when creating dax devices" causes powerpc failed to build with this config. Reverted it fixed the issue.
ERROR: "
hash__has_transparent_hugepage" [drivers/nvdimm/libnvdimm.ko] undefined!
ERROR: "radix__has_transparent_hugepage" [drivers/nvdimm/libnvdimm.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:93:__modpost] Error 1
make: *** [Makefile:1305: modules] Error 2
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
[1] https://patchwork.kernel.org/patch/11133445/
[2] https://raw.githubusercontent.com/cailca/linux-mm/master/powerpc.configSorry for breaking the build. How about?
It works fine.
Thanks, but let's delay "libnvdimm/dax: Pick the right alignment default when creating dax devices" until after -rc1 to allow Michael time to ack/nak this new export.
Michael Ellerman
Acked-byQuoted 23 lines · Dan Williams
Quoted 5 lines · Qian Cai
Quoted 3 lines · Aneesh Kumar K.V
Quoted 1 line · Qian Cai
The linux-next commit "libnvdimm/dax: Pick the right alignment
default when
Quoted 1 line
Quoted 1 line
Quoted 1 line
creating dax devices" causes powerpc failed to build with this
config. Reverted
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
it fixed the issue.
ERROR: "
hash__has_transparent_hugepage"[
drivers/nvdimm/libnvdimm.ko] undefined!Quoted 1 line
Quoted 1 line
Quoted 1 line
ERROR: "
radix__has_transparent_hugepage"[
drivers/nvdimm/libnvdimm.ko]Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
undefined!
make[1]: *** [scripts/Makefile.modpost:93:__modpost] Error 1
make: *** [Makefile:1305: modules] Error 2https://raw.githubusercontent.com/cailca/linux-mm/master/powerpc.config
Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Sorry for breaking the build. How about?
It works fine.
Thanks, but let's delay "libnvdimm/dax: Pick the right alignment default when creating dax devices" until after -rc1 to allow Michael time to ack/nak this new export.
Thanks Dan. It looks fine to me:
cheers
Signature · 1 line
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
Quoted 31 lines · Michael Ellerman
Quoted 27 lines · Dan Williams
Quoted 5 lines · Qian Cai
Quoted 3 lines · Aneesh Kumar K.V
Quoted 1 line · Qian Cai
The linux-next commit "libnvdimm/dax: Pick the right alignment
default when
Quoted 1 line
Quoted 1 line
Quoted 1 line
creating dax devices" causes powerpc failed to build with this
config. Reverted
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
it fixed the issue.
ERROR: "
hash__has_transparent_hugepage"[
drivers/nvdimm/libnvdimm.ko] undefined!Quoted 1 line
Quoted 1 line
Quoted 1 line
ERROR: "
radix__has_transparent_hugepage"[
drivers/nvdimm/libnvdimm.ko]Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
undefined!
make[1]: *** [scripts/Makefile.modpost:93:__modpost] Error 1
make: *** [Makefile:1305: modules] Error 2https://raw.githubusercontent.com/cailca/linux-mm/master/powerpc.config
Quoted 4 lines
Quoted 2 lines
Sorry for breaking the build. How about?
It works fine.
Quoted 7 lines
Quoted 3 lines
Thanks, but let's delay "libnvdimm/dax: Pick the right alignment default when creating dax devices" until after -rc1 to allow Michael time to ack/nak this new export.
Thanks Dan. It looks fine to me:
Acked-by Michael Ellerman <[email protected]>
Thanks Michael. Aneesh, care to resend with this ack, but also reword the changelog to say that this patch is a pre-requisite for the follow on patch to pick dax device alignment? In other words, lets hide this compile breakage from git-bisect by merging this export before the consumer patch.