On 13/12/19 2:16 am, Daniel Axtens wrote: > powerpc has a variable number of PTRS_PER_*, set at runtime based > on the MMU that the kernel is booted under. > > This means the PTRS_PER_* are no longer constants, and therefore > breaks the build. > > Define default MAX_PTRS_PER_*s in the same style as MAX_PTRS_PER_P4D. > As KASAN is the only user at the moment, just define them in the kasan > header, and have them default to PTRS_PER_* unless overridden in arch > code. > > Suggested-by: Christophe Leroy <christophe.le...@c-s.fr> > Suggested-by: Balbir Singh <bsinghar...@gmail.com> > Signed-off-by: Daniel Axtens <d...@axtens.net> > --- Reviewed-by: Balbir Singh <bsinghar...@gmail.com> Balbir
- [PATCH v3 0/3] KASAN for powerpc64 radix Daniel Axtens
- [PATCH v3 1/3] kasan: define and use MAX_PTRS_PER_* ... Daniel Axtens
- Re: [PATCH v3 1/3] kasan: define and use MAX_PTR... Christophe Leroy
- Re: [PATCH v3 1/3] kasan: define and use MAX_PTR... Balbir Singh
- [PATCH v3 2/3] kasan: Document support on 32-bit pow... Daniel Axtens
- [PATCH v3 3/3] powerpc: Book3S 64-bit "heavywei... Daniel Axtens
- Re: [PATCH v3 3/3] powerpc: Book3S 64-bit "... Jordan Niethe
- Re: [PATCH v3 3/3] powerpc: Book3S 64-bit &q... Daniel Axtens
- Re: [PATCH v3 3/3] powerpc: Book3S 64-bit "... Christophe Leroy
- Re: [PATCH v3 3/3] powerpc: Book3S 64-bit &q... Daniel Axtens
- Re: [PATCH v3 3/3] powerpc: Book3S 64-bi... Daniel Axtens
- Re: [PATCH v3 3/3] powerpc: Book3S ... Christophe Leroy