Re: [PATCH] mm: consolidate pte_index() and pte_offset_*() definitions

From: Stephen Rothwell
Date: Wed Jun 10 2020 - 18:13:48 EST


Hi Guenter,

On Wed, 10 Jun 2020 13:42:12 -0700 Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
>
> Building sparc32:defconfig ... failed
> --------------
> Error log:
> <stdin>:1511:2: warning: #warning syscall clone3 not implemented [-Wcpp]
> In file included from include/linux/mm.h:32,
> 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'
> 74 | #define pte_offset_kernel pte_offset_kernel
> | ^~~~~~~~~~~~~~~~~
> arch/sparc/mm/srmmu.c:144:8: note: in expansion of macro 'pte_offset_kernel'
> 144 | 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
> 70 | static inline pte_t *pte_offset_kernel(pmd_t *pmd, unsigned long address)
> | ^~~~~~~~~~~~~~~~~

This was reported on Tuesday (by me among others) and is fixed in
Linus' tree now.

--
Cheers,
Stephen Rothwell

Attachment: pgp85Hwxcyyx0.pgp
Description: OpenPGP digital signature