linux-next: build failure after merge of the akpm-current tree
Subsystems (2)
Hi all,
After merging the akpm-current tree, today's linux-next build (sparc defconfig) failed like this:
In file included from include/linux/mm.h:32:0,
from include/linux/memblock.h:13,
from arch/sparc/mm/srmmu.c:14:
include/linux/pgtable.h:74:27: error: redefinition of 'pte_offset_kernel'
#define pte_offset_kernel pte_offset_kernel
^
arch/sparc/mm/srmmu.c:144:8: note: in expansion of macro 'pte_offset_kernel'
pte_t *pte_offset_kernel(pmd_t *dir, unsigned long address)
^~~~~~~~~~~~~~~~~
include/linux/pgtable.h:70:22: note: previous definition of 'pte_offset_kernel' was here
static inline pte_t *pte_offset_kernel(pmd_t *pmd, unsigned long address)
^~~~~~~~~~~~~~~~~Caused by commit
292aa65ed13a ("mm: consolidate pte_index() and pte_offset_*() definitions")
I used the (missing part of the) patch from next-20200608:
From: Stephen Rothwell <[email protected]>
Date: Tue, 9 Jun 2020 22:36:14 +1000
Subject: [PATCH] update sparc32 for "mm: consolidate pte_index() and
pte_offset_*() definitions"
--- arch/sparc/mm/srmmu.c | 10 ---------- 1 file changed, 10 deletions(-)
arch/sparc/mm/srmmu.c +0 -10
@@ -140,16 +140,6 @@ void pmd_set(pmd_t *pmdp, pte_t *ptep)set_pte ((pte_t *)&pmd_val (*pmdp),__pte (SRMMU_ET_PTD | ptp)); } -/* Find an entry in the third-level page table.. */ -pte_t *pte_offset_kernel (pmd_t *dir,unsigned long address) -{ -void *pte; - - pte =__nocache_va ((pmd_val (*dir) &SRMMU_PTD_PMASK ) <<4 ); -return (pte_t *) pte + - ((address >>PAGE_SHIFT ) & (PTRS_PER_PTE -1 )); -} -/* * size: bytes to allocate in the nocache area. * align: bytes, number to align at.
Signature · 5 lines
2.26.2 -- Cheers, Stephen Rothwell
Hi all,
Quoted 17 lines · On Tue, 9 Jun 2020 22:42:52 +1000 Stephen Rothwell <[email protected]> wrote:
After merging the akpm-current tree, today's linux-next build (sparc defconfig) failed like this:
In file included from
include/linux/mm.h:32:0,from include/linux/memblock.h:13, from arch/sparc/mm/srmmu.c:14: include/linux/pgtable.h:74:27: error: redefinition of 'pte_offset_kernel' #define pte_offset_kernel pte_offset_kernel ^ arch/sparc/mm/srmmu.c:144:8: note: in expansion of macro 'pte_offset_kernel' pte_t *pte_offset_kernel(pmd_t *dir, unsigned long address) ^~~~~~~~~~~~~~~~~ include/linux/pgtable.h:70:22: note: previous definition of 'pte_offset_kernel' was here static inline pte_t *pte_offset_kernel(pmd_t *pmd, unsigned long address) ^~~~~~~~~~~~~~~~~
Quoted 3 lines
Caused by commit
292aa65ed13a("mm: consolidatepte_index()and pte_offset_*() definitions")
This breakage is now in Linus' tree :-(
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 20 lines · On Wed, 10 Jun 2020 13:44:25 +1000 Stephen Rothwell <[email protected]>…
Hi all,
Quoted 17 lines · On Tue, 9 Jun 2020 22:42:52 +1000 Stephen Rothwell <[email protected]> wrote:
After merging the akpm-current tree, today's linux-next build (sparc defconfig) failed like this:
In file included from
include/linux/mm.h:32:0,from include/linux/memblock.h:13, from arch/sparc/mm/srmmu.c:14: include/linux/pgtable.h:74:27: error: redefinition of 'pte_offset_kernel' #define pte_offset_kernel pte_offset_kernel ^ arch/sparc/mm/srmmu.c:144:8: note: in expansion of macro 'pte_offset_kernel' pte_t *pte_offset_kernel(pmd_t *dir, unsigned long address) ^~~~~~~~~~~~~~~~~ include/linux/pgtable.h:70:22: note: previous definition of 'pte_offset_kernel' was here static inline pte_t *pte_offset_kernel(pmd_t *pmd, unsigned long address) ^~~~~~~~~~~~~~~~~
Quoted 5 lines
Quoted 3 lines
Caused by commit
292aa65ed13a("mm: consolidatepte_index()and pte_offset_*() definitions")This breakage is now in Linus' tree :-(
I've sent this in as well:
From: Andrew Morton <[email protected]>
Subject: arch/sparc/mm/srmmu.c: fix build
"mm: consolidate pte_index() and pte_offset_*() definitions" was supposed to remove arch/sparc/mm/srmmu.c:pte_offset_kernel().
---
arch/sparc/mm/srmmu.c | 10 ---------- 1 file changed, 10 deletions(-)
arch/sparc/mm/srmmu.c renamed from arch/sparc/mm/srmmu.c~arch-sparc-mm-srmmuc-fix-build +0 -10
@@ -140,16 +140,6 @@ void pmd_set(pmd_t *pmdp, pte_t *ptep)set_pte ((pte_t *)&pmd_val (*pmdp),__pte (SRMMU_ET_PTD | ptp)); } -/* Find an entry in the third-level page table.. */ -pte_t *pte_offset_kernel (pmd_t *dir,unsigned long address) -{ -void *pte; - - pte =__nocache_va ((pmd_val (*dir) &SRMMU_PTD_PMASK ) <<4 ); -return (pte_t *) pte + - ((address >>PAGE_SHIFT ) & (PTRS_PER_PTE -1 )); -} -/* * size: bytes to allocate in the nocache area. * align: bytes, number to align at.
_
Hi Andrew,
Quoted 38 lines · On Tue, 9 Jun 2020 21:01:37 -0700 Andrew Morton <[email protected]>…
I've sent this in as well:
From: Andrew Morton <[email protected]>
Subject:arch/sparc/mm/srmmu.c: fix build"mm: consolidate
pte_index()and pte_offset_*() definitions" was supposed to remove arch/sparc/mm/srmmu.c:pte_offset_kernel().Fixes 974b9b2c68f3d35 ("mm: consolidate pte_index() and pte_offset_*() definitions")Reported-by kernel test robot <[email protected]>Cc Mike Rapoport <[email protected]>Cc Johannes Weiner <[email protected]>Signed-off-by Andrew Morton <[email protected]>---
arch/sparc/mm/srmmu.c | 10 ---------- 1 file changed, 10 deletions(-)arch/sparc/mm/srmmu.c renamed from arch/sparc/mm/srmmu.c~arch-sparc-mm-srmmuc-fix-build +0
-10@@ -140,16 +140,6 @@ void pmd_set(pmd_t *pmdp, pte_t *ptep)set_pte ((pte_t *)&pmd_val (*pmdp),__pte (SRMMU_ET_PTD | ptp)); } -/* Find an entry in the third-level page table.. */ -pte_t *pte_offset_kernel (pmd_t *dir,unsigned long address) -{ -void *pte; - - pte =__nocache_va ((pmd_val (*dir) &SRMMU_PTD_PMASK ) <<4 ); -return (pte_t *) pte + - ((address >>PAGE_SHIFT ) & (PTRS_PER_PTE -1 )); -} -/* * size: bytes to allocate in the nocache area. * align: bytes, number to align at.
Quoted 2 lines
_
Thanks.
Signature · 2 lines
Cheers, Stephen Rothwell