powerpc/powernv: Fix type of opal_mpipl_query_tag() addr argument
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 21 Apr 2021 12:54:02 +0000 (22:54 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 22 Apr 2021 10:59:09 +0000 (20:59 +1000)
commitd936f8182e1bd18f5e9e6c5e8d8b69261200ca96
treec1a38f6c806c1e8c12352bf637dc037ce5c4a5db
parent2e341f56a16a71f240c87ec69711aad0d95a704c
powerpc/powernv: Fix type of opal_mpipl_query_tag() addr argument

opal_mpipl_query_tag() takes a pointer to a 64-bit value, which firmware
writes a value to. As OPAL is traditionally big endian this value will
be big endian.

This can be confirmed by looking at the implementation in skiboot:

  static uint64_t opal_mpipl_query_tag(enum opal_mpipl_tags tag, __be64 *tag_val)
  {
   ...
   *tag_val = cpu_to_be64(opal_mpipl_tags[tag]);
   return OPAL_SUCCESS;
  }

Fix the declaration to annotate that the value is big endian.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210421125402.1955013-2-mpe@ellerman.id.au
arch/powerpc/include/asm/opal.h