powerpc/mm/hash: don't opencode VMALLOC_INDEX
PATCH 1/1 powerpc/mm/hash: don't opencode VMALLOC_INDEX
Also remove wrong indentation to fix checkpatch.pl warning.
Signed-off-by Aneesh Kumar K.V <[email protected]>
--- arch/powerpc/mm/slb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/powerpc/mm/slb.c +3 -3
@@ -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"); }
Signature · 1 line
2.7.4
Michael Ellerman
reviewerQuoted 1 line · Aneesh Kumar K.V
powerpc/mm/hash: don't opencode
VMALLOC_INDEX
OK.
Quoted 1 line
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
Quoted 19 lines
arch/powerpc/mm/slb.c +3
-3@@ -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"); }Signature · 1 line
2.7.4
Michael Ellerman
AppliedQuoted 3 lines · Aneesh Kumar K.V
Also remove wrong indentation to fix checkpatch.pl warning.
Signed-off-by Aneesh Kumar K.V <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/5f8122611b35c563a7c907485aafd8
cheers