Messages in this thread | | | Date | Tue, 15 Mar 2022 15:10:11 -0700 | From | Josh Poimboeuf <> | Subject | Re: [PATCH v1 1/2] static_call: Properly initialise DEFINE_STATIC_CALL_RET0() |
| |
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@redhat.com>
-- Josh
| |