[Skiboot] [PATCH] hw/imc: Use ARRAY_SIZE instead of static macro

Stewart Smith stewart at linux.vnet.ibm.com
Mon Oct 16 19:07:32 AEDT 2017

Madhavan Srinivasan <maddy at linux.vnet.ibm.com> writes:
> disable_unavailable_units() loops through nest_pmus array
> to filter out the unsupported nest units from the imc
> catalog dtb. Current code use a static macro ('MAX_NEST_UNITS')
> for array limit, instead use ARRAY_SIZE. This will avoid updates
> to static macro when updating the nest_pmus array.
> Fixes: 712837cedca06 ('skiboot/imc: Update the nest_pmus array with occ/gpe microcode uav updates')
> Signed-off-by: Madhavan Srinivasan <maddy at linux.vnet.ibm.com>
> ---
>  hw/imc.c      | 2 +-
>  include/imc.h | 2 --
>  2 files changed, 1 insertion(+), 3 deletions(-)

Ahh yep, thanks!

Merged to master as of a9cf7c586871bdd8187760862c2df8bb2fbb2d6f
Stewart Smith
OPAL Architect, IBM.

More information about the Skiboot mailing list