]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Convert pte_user() to static inline
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 29 Apr 2016 13:25:32 +0000 (23:25 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 1 May 2016 08:32:24 +0000 (18:32 +1000)
commit97a968f3d4cc73a2169834c66c8497993b6d671d
tree593c7b6ac6b345b26dfbfa5e03205190203cba11
parent5b14634a0daacb423198034acfcb225150ca2d4a
powerpc/mm: Convert pte_user() to static inline

In a subsequent patch we want to add a second definition of pte_user().
Before we do that, make the signature clear, ie. it takes a pte_t and
returns bool.

We move it up inside the existing #ifndef __ASSEMBLY__ block, but
otherwise it's a straight conversion.

Convert the call in settlbcam(), which passes an unsigned long, to pass
a pte_t.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/pte-common.h
arch/powerpc/mm/fsl_booke_mmu.c