OSDN Git Service

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)
commit7e1e63c5e9d694c1198d410a6c7b2d0fa06da355
tree593c7b6ac6b345b26dfbfa5e03205190203cba11
parent73a1441a9b2ae05c15eb7cc90d4de379b44249bf
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