Re: [PATCH 5/5] x86/pti: constify address parameters

2018-07-16 Thread Dave Hansen
On 07/15/2018 09:03 PM, Jiang Biao wrote: > -static p4d_t *pti_user_pagetable_walk_p4d(unsigned long address) > +static p4d_t *pti_user_pagetable_walk_p4d(const unsigned long address) > { > pgd_t *pgd = kernel_to_user_pgdp(pgd_offset_k(address)); > gfp_t gfp = (GFP_KERNEL | __GFP_NOTRA

[PATCH 5/5] x86/pti: constify address parameters

2018-07-15 Thread Jiang Biao
Addresses passed in pti_user_pagetable_walk_*() are not supposed to change at runtime, make them const to aviod future slipups. Signed-off-by: Jiang Biao --- arch/x86/mm/pti.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/mm/pti.c b/arch/x86/mm/pti.c index a3