[PATCH] powerpc/mm/hash: don't opencode VMALLOC_INDEX
Michael Ellerman
mpe at ellerman.id.au
Wed Apr 12 16:55:13 AEST 2017
"Aneesh Kumar K.V" <aneesh.kumar at linux.vnet.ibm.com> writes:
> powerpc/mm/hash: don't opencode VMALLOC_INDEX
OK.
> Also remove wrong indentation to fix checkpatch.pl warning.
No thanks :)
Or at least do it as a separate patch.
I'll fix it up this time.
cheers
> diff --git a/arch/powerpc/mm/slb.c b/arch/powerpc/mm/slb.c
> index 98ae810b8c21..3d580ccf4b71 100644
> --- a/arch/powerpc/mm/slb.c
> +++ b/arch/powerpc/mm/slb.c
> @@ -131,9 +131,9 @@ static void __slb_flush_and_rebolt(void)
> "slbmte %2,%3\n"
> "isync"
> :: "r"(mk_vsid_data(VMALLOC_START, mmu_kernel_ssize, vflags)),
> - "r"(mk_esid_data(VMALLOC_START, mmu_kernel_ssize, 1)),
> - "r"(ksp_vsid_data),
> - "r"(ksp_esid_data)
> + "r"(mk_esid_data(VMALLOC_START, mmu_kernel_ssize, VMALLOC_INDEX)),
> + "r"(ksp_vsid_data),
> + "r"(ksp_esid_data)
> : "memory");
> }
>
> --
> 2.7.4
More information about the Linuxppc-dev
mailing list