powerpc/rtas: remove lock and args fields from global rtas struct
authorNathan Lynch <nathanl@linux.ibm.com>
Tue, 24 Jan 2023 14:04:47 +0000 (08:04 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 30 Jan 2023 06:53:05 +0000 (17:53 +1100)
commit599af49155467148afaf0bc3c0114bd80fd4491f
treea8478c086a1dfdafd5054d98b2962ff5ffa7f682
parent9bce6243848dfd0ff7c2be6e8d82ab9b1e6c7858
powerpc/rtas: remove lock and args fields from global rtas struct

Only code internal to the RTAS subsystem needs access to the central
lock and parameter block. Remove these from the globally visible
'rtas' struct and make them file-static in rtas.c.

Some changed lines in rtas_call() lack appropriate spacing around
operators and cause checkpatch errors; fix these as well.

Suggested-by: Laurent Dufour <ldufour@linux.ibm.com>
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Reviewed-by: Laurent Dufour <laurent.dufour@fr.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230124140448.45938-4-nathanl@linux.ibm.com
arch/powerpc/include/asm/rtas-types.h
arch/powerpc/kernel/rtas.c