aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/mm
diff options
context:
space:
mode:
authorGravatar Christophe Leroy <christophe.leroy@csgroup.eu> 2021-11-29 18:49:38 +0100
committerGravatar Michael Ellerman <mpe@ellerman.id.au> 2021-12-09 22:41:21 +1100
commitc545b9f040f341038d5228932140fb17e0c156e2 (patch)
tree791c3e455cf7434e7f7030c39af5812a9ac06d4e /arch/powerpc/mm
parentpowerpc/inst: Refactor ___get_user_instr() (diff)
downloadlinux-c545b9f040f341038d5228932140fb17e0c156e2.tar.gz
linux-c545b9f040f341038d5228932140fb17e0c156e2.tar.bz2
linux-c545b9f040f341038d5228932140fb17e0c156e2.zip
powerpc/inst: Define ppc_inst_t
In order to stop using 'struct ppc_inst' on PPC32, define a ppc_inst_t typedef. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/fe5baa2c66fea9db05a8b300b3e8d2880a42596c.1638208156.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r--arch/powerpc/mm/maccess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/maccess.c b/arch/powerpc/mm/maccess.c
index aad7c47e0030..5abae96b2b46 100644
--- a/arch/powerpc/mm/maccess.c
+++ b/arch/powerpc/mm/maccess.c
@@ -12,7 +12,7 @@ bool copy_from_kernel_nofault_allowed(const void *unsafe_src, size_t size)
return is_kernel_addr((unsigned long)unsafe_src);
}
-int copy_inst_from_kernel_nofault(struct ppc_inst *inst, u32 *src)
+int copy_inst_from_kernel_nofault(ppc_inst_t *inst, u32 *src)
{
unsigned int val, suffix;
int err;