Hi Arjun, On Thu, 27 Feb 2020 16:46:56 -0800 Arjun Roy <arjunroy.kdev@xxxxxxxxx> wrote: > > diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h > index 7e118660bbd9..6658c04bce83 100644 > --- a/arch/x86/include/asm/pgtable.h > +++ b/arch/x86/include/asm/pgtable.h > @@ -823,6 +823,9 @@ static inline unsigned long pmd_index(unsigned long address) > */ > #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) > > +/* Degenerative definition so we can test if pte_index is defined for arch. */ > +#define pte_index pte_index You should put this definition directly above the static inline function. i.e. #define pte_index pte_index static inline unsigned long pte_index(unsigned long address) ... -- Cheers, Stephen Rothwell
Attachment:
pgpBOZqqfLtKX.pgp
Description: OpenPGP digital signature