[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 12 Dec 2019 16:55:12 +0100
From: Christophe Leroy <christophe.leroy@....fr>
To: Daniel Axtens <dja@...ens.net>, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, linuxppc-dev@...ts.ozlabs.org,
kasan-dev@...glegroups.com, aneesh.kumar@...ux.ibm.com,
bsingharora@...il.com
Subject: Re: [PATCH v3 1/3] kasan: define and use MAX_PTRS_PER_* for early
shadow tables
Le 12/12/2019 à 16:16, Daniel Axtens a écrit :
> 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.leroy@....fr>
> Suggested-by: Balbir Singh <bsingharora@...il.com>
> Signed-off-by: Daniel Axtens <dja@...ens.net>
Reviewed-by: Christophe Leroy <christophe.leroy@....fr>
> ---
> include/linux/kasan.h | 18 +++++++++++++++---
> mm/kasan/init.c | 6 +++---
> 2 files changed, 18 insertions(+), 6 deletions(-)
>
Christophe
Powered by blists - more mailing lists