[V5, 2/3] powerpc/opal: Add inline function to get rc from an ASYNC_COMP opal_msg

Michael Ellerman mpe at ellerman.id.au
Thu Jun 30 22:36:40 AEST 2016


On Wed, 2016-29-06 at 03:38:38 UTC, Suraj Jitindar Singh wrote:
> An opal_msg of type OPAL_MSG_ASYNC_COMP contains the return code in the
> params[1] struct member. However this isn't intuitive or obvious when
> reading the code and requires that a user look at the skiboot
> documentation or opal-api.h to verify this.
> 
> Add an inline function to get the return code from an opal_msg and update
> call sites accordingly.
> 
> Signed-off-by: Suraj Jitindar Singh <sjitindarsingh at gmail.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/d0226d315dba5e401a124b394a

cheers


More information about the Linuxppc-dev mailing list