[PATCH v1 1/2] static_call: Properly initialise DEFINE_STATIC_CALL_RET0()
Josh Poimboeuf
jpoimboe at redhat.com
Wed Mar 16 09:10:11 AEDT 2022
On Mon, Mar 14, 2022 at 11:27:35AM +0100, Christophe Leroy wrote:
> #define ARCH_DEFINE_STATIC_CALL_TRAMP(name, func) __PPC_SCT(name, "b " #func)
> #define ARCH_DEFINE_STATIC_CALL_NULL_TRAMP(name) __PPC_SCT(name, "blr")
> +#define ARCH_DEFINE_STATIC_CALL_RET0_TRAMP(name) __PPC_SCT(name, "b .+20")
There's a PPC_SCT_RET0 macro for this "20" offset, might as well use a
stringified version of that for robustness/readability.
Otherwise it looks reasonable.
Acked-by: Josh Poimboeuf <jpoimboe at redhat.com>
--
Josh
More information about the Linuxppc-dev
mailing list