Re: [V5, 2/3] powerpc/opal: Add inline function to get rc from an ASYNC_COMP opal_msg
From: Michael Ellerman
Date: Thu Jun 30 2016 - 08:36:47 EST
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@xxxxxxxxx>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/d0226d315dba5e401a124b394a
cheers